Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1337
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
Where is the mistake?
If there are a lot of characters, then there are a lot of "opens".
If there are a lot of characters, then there are a lot of "opens".
Thank you buddy. How to make it one trade per day to tear off at the current symbol and disregard other instruments (advisor stands on several symbols)
- look in the order history by its magic number and symbol, if the time of opening (or closing?) of the order corresponds to the current date, then exit OnTick()
- control the "new bar" on TF D1
the first way - more writing, but in the tester, MT4 it will work very fast; the second way - 3 lines of code, but in the tester it will "chew" the hard drive and the testing time will be longer
(EA stands on several instruments)
Ah, I think I get it, if you have an EA standing on multiple instruments, then you just need to add a check that the order belongs to the EA.
Ah, I think I get it, if you have an EA on multiple instruments, then you just need to add a check that the order belongs to the EA.
This code opens a huge number of deals. The idea is correct, but how to implement it correctly.
This code opens a huge number of trades. The idea is correct but how to implement it correctly.
You need this
Function isTradeToDay().
This function returns the trade flag for today
What can you guess from a piece of code here?
Put a check on it, no more than once a day.
Guys help in the advisor need to open one trade a day ON THE TOOL.
You could try this
You could try this.
All written a long time ago ... a very long time ago.
This code checks what's already in the market and what's in the history in case it's already closed today.
What can you guess from a piece of code here?
Put a check on it, no more than once a day.