mvalue:
Both wont change for one hour (because of the timeframe Period_H1) no matter how often you are calling them.
Hi.
COuld anyone support me?
In the code below when I call copyopen the Time[] vector and OpenPrice[] vector are updated only the first time but every time void OnTimer is called later they are not updated anymore
hey are not updated anymore
Carl Schreiber #:
Both wont change for one hour (because of the timeframe Period_H1) no matter how often you are calling them.
I forgot. I'm operating in debugging mode. Both wont change for one hour (because of the timeframe Period_H1) no matter how often you are calling them.
I set eventsettimer=3600 in oninit so void ontimer is called every 1 hour.
In the correct way the variabile timenow increase of 1 hour everytime the void ontimer is called ( I checked) but that not happen for the arrays ( Time and Openprice) output of copyone. It's so strange... If the input ( timenow) of copyone change why its output ( Time and Open Price) do not?
Try to debug with hist. Quotes (Strg+F5).
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
Hi.
COuld anyone support me?
In the code below when I call copyopen the Time[] vector and OpenPrice[] vector are updated only the first time but every time void OnTimer is called later they are not updated anymore
hey are not updated anymore