Hi friends
here is a ELD code for tradestation.
Can somebody convert it into txt format and post it here please
if you have tradestation they're free on the forums OR you could easily code them yourself if you just read some easy language code.
A moving average that changes colour when up/ down combined with heikin ashi bars.
We found that the colour charts turn blue or red in relation to a moving average which is based on the wieght of the price relative to the high or low.
Meaning, if, for a particular bar, the prices 'tick count' is around the lower half of the bar, than the top half, it will turn red.
if there is more activity in the top half than the bottom, it turns blue. Im not sure how this average is writtin in code, but i do know it goes something
like the difference between the number of ticks (regardless of time period) above the open (or top half of bar) and the bottom half (or lower than the open).
im sure there is a simpler way to explain.
above the open (or top half of bar) and the bottom half (or lower than the open).
im sure there is a simpler way to explain. lol
I had a look at your chart, it looks quite impressive. it seems to work better on very low time frames, so i can see why you may favour using another setup.
The idea is making an afl.
link
http://www.i n d i t r a d e r s .c...-gravity-color-bars-please-post-code-txt.html
ELD CODE IS HERE
one part is code for heikin Ashi bars
second part is code for gravity bars
Request somebody to convert and post it as afl,please
================
This is tradestation code-not for Amibroker
============================
Here is the txt code for HA coloured charts.eld
HA
Code:
---------
Input: period(8);
Condition1 = close > value1 ;
Condition2 = close < value1 ;
{ OPTIONAL STEP: Replace HIGH and LOW with your own formulas for the high and low
prices of the PaintBar. Note that Value1 and Value2 are numeric variables, temporary
holding places for the results of the numeric formulas. }
Value1 = average(close,8)[3] ;
Value2 = 10925 ;
{ Leave the following as is. The plot is not named because there is only one PaintBar
plot - with two sub-plots - and the default names Plot1, Plot2 will be adequate. The
alert does not include a description because the alerting criteria and the plotting
criteria are the same, and the description will be redundant. }
if Condition1 then
begin
PlotPaintBar( high, low, open, close, "range", Blue, default, 3 ) ;
end ;
if condition2 then
begin
PlotPaintBar( high, low, open, close, "range", Red, default, 3 ) ;
Alert ;
end ;
plot5(value1,"TTWHA");
======================
Code:
---------
[LegacyColorValue = true];
inputs: Price(Close), Length(10), BarsBack(3), UpColor(blue), DownColor(red),Displace( 0 ) ;
var: AvgExp( 0 );
AvgExp = XAverage( Price, Length ) ;
if AvgExp > AvgExp[BarsBack] then setplotcolor(1,UpColor);
if AvgExp < AvgExp[BarsBack] then setplotcolor(1,DownColor);
Plot1[Displace]( AvgExp, "AvgExp" ) ;
---------
regards
here is a ELD code for tradestation.
Can somebody convert it into txt format and post it here please
if you have tradestation they're free on the forums OR you could easily code them yourself if you just read some easy language code.
A moving average that changes colour when up/ down combined with heikin ashi bars.
We found that the colour charts turn blue or red in relation to a moving average which is based on the wieght of the price relative to the high or low.
Meaning, if, for a particular bar, the prices 'tick count' is around the lower half of the bar, than the top half, it will turn red.
if there is more activity in the top half than the bottom, it turns blue. Im not sure how this average is writtin in code, but i do know it goes something
like the difference between the number of ticks (regardless of time period) above the open (or top half of bar) and the bottom half (or lower than the open).
im sure there is a simpler way to explain.
above the open (or top half of bar) and the bottom half (or lower than the open).
im sure there is a simpler way to explain. lol
I had a look at your chart, it looks quite impressive. it seems to work better on very low time frames, so i can see why you may favour using another setup.
The idea is making an afl.
link
http://www.i n d i t r a d e r s .c...-gravity-color-bars-please-post-code-txt.html
ELD CODE IS HERE
one part is code for heikin Ashi bars
second part is code for gravity bars
Request somebody to convert and post it as afl,please
================
This is tradestation code-not for Amibroker
============================
Here is the txt code for HA coloured charts.eld
HA
Code:
---------
Input: period(8);
Condition1 = close > value1 ;
Condition2 = close < value1 ;
{ OPTIONAL STEP: Replace HIGH and LOW with your own formulas for the high and low
prices of the PaintBar. Note that Value1 and Value2 are numeric variables, temporary
holding places for the results of the numeric formulas. }
Value1 = average(close,8)[3] ;
Value2 = 10925 ;
{ Leave the following as is. The plot is not named because there is only one PaintBar
plot - with two sub-plots - and the default names Plot1, Plot2 will be adequate. The
alert does not include a description because the alerting criteria and the plotting
criteria are the same, and the description will be redundant. }
if Condition1 then
begin
PlotPaintBar( high, low, open, close, "range", Blue, default, 3 ) ;
end ;
if condition2 then
begin
PlotPaintBar( high, low, open, close, "range", Red, default, 3 ) ;
Alert ;
end ;
plot5(value1,"TTWHA");
======================
Code:
---------
[LegacyColorValue = true];
inputs: Price(Close), Length(10), BarsBack(3), UpColor(blue), DownColor(red),Displace( 0 ) ;
var: AvgExp( 0 );
AvgExp = XAverage( Price, Length ) ;
if AvgExp > AvgExp[BarsBack] then setplotcolor(1,UpColor);
if AvgExp < AvgExp[BarsBack] then setplotcolor(1,DownColor);
Plot1[Displace]( AvgExp, "AvgExp" ) ;
---------
regards
Last edited: