I'm trying to create a Histogram based on the previous High/Low values of a :ZigZag" type of indicator called Swing_ZZ.mq4... But I'm just not getting it right.... If someone could point me in the right direction here I'd appreciate it...
Thanx
This is the jist of the Swing_ZZ indi:
//+------------------------------------------------------------------+//| Swing_ZZ.mq4 |//+------------------------------------------------------------------+#property copyright"onix"#property link"http://onix-trade.net/forum/index.php?s=&showtopic=118&view=findpost&p=131476"#property indicator_chart_window#property indicator_buffers3#property indicator_color1 Aqua
#property indicator_color2 Red
#property indicator_color3 Blue
//---- indicator parametersexternint minBars = 3;
//---- indicator buffersdouble zzL[];
double zzH[];
double zz[];
//+------------------------------------------------------------------+//| Custom indicator initialization function |//+------------------------------------------------------------------+
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi Guys
I'm trying to create a Histogram based on the previous High/Low values of a :ZigZag" type of indicator called Swing_ZZ.mq4... But I'm just not getting it right.... If someone could point me in the right direction here I'd appreciate it...
Thanx
This is the jist of the Swing_ZZ indi:
int init() { // IndicatorBuffers(3); //---- drawing settings SetIndexStyle(2,DRAW_ARROW); SetIndexStyle(1,DRAW_ARROW); SetIndexStyle(0,DRAW_SECTION); SetIndexArrow(2,159); SetIndexArrow(1,159); //---- indicator buffers mapping SetIndexBuffer(0,zz); SetIndexBuffer(1,zzH); SetIndexBuffer(2,zzL); SetIndexEmptyValue(0,0.0); SetIndexEmptyValue(1,0.0); SetIndexEmptyValue(2,0.0);And this is my attempt to read the High/lows...
Any idea's.....?