Can not use Zigzag in my custom indicator
htondkar:
I'm trying to create an indicator that uses zigzag as it's base and adds some extra features on top of that. but the zigzag lines don't show up correctly.
here's my code:
What am I doing wrong here?
Thank you in advance
Insert this line (highlighted) so that zeros are ignored:
SetIndexBuffer(0,linesBuffer,INDICATOR_DATA); PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0); ZigZagHandle=iCustom(NULL,0,"Zigzag",12,5,3,3,0);
I'm trying to create an indicator that uses zigzag as it's base and adds some extra features on top of that. but the zigzag lines don't show up correctly.
here's my code:
What am I doing wrong here?
Thank you in advance