when I use SetStopLoss in scriptstrategies (instead of ExitLongStop because of OCO string with SetStopLoss) is there a possibility to change stoploss (and SetProfitTarget) in orders tab with "+" and "-"?
When I increase or decrease it then it jumps back immediately to the position referring the script. OK and clear. One possbililty would be to refer to an ATM in the script but is there a more easy solution for coding in script? I have a setstoploss in initialize and in onbarupdate. What if I move the SetStopLoss and SetProfitTarget to onexecution? It should stay then at the position I moved it in orders tab then during the trade, no?
If it works this way, I want to ask if there is a possible disadvantage or problem when moving SetStoploss to onexecution from onbarupdate.
Thanks
Tony
Comment