-
int day = 0; // this goes in OnInit()
If that is actually in your OnInit, then your code can't compile or you defined another day inside your OnCalculate. - You are running in a loop (i) but using the current time for your "day".
- Try TimeDay(Time[i]) != TimeDay(Time[i+1])

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 have an indicator which gives one signal Down Buffer... I wish to only give signal once per day... Like after the first signal it will not paint any signal for the rest of the day! I have tested with below code it's now not painting at all?
What am i doing wrong? It's now not showing any signal at all...