yisrael wrote: Thu Dec 16, 2021 2:46 am
CAN U PUT THE QUANTUM TT INDICATOR ON CODE TAGS...
I DONT WANT TO DOWLOAD THE INDICATOR

THEN I WILL REVIEW IT ...GRADLY
________________________________________________________________________________
//+------------------------------------------------------------------+
//| Quantum.mq4 |
//+------------------------------------------------------------------+
//2012Jan27 mod for mer071898
#property copyright "© zznbrm, 2010 © jacik, Tankk, 29 марта 2020, http://forexsystemsru.com/"
#property link "
https://forexsystemsru.com/threads/indi ... nkk.86203/" ////
https://forexsystemsru.com/forums/indikatory-foreks.41/
#property strict
//---- indicator settings
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 clrDodgerBlue
#property indicator_color2 clrSpringGreen //Aquamarine
#property indicator_color3 clrDeepPink //Magenta
#property indicator_width1 2
#property indicator_width2 4
#property indicator_width3 4
//---- input parameters //60;
extern int qPeriod = 100; // = 24;
extern int qShift = 6;
//---- indicator buffers
double gadblUp3[];
double gadblDn3[], ZIGZAG[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(3); IndicatorDigits(Digits); if (Digits%2==1) IndicatorDigits(Digits-1); //if (Digits==3 || Digits==5)
SetIndexBuffer( 0, ZIGZAG ); // впадина
SetIndexEmptyValue( 0, 0.0 );
SetIndexStyle( 0, DRAW_SECTION );
SetIndexLabel( 0, "ZigZag" );
SetIndexShift( 0, qShift );
SetIndexBuffer( 1, gadblUp3 ); // впадина
SetIndexEmptyValue( 1, 0.0 );
SetIndexStyle( 1, DRAW_ARROW );
SetIndexArrow( 1, 250 );
SetIndexLabel( 1, "Bottom" );
SetIndexBuffer( 2, gadblDn3 ); // пик
SetIndexEmptyValue( 2, 0.0 );
SetIndexStyle( 2, DRAW_ARROW );
SetIndexArrow( 2, 250 );
SetIndexLabel( 2, "Vertex" );
//---- name for DataWindow and indicator subwindow label
IndicatorShortName( "Quantum [" + IntegerToString(qPeriod) + "]" );
return( 0 );
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return( 0 );
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars = IndicatorCounted();
if (counted_bars < 0) return (-1);
if (counted_bars > 0) counted_bars--;
int intLimit = Bars - counted_bars - 1;
int intLow3, intHigh3;
for( int i = intLimit; i >= 0; i-- )
{
gadblUp3
= 0.0;
gadblDn3 = 0.0; ZIGZAG=0;
intLow3 = iLowest( NULL, 0, MODE_LOW, qPeriod, i );
if ( intLow3 == i )
{
gadblUp3 = Low;
}
intHigh3 = iHighest( NULL, 0, MODE_HIGH, qPeriod, i );
if ( intHigh3 == i )
{
gadblDn3 = High;
}
//---
ZIGZAG = (gadblUp3!=0) ? gadblUp3 : gadblDn3[i];
}
return( 0 );
}
________________________________________________________________________________
________________________________________________________________________________
this indicator works in high / low and does not read the color of the candle, only squares(arrows) non repaint ZIGZAG