When you open the EAs from code base, you can see the main fuction is onstart() instead of ontick().
So I'm confused how the EA can work normally without ontick(). How can script work as EA? Could anyone please advise or comment? Thanks.
- problem with ObjectCreate()
- Ontester printing and file writing.
- [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3.
jollydragon: When you open the EAs from code base, you can see the main fuction is onstart() instead of ontick().So I'm confused how the EA can work normally without ontick(). How can script work as EA? Could anyone please advise or comment? Thanks.
- Your premise is wrong. I went to codebase/experts: Download forex robots for free for MetaTrader 4 in MQL5 Code Base and looked at the first 4 EA's
- Free download of the 'Bleris - Hedging Strategy' expert by 'Tomac1' for MetaTrader 4 in the MQL5 Code Base uses start()
- Free download of the 'RobotiADXwining' expert by 'Holymary' for MetaTrader 4 in the MQL5 Code Base uses start()
- Free download of the 'Renko Live Charts v4.13' expert by 'maj1es2tic' for MetaTrader 4 in the MQL5 Code Base uses OnTick()
- Free download of the 'xLiquidex_V2_Mod1' expert by 'mwema' for MetaTrader 4 in the MQL5 Code Base uses OnTick()
- Free download of the 'Bleris - Hedging Strategy' expert by 'Tomac1' for MetaTrader 4 in the MQL5 Code Base uses start()
- EA's must have a OnTick() or start(). Scripts must have a OnStart() or start()
- Scripts run once. Gone once they return from OnStart() or start()
I undersood start() is same as OnStart(). May I know the difference?
Besides above question, when to use start() and when OnTick()?
jollydragon: I undersood start() is same as OnStart(). May I know the difference? |
The OnStart() function is the Start event handler, which is automatically generated only for running scripts. |
when should I use start() and when to use OnTick()?
Or are they same to use?
Dears, when should I use start() and when to use OnTick()? Or are they same to use?
I would use the new one, use OnTick().
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