Finding Time and Price in ZigZag Indicator

 

hi dear Friends

i want to Find Time and Price in ZigZag Indicator.

how can i find reversal direction points ( price and time )  specially for double top and double bottom ?

i need these two price and time for my forex scanner. therefore i donot need plot anything over chart. 

i  hope that you could understand what i mean?

god bless you.

 
Find the last two non-zero ZZ prices. Their indexes gives you the time.
 
William Roeder:
Find the last two non-zero ZZ prices. Their indexes gives you the time.

thank you for replying

i use custum indicator for zigzag in my scanner

   int    limit, bigshift=0;
   int GrossPeriod=60;
   int ExtDepth=12;
   int ExtDeviation=5;
   int ExtBackstep=3;
   int    counted_bars=IndicatorCounted();
//----
   if(counted_bars<0)
      counted_bars=0;
   if(counted_bars>0)
      counted_bars--;
   limit=Bars-counted_bars;
   double ExtMapBuffer1[];
   ArrayResize(ExtMapBuffer1,limit);
   for(int i=0; i<limit; i++)
      ExtMapBuffer1[i]=0;
   for(int i=0; i<limit; i++)
     {
      DebugBreak();
      ExtMapBuffer1[i]=iCustom(symbolName,VolumeTimeframe,"ZigZag",ExtDepth,ExtDeviation,ExtBackstep,0,bigshift);
      bigshift++;
     }
  

it work in first time but when i change time frame it show this error


2020.12.15 15:00:58.197 Custom indicator MyScanner EURUSD,H1: removed

2020.12.15 15:00:58.195 MyScanner EURUSD,H1: uninit reason 8

2020.12.15 15:00:58.195 MyScanner EURUSD,H1: not initialized


Step on New Rails: Custom Indicators in MQL5
Step on New Rails: Custom Indicators in MQL5
  • www.mql5.com
I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.