Download MetaTrader 5

what is the main differences between ea and script

To add comments, please log in or register
MQL5 Reference is available in 8 languages. Learn MQL5 in the language that suits you best!
Irwan Adnan
886
Irwan Adnan 2014.10.21 13:51 
that is the question.
Enrico Lambino
4320
Enrico Lambino 2014.10.21 14:54  
belido:
that is the question.

Both scripts and EAs can be loaded only once per chart. If you need to add another EA or script, you will need to unload the existing EA/script. But it's possible to have an EA and script running on the same chart.

EAs would naturally execute at every tick without terminating. Scripts will terminate as soon as their appointed tasks are complete. There are ways to go around this limitation for scripts, but that is another story.

EAs can be backtested/optimized while scripts cannot be used on Strategy Tester. 

The input (external parameters) can be hidden from scripts using the show_inputs property. You cannot do this in expert advisors.

Irwan Adnan
886
Irwan Adnan 2014.10.25 06:14  
Iceron:

...........

EAs would naturally execute at every tick without terminating. Scripts will terminate as soon as their appointed tasks are complete. There are ways to go around this limitation for scripts, but that is another story.

..........

Is that means we can make a script to act as an EA? (sorry for stupid question :) )
Tan Phan Ngoc
1332
Tan Phan Ngoc 2014.10.25 06:17  
Iceron:

Both scripts and EAs can be loaded only once per chart. If you need to add another EA or script, you will need to unload the existing EA/script. But it's possible to have an EA and script running on the same chart.

EAs would naturally execute at every tick without terminating. Scripts will terminate as soon as their appointed tasks are complete. There are ways to go around this limitation for scripts, but that is another story.

EAs can be backtested/optimized while scripts cannot be used on Strategy Tester. 

The input (external parameters) can be hidden from scripts using the show_inputs property. You cannot do this in expert advisors.

I agree with you. Thank for your info.
Sergey Dzyublik
4817
Sergey Dzyublik 2014.10.25 09:48  
Any EA has its own thread of execution (In mt4 you could open new indicators with default parameters using API )
Alain Verleyen
Moderator
30702
Alain Verleyen 2014.10.25 13:06  
ALXIMIKS:
Any EA has its own thread of execution (In mt4 you could open new indicators with default parameters using API )
It's also true for Scripts.
To add comments, please log in or register