I Discovered this code:
void DeleteThis_BUYSTOP( int MagicNumber ) {
bool deleted;
for (int I = 0; I lt; OrdersTotal(); I )
OrderSelect(I, SELECT_BY_POS, MODE_TRADES);
...
Type: Posts; User: leckmen
I Discovered this code:
void DeleteThis_BUYSTOP( int MagicNumber ) {
bool deleted;
for (int I = 0; I lt; OrdersTotal(); I )
OrderSelect(I, SELECT_BY_POS, MODE_TRADES);
...
I have a solution: I will utilize BuyLimit and SelLimit but is there anyone that tells me how can I close all pending orders WHEN the first transaction is closed?
Thanks a lot.
Hi,
I want your help to get part of my code. I would like to start a new Long trade with 0.02lots once if the price falls about 50 pips, So I want to place ExistPositions0.02lots() FALSE first...