In Tradescript,I am trying to add Stoploss based on
-
ATR values(consider x)
-
Fixed SL , ex : Buying @ 500 means, I can change ‘x’ hardcoded value as ‘-5’ or ‘-10’, so SL will be 495 or 490 accordingly
-
SL based on last candles low
How to code this and especially where I need to add this in Tradescript , under which tab in 4 tabs given under ‘Tradescripts’?