Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // (CONVERTIRE LO STOP LOSS IN PIPS)
- //Facendo tutti i calcoli passo passo con il debug o con la clacolatrice risulta tutto
- //@version=4
- strategy("Convertire_Stop_Loss_In_Pips", overlay=true, default_qty_type=strategy.fixed, default_qty_value=99900, initial_capital=10000)
- atr=atr(7)
- //plot(atr, color=color.orange)
- h=high
- //plot(h, color=color.olive)
- stop_short_prezzo= h + atr
- plot(stop_short_prezzo, color=color.blue)
- stop_long_pips= (stop_long_prezzo - close) / 0.00001 / 10
- OPPURE
- //stop_long_pips = ((shortSLPrezzo - close) / syminfo.mintick / 10)
Add Comment
Please, Sign In to add comment