AFL Code For Study Crossover

#1
AFL gurus please assist in coding the system.

Buy= price touch study from below.
Sell= price touch study from above.

i am pasting a code found in amibroker site for reference ,but even it is showing some errors.

Buy = Cross( Close, Study(RE, 1023) );
Here RE stands for resistance study .In sell condition RE will be replaced by SU.
1023 is the chart ID.

Request the afl experts to help create this system.
 
#3
sell = cross( study( "SU" ), close, GetChartID() );
buy = cross( close, study( "SU" ), GetChartID() );
hello johnny bhai,

thanks for the afl , here do i need to add the chartid no , suppose chart id is 1007 , how would the final afl be .
 

Similar threads