Anil Varma -: Please suggest what I am doing wrong.
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the file.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the file.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
Thanks William
Got your point. Will post the detailed one tomorrow, as exhausted for the day. Time for going to bed soon.
Hi Varma
Please change code
int CurrIdx = iBarShift(m_Symbol,PERIOD_CURRENT,iTime(m_Symbol,m_TF_M5,0)); int PrevIdx = iBarShift(m_Symbol,PERIOD_CURRENT,iTime(m_Symbol,m_TF_M5,1));
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
I am using ATR indicator with period as Day. Index[0] of this indicator returns the current day's ATR and as the day progresses it increases or stays same. I want to capture its changes on every 5 minute.
I have tried using iTime/iBarShift functions as below to get Index values on Period_M5. In iBarShift (exact=false or true) gives same results:
Now when I pass these Index values in ATR_D1 call, it gives me same values for Day[0] M5[2] and M5[1].
Please suggest what I am doing wrong.
Wishing you all a happy weekend.