SetIndexBuffer(0,hBuffer,INDICATOR_DATA); SetIndexBuffer(4,lBuffer,INDICATOR_DATA);
Those buffers are arrays. Your assignments makes no sense. (and won't compile)
It's compiling
My problem is getting the code for the channel price break.When i use;
hBuffer < PRICE_TYPICAL
lBuffer > PRICE_TYPICAL
The buffers don't return when price break about the upper channel or below it. Someone help me get the right coding
My problem was the price to use
I eventually got the right price to use in-accordance to the dashboard. Dashboard runs perfectly now
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
Am coding a polynomial regression dashboard when price breaks the upper or lower channel line. Am using the i-Regr-2.0.mq5 indicator published here https://www.mql5.com/en/code/28375
The indicator has 2 buffers for the upper channel line and lower line as below;
My set doubles are like this;
What's the right coding when price breaks the upper channel and lower channel line? Have tried; hbuffer < Price_Typical all in vain.
Help!