iMAX3alert Fast trend alert indicator. – indicator MetaTrader 4

iMAX3alert Fast trend alert indicator. - indicator for MetaTrader 4
This version of the iMAX indicator is an example of how methods used in iMAX3 can be more fully developed into useful trading tools, especially programming the amplitude phase shifts for the higher speed hp trend detection modes introduced in iMAX3. This version is also liberally commented to aid in better understanding the mechanics of

Fast iBarShift and Bars for MT5 – library MetaTrader 5

iBarShift
There are many versions of the iBarShift functions for MetaTrader 5. However, this version is especially simple, fast, and correct. int iBarShift(const string Symb,const ENUM_TIMEFRAMES TimeFrame,datetime time,bool exact=false)   {    int Res=iBars(Symb,TimeFrame,time+1,UINT_MAX);    if(exact) if((TimeFrame!=PERIOD_MN1 || time>TimeCurrent()) && Res==iBars(Symb,TimeFrame,time-PeriodSeconds(TimeFrame)+1,UINT_MAX)) return(-1);    return(Res);   } As of the publication of this code, the integrated Bars function used

Fast ema Hull average – indicator MetaTrader 5

Fast ema Hull average - indicator for MetaTrader 5
Theory : Original Hull moving average is calculated as LWMA[square root(period), (2*LWMA(period/2, price)-LWMA(period, price)] (where LWMA is Linear Weighted Moving Average). That kind of calculation produces rather smooth average with acceptable lag. Some other average types have been used too, but they tend to produce lag that is exceeding the lag of the original Hull