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
continuation of the question:
The algorithm for such a condition is implemented as follows, here is the filter itself:
And here is the entry condition itself:
But the Expert Advisor does not seem to see the filter condition! It continues to open positions without paying attention to
if (Trade_Filter2==true || ! FILTER_ ) { .....
I do not understand why. Repeatedly monitored online opening of positions. But the filter does not work! The Expert Advisor does not see it. Please, tell me where it is wrong ?
And another question. What is the correct way to set in global variables (it is the first option at the moment)
bool Trade_Filter2=0; or just bool Trade_Filter2;
the continuation of the question:
...
Output MA_11, MA_21, DELTA_MA_2 in Coment() and see what's there. Comment() inserted after double DELTA_MA_2...
The MACD is being compared from two different symbols, they can have very different dimensions.
There is a comment. The comment is set to "Filter allows (or denies) entry"), like this:
Made this way:
I visually observe that the lines still diverge and the comment displays "Filter prohibits input"! But the entry is still implemented - the EA does not pay attention to the filter.The dimensionality of the tools is the same, or (with different dimensionality) - programmatically reduced to the same using coefficients (this is not shown in the code above, not to clutter it up)). That's fine!
But double DELTA_MA_2, MA_11, MA_21- are declared below f-i Comment()
But Trade_Filter2 is declared in global variables! So, I think everything is done correctly in the comment!
Good afternoon. After today's update of mt4 I can't compile EA code. There are 30 strange errors coming out of the compiler.
Could you please tell me why errors suddenly appear on the following lines
'on_off' - undeclared identifier Exp_ARBITR_2Line_Spread_002Mod.mq4 125 35code:
'on_off4' - undeclared identifier Exp_ARBITR_2Line_Spread_002Mod.mq4 140 47
'on_off41' - undeclared identifier Exp_ARBITR_2Line_Spread_002Mod.mq4 142 47
And how to correct them?
Does it compile like this?
But it's better this way:
If I've telepathised correctly, this should work