I think I found the problem: extra brackets!
if(OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && (OrderType() == OP_BUY || OrderType() == OP_SELL))
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
Just messing around with code to get it right before implementing - this is to find the first trade of a particular type in the history pool.
Code below + printed output.
Does anybody know why it seems to think that GBPUSD is the same as EURUSD?