I observe some of my orders are cancelled.and being replaced by a new position.
I don't know why because I make sure that postition.quantity=0 (means there is not any current trade executing) before taking a new position. Here's my code :
if(count_higher_high>=2 && current_trend=="bearish" && Position.Quantity==0)
{
EnterLongStopLimit(High[1]+ticksize,High[1]+ticksize,@"long_seb");
}
Any suggestions?
Thanks,
gotham

Comment