Kalman filter indicator bullish or bearish code

Benrashi Sagev Jacobson
343

hey, is there a guide about how get if the kalman filter indicator is bullish or bearish located in the articles or codebase section of the mql5 website that I am missing?

https://www.mql5.com/en/code/24690

int KFH;

int OnInit()
  {
   
   KFH = iCustom(_Symbol,_Period,"Kalman-filter-candlesmtf.ex5");
   
   
   return(INIT_SUCCEEDED);
  }

void OnTick()
  {


   double KF[];
   
   CopyBuffer(KFH,1,0,3,KF); //gets the price
  }



   }
Kalman filter - with candles or bars
Kalman filter - with candles or bars
  • www.mql5.com
Kalman filter - with candles or bars, multi time frame version
pennyhunter
716
pennyhunter  
Benrashi Sagev Jacobson:

hey, is there a guide about how get if the kalman filter indicator is bullish or bearish located in the articles or codebase section of the mql5 website that I am missing?

https://www.mql5.com/en/code/24690

You are searching for the color buffer which has only two values: one for bearish colored line, one for bullish.
Open the code and look for SetIndexBuffer with the flag INDICATOR_COLOR_INDEX. Its buffer number is what you need in the second parameter of CopyBuffer.