MQL4 - automated forex trading   /  

Forum

expert advisor help

Back to topics list To post a new topic, please log in or register

avatar
15
tkelvisa 2007.12.12 01:58 
if some condition in axpert advisor is true does it mean that all other conditions
will not be checked at all in that expert advisor or expert advisor is checking all the time.

is it possible that i write more expert advisors and then to attach more than one at the same chart!

i would like that some conditions are checked until they are true and some to be checked every 30 minutes if they are true or false.


is it possible.

i need code for that



thanks
article

Interview with Andrey Khatimlyanskyy

"The Championship is a good motivation for those who write Expert Advisors to develop better programs. The rules are rather strict in order to avoid chance gains, though they eliminate many good strategies. The promised prizes impress me much, but I would add some small incentive prizes. Organization is on the up and up, and I think the technical aspect will make the grade, too. I suppose such championships should be regular. But to begin with, let us observe this current one."


avatar
279
devilian1899 2007.12.12 04:18 
tkelvisa wrote:
if some condition in axpert advisor is true does it mean that all other conditions
will not be checked at all in that expert advisor or expert advisor is checking all the time.

It's depend's on your code's structure

is it possible that i write more expert advisors and then to attach more than one at the same chart!

Only one EA on one chart, however, you can open another chart (same pair and same timeframe) and attach another EA on it. But both EAs should have an ability to do this (ie, magic number, etc)

i would like that some conditions are checked until they are true and some to be checked every 30 minutes if they are true or false.

is it possible.

It's possible, use
TimeMinute(TimeCurrent());
i need code for that



thanks

Back to topics list  

To add comments, please log in or register