Loop issue
Hi all,
there is an issue with the below code, as the loop only modifies (TP/SL) the first order, and doesn't loop through all of the existing orders.
Can some one help.
Hi all,
there is an issue with the below code, as the loop only modifies (TP/SL) the first order, and doesn't loop through all of the existing orders.
Can some one help.
Maybe this is what you need, Loops and Closing or Deleting Orders, and btw, you can compare double like this :
if(OrderTakeProfit() != TP||OrderStopLoss() != SL)
You may also read this Can price != price ?
both by the same author, actually. Here's another one Some double values invisible during cycle? by different author.
Hi all,
there is an issue with the below code, as the loop only modifies (TP/SL) the first order, and doesn't loop through all of the existing orders.
Can some one help.