ATTENTION!!!
Found an innovative version of getting Demark price timeseries!!!
Found an innovative version of getting Demark price timeseries!!!
//--- this one case 12: { double res=High[bar]+Low[bar]+Close[bar]; if(Close[bar]<Open[bar]) res=(res+Low[bar])/2; if(Close[bar]>Open[bar]) res=(res+High[bar])/2; if(Close[bar]==Open[bar]) res=(res+Close[bar])/2; return(((res-Low[bar])+(res-High[bar]))/2); } //--- replace with case 12: { if(Close[bar]<Open[bar]) return (Close[bar]+Low[bar])/2; if(Close[bar]>Open[bar]) return (Close[bar]+High[bar])/2; return Close[bar]; }
Also in the code almost everywhere is missing break;, the code execution time increases.
Guys, you are being corrected by a schoolboy.

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
GFilter:
A Moving Average that includes price series processing by Gaussian filter.
The MA direction is marked with an appropriate color. The color of the dots depends on the direction of the moving average velocity.
Author: Nikolay Kositsin