Super Trend AFL

#1
Hello Friends,

I have just started to learn AFL, basic Buy and Sell Backtest i can do with Indicators but i got stuck with Super Trend Indicator, can anyone help me in this regard,

Buy Condition = Cross (Close, SuperTrend)
Sell Condition = Target or SL

In sell condition, i want if stock achieves its target then target should be there or hit SL then SL should be there...

Target Calculation: (High of Candle - Super Trend Value)*2 + Candle High
Sl Calculation: Value of SuperTrend (when Crossover happens)

can anyone help me in this regard,
 

Similar threads