zoltran
04-11-2007, 02:33 AM
I am trying to adjust stop values manually while a strategy is running ..
(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?
(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?