for(int i=1;i<Bars;i++){ : if(Trend[i+1]!=1) ADXUpBuffer[i+1] = ADXBuffer[i+1];
What is the value of Trend[i+1] and ADXBuffer[i+1]? You haven't set them yet! Count DOWN- Why are you recalculating every bar every tick? Do it write
int counted = IndicatorCounted(); if(counted < ADXPeriod) counted = ADXPeriod; for(int i = Bars-1 - counted; i >= 0; i--)
if(Trend[i]==1) //rising ADX
What do you do if the trend is not rising?
Thanks 2 U, WHRoeder!
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 2 all,
and thanks for taking your time!
The indicator loose the color after changing time frame and go back - I have to recompile, than it's all right again...where is my fault?
E.g.: Start D1: ok; switching to H4: ok; going back to D1: all red; going to H4: all red...
Thanks in advance...
Lupo