I'm just going to post my entire code and hopefully we can get this figured out. My head hurts.
It compiles, but it doesn't show on my chart. Idk what gives. You'll need to download and install the patched SmoothAlgorithms.mqh file floating around in the forums in order to compile it. The mqh file in the codebase has errors.
Someone was able to get it to work in trading view, so I know it's possible..
[censored due to market potential of being the only Hull VWMA on the MT5 market, but explanation below.]
Try to ignore my experimentations with wacky price combinations..
for(bar=0; bar<rates_total; bar++) { sum1=0; sum2=0; for(int ntmp=0; ntmp<int(n1); ntmp++) { if(VolumeType==VOLUME_TICK) vol=long(tick_volume[bar+ntmp]);
-
When bar approaches rates_total, you access beyond rates_total, array exceeded, indicator terminated, nothing displayed.
-
Why are you recalculating all bars each tick?
-
Do your lookbacks correctly #9 — #14 & #19. (2016)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is it possible?
Is the code compatible?