I am using a strategy that works as expected but I would like to ask how to go about the following. When the entry order is filled it places a stop straight away. What I would like to do in addition is move the stop dynamically. The original stop is placed using OnExecution (I am using IOrders). Where would I place the code to the above? Is it in OnBarUpdate?
I am storing a variable when the entry order is triggered. What I want to do is update the variable to the current variable only if it is lower than the previous variable otherwise I want to leave the variable as is until either two events happen, 1. the variable is adjusted lower because the current variable is lower than the previously stored variable or 2. the stop is filled.
Cheers,
suprsnipes
Comment