Your index in the first while loop is outside the loop.
Therefore the loop never finishes.
Edit:
And on the second one as well.
WP and SD are arrays with no size. Make them non-visible buffers. IndicatorBuffers - Custom Indicators - MQL4 Reference
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
hey guys, i need some help. new to mql4 dont know what im doing, im making a custom indicator for an ea. i wanted to get the VWAP indicator that resets daily and has the upper and lower bands using standard deviation. this is where i got to. Dont try and open it on mt4 because it will crash your pc. I ask for some tips / help on this. Thanks