Indicators: Ticks

 

Ticks:

It's a simple example of the indicator, that show ticks in the separate subwindow.

It uses the standard indicator's buffers, shifted by the PlotIndexSetInteger() function after each tick.

Author: MetaQuotes


 

After removing the indicator Comment remains.

Maybe add a function

OnDeinit function and overwrite it ?
 
satop писал(а) # :

After removing the indicator Comment remains.

Maybe add a function

OnDeinit and overwrite it ?
Fixed. Thanks.
 
I can't find where it's used
input int      number_of_ticks=1000;
 

And what is this design used for:

   static int ticks=0;
//---
   if(ticks==0)
     {
      ArrayInitialize(AskBuffer,0);
      ArrayInitialize(BidBuffer,0);
     }

or can't you do that?

   static int ticks=0;
//---
// if(ticks==0)
// {
      ArrayInitialize(AskBuffer,0);
      ArrayInitialize(BidBuffer,0);
// }
 
Automated-Trading:

Ticks:

Author: MetaQuotes

after lot of bars during backtest it generates an error "ArrayOutOfRange"