Clarification on ApplyStop

#1
Hi Folks
I am trying to build a candle pattern based AFL. As part of this i am using applystop to implement stoploss and target. But this creates a problem. my Exrem(Buy,Sell) function does not work because there is no Sell signal generated as part of the code. So i use Equity(1,0) function to evaluate the applystop and generate the stop signal. But the stop singal generated by equity() is of value 2 (for stop loss) and 3 (for target reached). Since the stop signal is not 1 Exrem(Buy,Sell) does not work.

Request your help in an approach to work around this and prevent additional buy signals from getting generated.

My Code is attached
 

Attachments

Similar threads