|
Re: Heiking Ashii & Volume Delta Add On Version 2
Armand? please find below ELD code of SMA for comparisson:
inputs: Price( Close ), Length( 9 ), Displace( 0 ) ;
variables: Avg( 0 ) ;
Avg = AverageFC( Price, Length ) ;
if Displace >= 0 or CurrentBar > AbsValue( Displace ) then
begin
Plot1[Displace]( Avg, "Avg" ) ;
{ Alert criteria }
if Displace <= 0 then
begin
if Price crosses over Avg then
Alert( "Price crossing over average" )
else if Price crosses under Avg then
Alert( "Price crossing under average" ) ;
end ;
end ;
|