-
if((----)) if((--))
Don't post code that won't even compile. -
***if(iVolume(NULL,timeframe,0)<=1){
For a new bar test, Bars is unreliable (a refresh/reconnect can change number of bars on chart,) volume is unreliable (miss ticks,) Price is unreliable (duplicate prices and The == operand. - MQL4 programming forum.) Always use time.
I disagree with making a new bar function, because it can only be called once per tick. A variable can be tested multiple times.
New candle - MQL4 programming forum - Saeid Reza Bahman Abadi: but it comment A moment and Fade.Of course, it does. What does your code do when it is not the start of a new bar?
void OnTick(){ string symbols=""; Comment("\n",symbols); }
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 want add signal comment to chart in mql4 every 1 hr
this code
but it comment A moment and Fade.
I want my code to be reviewed once a hour and not commented on