I am having a theoretical question. Somewhere in the help tutorial I read that the trailingStop can be either defined in the Initialize or in OnBarUpdate procedure. What is the difference between these two? Can you provide some source code or example where the difference would be visible? I also read that when using in OnBarUpdate it has to be reseted after every entry - what does it mean?
Another question is, is there any possibility to set the orders so as when the price move one point in your favour, this profit would be locked (but the position would not be closed). Then, when the price will continue to go in your favour, the trailing stop would be set from this one point profit. If the price goes against you, the posisiton would be closed and profit of one point would be made.
Thanks a lof for your answers.
Stepan
Comment