How to restrict buy and sell signels in af

#1
how i set maximum numbers of order in afl ,like i want only two orders (entry and exit) if is there any signel come after two signel it should not fire the buy signel please help
I TRIED LOT BUT I CAN'T
Thanks SArath
 
#2
how i set maximum numbers of order in afl ,like i want only two orders (entry and exit) if is there any signel come after two signel it should not fire the buy signel please help
I TRIED LOT BUT I CAN'T
Thanks SArath

use these two lines of code after your buy and sell conditions....


// exrem is one method to remove surplus trade signals
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
 

Similar threads