init function being rerun on every tick?

 

This alert seems to sound constantly even when price is above the TENKANSEN it still sets it to 0.

Is the init function being rerun?


//+------------------------------------------------------------------+
//|                                       AlertWhenHitsTenkansen.mq4 |
//|                      Copyright © 2009, MetaQuotes Software Corp. |
//|                                        https://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, MetaQuotes Software Corp."
#property link      "https://www.metaquotes.net"

#property indicator_chart_window

int CurrentPrice = 2;

      
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
      if (Bid < iIchimoku(Symbol(), Period(), 9, 26, 52, MODE_TENKANSEN, 0)) {CurrentPrice = 0;}//price below, alert when hit Ts
      if (Bid > iIchimoku(Symbol(), Period(), 9, 26, 52, MODE_TENKANSEN, 0)) {CurrentPrice = 1;}//price below, alert when hit Ts
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
      
      if (CurrentPrice == 0) {
         Comment("Current price is below Ts:"+CurrentPrice);
      }
      if (CurrentPrice == 1) {
         Comment("Current price is above Ts:"+CurrentPrice);
      }
      
      if (CurrentPrice == 0 && Bid >= iIchimoku(Symbol(), Period(), 9, 26, 52, MODE_TENKANSEN, 0))
      {
         Alert("Price hit Ts on "+Symbol()+" "+Period());
      }
      
      if (CurrentPrice == 1 && Bid <= iIchimoku(Symbol(), Period(), 9, 26, 52, MODE_TENKANSEN, 0))
      {
         Alert("Price hit Ts on "+Symbol()+" "+Period());
      }

  }
//+------------------------------------------------------------------+
Reason: