I have a problem and I don't understand why.
I have searched into forum but I didn't find anything. Sorry if is repeated.
The strategy is simple. In the bar 2, one LongStop order is submitted.
If the price reachs the stop, the strategy finishs correctly.
If the price doesn't reach the stop, the strategy terminates with errors.
Strategy Code A:
protected override void OnBarUpdate()
{
if ( CurrentBar == 2 )
EnterLongStop(0, true, 1, 110.33, "EntrarLargoStop"+CurrentBar);
}
Strategy Code B:
protected override void OnBarUpdate()
{
if ( CurrentBar == 2 )
EnterLongStop(0, true, 1, 110.45, "EntrarLargoStop"+CurrentBar);
}
Probably i'll be mistaken in anything but i don't know what. Could you help me, please ?
Thanks very much.

Comment