Madrid + Spain
Posts: 2 since Mar 2015
Thanks Given: 0
Thanks Received: 0
|
I have a strategy build in TS on a daily timeframe. I have a stoploss set with the "Setstoploss" command.
Problem:
An entry is triggered by the strategy and a day StopLoss is properly set for that day/bar.
My problem is that, if the position remains open for the next day, the previous SLoss dissapears (because it was a daily order) and the strategy is not generating a new Sloss for that day.
How can I fix this so that there is always a SLoss in place? I'm think of two possible ways:
1) Instruct somehow to TS to send an new SLoss everyday
2) Instruct TS to send the first SLoss as a GTC order.
Can anybody advise on which of these is better and how to code it?
Thank you
|