(why ... because I'm trying to over-ride my strats logic ... don't ask:shock: )
I'm doing this using the orders tab in CC, and in a DOM. DOesn't matter.
The change takes.. and I see the stop adjusted in TWS, but it's immediately reset back to the original value.
The Strategy dynamically updates stops once a bar (not every tick) and the the setstoploss code is in OnBarUpdate. I have print statements in my code when it adjusts the stoploss, and I'm pretty sure it's not my code 'reseting' the stop back.
Is this reseting expected?
Comment