hello programmers, this a basic question that i haven't been able to crack, how can i find the symbol and order type of a placed order among numerous placed orders?
You need to learn the difference between orders, deals, and positions.
William Roeder #:
You need to learn the difference between orders, deals, and positions.
You need to learn the difference between orders, deals, and positions.
And look at functions:
https://www.mql5.com/en/docs/trading/orderselect
![Documentation on MQL5: Trade Functions / OrderSelect Documentation on MQL5: Trade Functions / OrderSelect](https://c.mql5.com/36/57/documentation-on-mql5-trade-functions.png)
Documentation on MQL5: Trade Functions / OrderSelect
- www.mql5.com
OrderSelect - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
R4tna C #:
And look at functions:
https://www.mql5.com/en/docs/trading/orderselect
I am trying to create a chain of events whereby a buy or sell stop is detected on a higher timeframe H4 and another ea on a lower timeframe m30 reads the orders and places a buy or sell when conditions are met on the lower timeframe. So far this is what i came up with but still the second ea does not detect it;
int total= OrdersTotal();
for(int i=total;i>0;i--)
{
while ( OrderGetTicket(i) ) {
if(OrderGetString(ORDER_SYMBOL)==symbol)
{
int BUY=55;
}
else
{
BUY=0
}
}
}
}
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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