Attachments forums

List of attachments posted on this forum.


All files on forums: 136244

Re: Chaos Visual Averages Indicators for MT4

mwaschkowski, Sat Oct 17, 2020 8:21 am

Hi,

I am using HaosVisual averages.ex4 and ran into something I'm unsure about. I highlighted everywhere on the chart (in clrPlum) where the fast value was > 30 or < -30:
With the first circle the highlight should have shown but didn't. For the next two the candles are highlighted but never reach the threshold of 30. I figured it was just a discrepancy between my settings and the indicator but after checking multiple times everything is identical. This is for EURUSD Sept 18, 2020.

Code: Select all

      enMaTypes maType = ma_lead;
      double haosVisFast = iCustom(NULL,0,"HaosVisual averages", 12, ma_lead, 15, 30, -30, 8, ma_lead, 96, 40, -40, false, 6, i);

      if(haosVisFast > 30 || haosVisFast < -30) {
         doHighlight(i, clrPlum, 1, "", clrPaleGreen, 1,drawPrefix);
         //drawVerticalLine(i, clrPaleGreen,1, drawPrefix, haosVisFast + ", haosFast2:"+ haosFast2);
      }
      
      
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
};
I thought maybe this was because the candle was open but I tested with i+1 and i+2 to the same effect. Any ideas why this might happen?

Any help would be much appreciated.

Mark
All files in topic