use #include for parts, for exampe:
#include part1.mqh
use #include for parts, for exampe:
#include part1.
to do that i will have to put parts of my EA into the "include" folder, is that correct?
Yes, but it's not necessary.
ah, i c.
much appreciated.
or use functions, seperate your processes into many functions, i find it easier to enable/disable them when testing and such
My (2) pennies, :)
yeah, that's what i am doing currently.
i've found it hard to separate my EA into different files, actually.
especially the issue of including the same file more than 1 time...
yeah, that's what i am doing currently.
i've found it hard to separate my EA into different files, actually.
especially the issue of including the same file more than 1 time...
actually, divided program into different parts can make the strategy more elastic, but i think if u always want to make the program shorter by re-use different part, it cazn easily call logical error of the program, e.g. MODE_OF_TRADES and MODE_OF_HISTORY; OrderOpenTime and OrderCloseTime
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
i am planning on writing a rather complex EA, and would like to break it up into parts.
what's the best approach?
thanks for your input.