Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 773

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
P.S. The above is just a fragment of a half-empty EA I scribbled to track momentum.
This snippet works, it's fine.
Impulse is bad. :(
Hi!) How can I tell if a pending order has become a market order?
The question itself already has an answer
) but how do you determine this by code?
Help who can. Two-currency Expert Advisor,
If trade conditions are the same, then trade in the first currency is opened.
How to write the "If the order is opened in the first currency OP_BUY, then open a deal in the second OP_SELL
here is an example
if(OrdersTotal()== 1 ) // with this line for 2 currencies opens both BUY and SELL or 2 SELL orders
if ( currenttype == OP_BUY ) // it doesn't open at all
if ( currentticket == 1) // it doesn't open like this either.
secondticket = OrderSend("GBPUSD", OP_SELL, Lots, MarketInfo("GBPUSD", MODE_BID), 2, 0, 0, 0, WindowExpertName(), 0, 0, Red); //Order for 2 currencies
if ( c - d > a) // if trade condition is matched, Order for 1currency opens perfectly.
currentticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0, "macd sample",Magic,0,Green); //Order on 1currency
Help who can. Two-currency Expert Advisor,
If trade conditions are the same, then trade in the first currency is opened.
How to write the "If the order is opened in the first currency OP_BUY, then open a deal in the second OP_SELL
here is an example
if (OrdersTotal()== 1 ) // with this line for 2 currencies opens both BUY and SELL or 2 SELL orders
if ( currenttype == OP_BUY ) // it doesn't open at all
if ( currentticket == 1) // it doesn't open like this either.
secondticket = OrderSend("GBPUSD", OP_SELL, Lots, MarketInfo("GBPUSD", MODE_BID), 2, 0, 0, 0, WindowExpertName(), 0, 0, Red); //Order for 2 currencies
if ( c - d > a) // if trade condition is matched, Order for 1currency opens perfectly.
currentticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0, "macd sample",Magic,0,Green); //Order on 1currency