I want to Next 30 Candle to Buy or Sell Trades in 1 Minute Chart

 

Sir,

I want to Next 30 Candle to Buy or Sell Trades in 1 Minute Chart.

Please see this Photo :-

https://charts.mql5.com/38/555/eurusd-m1-octa-markets-incorporated.png


How to do code it ?


I tried it but it doesn't work to  Next 30 Candle to Buy or Sell.

datetime m_prev_bars = 0;

bool New_bar()
{
 datetime time_0 = iTime(symbol_1,PERIOD_M30,0); // Time

      if(time_0 == m_prev_bars)
        {
         return false;
        }

      m_prev_bars = time_0;
   return true ;
}