#property indicator_buffers 2 #property indicator_plots 2 //IndicatorBuffers(5); SetIndexBuffer(0, upPipBuffer); SetIndexBuffer(1, dnPipBuffer); SetIndexBuffer(2, trendDirection); SetIndexBuffer(3, waveDirection); SetIndexBuffer(4, barDirection);How can you have five buffers when you set the property to two?
You are absolutely right, I missed that. Now when I set indicators buffer to 5 I get an array error on the following lines
for (int k=waveChangeBar-1; k>=i; k--) {
pipTracker +=(NormalizeDouble(open[k],5)-NormalizeDouble(close[k],5))*MathPow(10, _Digits)/10;
You are absolutely right, I missed that. Now when I set indicators buffer to 5 I get an array error on the following lines
for (int k=waveChangeBar-1; k>=i; k--) {
pipTracker +=(NormalizeDouble(open[k],5)-NormalizeDouble(close[k],5))*MathPow(10, _Digits)/10;
Thank you for your help, I appreciated
I fixed that error too .
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Could someone help out Array our of Range at the beginning of the "for" loop at line 130.