Arav007:
My EA will open 3 trades simultaneously and when the third trade will be closed, i.e. there wont be any trade left (Buy/Sell)
then why use OrdersHistoryTotal ? use OrdersTotal
if (OrdersTotal == 0) Do your thing
For that part (opening 3 trades) there is function too.
You probably haven't gone through the whole code yet.
i haven't read the code at all just read what you wrote
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
I have been trying to get the 'Last Closed Order' from 'History' of closed trades but not getting things done correctly.
My EA will open 3 trades simultaneously and when the third trade will be closed, i.e. there wont be any trade left (Buy/Sell)
and if the Trade_after_SL==TRUE, the EA will look for the third trade whether it got closed or not. If it got closed and the
conditions for opening that trade is still 'Valid' then it'll open just a 'Single' trade.
Like if the Last closed trade was a 'Buy' trade and still the conditions for 'Buying' are valid, then it'll open A New 'Buy' trade.
I tried to use the 'OrdersHistoryTotal()' but it hasn't worked.