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 did not understand what was wrong, because I think I entered like last time, but surely it's me that I'm wrong. Excuse me, GumRai. You are a great !!!
Greetings, Massimo.
No worries,
I am just happy that you have it worked out
Exactly.
Indicators do not use new bar code. They use either rates_total and previous_calculated, or Bars and IndicatorCounted() so they recalculate the newly added earlier data.
EA's use the Time[0] new bar code to detect a new bar.
Example on the daily: Thursday=[1] Friday=[0] Bars=2
Then history is added: Tuesday=[3], Wednesday=[2] Thursday=[1] Friday=[0] Bars changed to 4 but the day is still Friday: no new day.
Exactly.
Indicators do not use new bar code. They use either rates_total and previous_calculated, or Bars and IndicatorCounted() so they recalculate the newly added earlier data.
EA's use the Time[0] new bar code to detect a new bar.
Example on the daily: Thursday=[1] Friday=[0] Bars=2
Then history is added: Tuesday=[3], Wednesday=[2] Thursday=[1] Friday=[0] Bars changed to 4 but the day is still Friday: no new day.
Ye ye, ofcourse. You are wrong again. No new day. But there are new bars-data-days and you need to recount all data in indicator or EA.
I know this thread is old but could you please help me check the attached indicator. I want the arrow to appear 90s before the event happens. i have tried numerous solutions but i dont seem to get it right. i would have pasted the code itself but its above 64000
https://pastebin.com/XSHR9ZvH
thanks