[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 603
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
I removed everything related to PrevSignal but the message doesn't show up.
I didn't see the elephant in the room...
do a buffer initialization since it's an indicator...
#property indicator_chart_window
int init(){
IndicatorBuffers(2);
SetIndexBuffer(0,DeMarker_buffer0);
SetIndexBuffer(1,MA_buffer1);
SetIndexStyle(0,DRAW_NONE);
SetIndexStyle(1,DRAW_NONE);
}
remove ArraySetAsSeries call... and in
put the last parameter instead of 1 i
I didn't see the elephant in the room...
do a buffer initialization since it's an indicator...
#property indicator_chart_window
int init(){
IndicatorBuffers(2);
SetIndexBuffer(0,DeMarker_buffer0);
SetIndexBuffer(1,MA_buffer1);
SetIndexStyle(0,DRAW_NONE);
SetIndexStyle(1,DRAW_NONE);
}
remove ArraySetAsSeries call... and in
put the last parameter instead of 1 i
Here's what you get:
But I am confused by this line
Other composed indicators spell out Bars instead of limit.
This is what came out:
But I am confused by this line
Other composed indicators spell out Bars instead of limit.
I'm confused too... this iMAOnArray() function, I'm not sure it can properly calculate averaging if the second parameter is different from 0, i.e. calculation over the entire DeMarker_buffer0 array, better put 0...
I prescribed Bars instead of ...
Only the messages go many times until the signal bar closes.
0 is still correct...
and bring back the time control...
I forgot to mention that the line
I replaced by
int i,limit;
and replaced limit by Bars in the line
Now I will try to do as you say return PrevTime and replace the second parameter Bars with 0.
For example, I have an Expert Advisor running on mql4.
When I run it through extern variables, I set some values.
Question: Can I change at any time
some variables of the Expert Advisor during its operation (e.g., from the keyboard) and in such a case, it would not cause a restart of the Expert Advisor?
For example, I have an Expert Advisor running on mql4.
When I run it through extern variables, I set some values.
Question: Can I change at any time
some variables of the Expert Advisor during its operation (e.g., from the keyboard) and in such a case, it would not cause a restart of the Expert Advisor?
You can if you use global level variables. To change their values from the keyboard without turning off the EA, press F3 in the terminal.