Hi,
I would like to close all orders that are > 0 so I have a CloseAll() function where I close all trades > 0.
For the moment I have a small problem.
The value of ASK and BID are not changing in my loop in my function.
How can I have the current Ask or Bid ?
OrderClose(OrderTicket(),OrderLots(),Ask,3,Yellow);
or
OrderClose(OrderTicket(),OrderLots(),Bid,3,Yellow);
do not give me it
Any help or advice will be nice
I would like to close all orders that are > 0 so I have a CloseAll() function where I close all trades > 0.
For the moment I have a small problem.
The value of ASK and BID are not changing in my loop in my function.
How can I have the current Ask or Bid ?
OrderClose(OrderTicket(),OrderLots(),Ask,3,Yellow);
or
OrderClose(OrderTicket(),OrderLots(),Bid,3,Yellow);
do not give me it
Any help or advice will be nice