Asif nawab: a lot of trades is being taken when condition met but I want only one trade to be taken an manged then once closed look for another trade. can you give me a guess where im having issue??
if (PositionGetSymbol(i) == _Symbol && PositionGetInteger(POSITION_MAGIC) == MAGIC_NUMBER)
Where do you open a trade with that MN?
Set the magic number in OnInit. I don't think you should be setting a flag to true inside this loop.
Instead of this if(!openTradesExist) condition further down the script, you should do: if(PositionsTotal()==0)
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
hi everyone!!
a lot of trades is being taken when condition met but I want only one trade to be taken an manged then once closed look for another trade. can you give me a guess where im having issue??
thank you for your help guys!!