Hi,
I've tested several of the chaos and haos indicators and can say one thing for certain: the indicator that Jimmy is using has the best performance when using iCustom. It is in fact infinitely better because the others would crash my mt4 if I used too many bars back (even 500 bars back was pushing it). I was able to go back 5000 bars with this one and have an almost instant response. Just to be clear, use 'HaosVisual averages.ex4" if you are using it from an EA. If using from just to look at they all performed reasonably well.
Update - the parameters were messed up which was causing the issues. so ignore the above!
Here is the code I got to work, adjust as desired:
Code: Select all
string haosName = "HaosVisual averages";
int firstWprSmoothingPeriod = 5;
enMaTypes maType = ma_lead;
int fastWprPeriod = 21;
double haosVisSlow = iCustom(NULL,0,haosName, firstWprSmoothingPeriod, maType, fastWprPeriod, 5, i);
enum enMaTypes
{
ma_adxvma, // Adxvma
ma_ahr, // Ahrens moving average
ma_alxma, // Alexander moving average - ALXMA
ma_dema, // Double exponential moving average - DEMA
ma_dsema, // Double smoothed exponential moving average - DSEMA
ma_emas, // Ema derivative - EMAD
ma_ema, // Exponential moving average - EMA
ma_hull, // Hull moving average - HMA
ma_ie2, // IE/2
ma_ie_2, // IE/2
ma_ilinr, // Integral of linear regression slope
ma_itl, // Instantaneous trendline
ma_lagg, // Laguerre filter
ma_lead, // Leader exponential moving average
ma_linr, // Linear regression value - LSMA
ma_lwma, // Linear weighted moving average - LWMA
ma_mcg, // McGinley Dynamic
ma_mcma, // McNicholl ema
ma_nlma, // Non lag moving average
ma_pwma, // Parabolic weighted moving average - PWMA
ma_rmta, // Recursive moving trendline - RMTA
ma_sma, // Simple moving average - SMA
ma_sine, // Sine weighted moving average
ma_smma, // Smoothed moving average - SMMA
ma_smoo, // Smoother
ma_ssm, // Super smoother
ma_b3p, // Three pole Ehlers Butterworth
ma_s3p, // Three pole Ehlers smoother
ma_tma, // Triangular moving average - TMA
ma_tema, // Tripple exponential moving average - TEMA
ma_b2p, // Two pole Ehlers Butterworth
ma_s2p, // Two pole Ehlers smoother
ma_vema, // Volume weighted ema - VEMA
ma_vwma, // Volume weighted moving average - VWMA
ma_zldema, // Zero lag dema
ma_zlma, // Zero lag moving average
ma_zltema // Zero lag tema
};
Good luck trading!
Mark