Hi,
I use the following code in Easylanguage.
But I would like to use the same indicator with esignal.
Is there anyone who could help out with the correct esignal code ?
The indicator should color the bars when AverageTrueRange is greater than the highest AverageTrueRange since x no. of bars.
Hopefully someone can give me a hand.
Thanks, Larssa
inputs: Length( 20 ), ATRLength( 14 ) ;
variables: var0( 0 ), var1( 0 ) ;
var0 = Lowest ( AvgTrueRange( ATRLength ), Length )[1] ;
var1 = Highest( AvgTrueRange( ATRLength ), Length )[1] ;
if AvgTrueRange( ATRLength ) > var1 and AvgTrueRange( ATRLength ) > 20 then
begin
PlotPaintBar(High,Low,Open,Close,"",DarkGreen,Dark Green,2);
end ;
I use the following code in Easylanguage.
But I would like to use the same indicator with esignal.
Is there anyone who could help out with the correct esignal code ?
The indicator should color the bars when AverageTrueRange is greater than the highest AverageTrueRange since x no. of bars.
Hopefully someone can give me a hand.
Thanks, Larssa
inputs: Length( 20 ), ATRLength( 14 ) ;
variables: var0( 0 ), var1( 0 ) ;
var0 = Lowest ( AvgTrueRange( ATRLength ), Length )[1] ;
var1 = Highest( AvgTrueRange( ATRLength ), Length )[1] ;
if AvgTrueRange( ATRLength ) > var1 and AvgTrueRange( ATRLength ) > 20 then
begin
PlotPaintBar(High,Low,Open,Close,"",DarkGreen,Dark Green,2);
end ;
Comment