Hi Ruptor,
Thanks for the reply. I found out the issue. In my indicator code my variables were declared in the start function. So when a new tick arrived, the variables were repopulated with fresh values and hence weekly open got set to zero and it messed up the entire code. Upon declaring the variables in the beginning of the indicator, the indicator is now working fine. The expert is also working fine now.
Thanks again for looking at this...
Thanks for the reply. I found out the issue. In my indicator code my variables were declared in the start function. So when a new tick arrived, the variables were repopulated with fresh values and hence weekly open got set to zero and it messed up the entire code. Upon declaring the variables in the beginning of the indicator, the indicator is now working fine. The expert is also working fine now.
Thanks again for looking at this...
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 need a small help. I have written a simple weekly open, high low indicator that is working properly. Here is the code. However when i try to access this indicator from an expert advisor, it does not display the correct weekly open values. Appreciate if someone can help. the code for the expert advisor is below the indicator code.
Thanks a lot in advance,
Arooba
Indicator-----------------------------------------------------------------------------------
Expert---------------------------------------------------------