AFL help

#1
Hi,

I want to backtest data, so I want 2 reverse my position after BUY when SELL signal is generated after booking profit.

Book profit when SELL signal is generated and the SHORT as sell signal.

Eg,


Buy = a > b;
Sell = a <b;

When I backtest it wont use SHORT condition....how 2 add short and cover condition because then SELL, SHORT will be repeated same....
 
#2
Very simple. If you want conditions to be exactly the same as they are.

Buy = Cover = a > b;
Sell = Short = a <b;

Hi,

I want to backtest data, so I want 2 reverse my position after BUY when SELL signal is generated after booking profit.

Book profit when SELL signal is generated and the SHORT as sell signal.

Eg,


Buy = a > b;
Sell = a <b;

When I backtest it wont use SHORT condition....how 2 add short and cover condition because then SELL, SHORT will be repeated same....
 

Similar threads