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_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
};
externENUM_TIMEFRAMES TimeFrame = PERIOD_CURRENT; // Time frameexternint period1 = 8; // First wpr average smoothing periodextern enMaTypes matype1 = ma_ie2; // First wpr average smoothing methodexternint per1 = 14; // First wpr periodexterndouble levu1 = 30; // First wpr up levelexterndouble levd1 = -30; // First wpr down levelexterncolor colorup1 = clrDeepSkyBlue; // Color when up level crossed upexterncolor colordn1 = clrSandyBrown; // Color when down level crossed downexternint period2 = 8; // Second wpr average smoothing periodextern enMaTypes matype2 = ma_ie2; // Second wpr average smoothing methodexternint per2 = 96; // Second wpr periodexterndouble levu2 = 40; // Second wpr up levelexterndouble levd2 = -40; // Second wpr down levelexterncolor colorup2 = clrDeepSkyBlue; // Color when up level crossed upexterncolor colordn2 = clrSandyBrown; // Color when down level crossed downexternbool madouble = false; // Should the averages be double smoothed?
And then the call should be like this :
double value = iCustom(NULL,TimeFrame,"Chaos Visual averages 1.4",PERIOD_CURRENT,period1,matype1,per1,levu1,levd1,colorup1,colordn1,period2,matype2,per2,levu2,levd2,colorup2,colordn2,madouble,2,i);
But you really should consider using buffer No. 12 and 13 in the iCustom() call (read one of my previous posts for an explanation why)
Hello Mladen ! I have always wanted to create an expert advisor of the value chart indicators , but the way i create them is to using the indicators buffer , but when i look at the buffers from a value chart indicator they are mostly all black ,are there a hidden pattern in what buffers are used or are they calculated as price itself or maybe bearish and bullish candles ? Hope you understand my question ! :)
timmyhanke:
Hello Mladen ! I have always wanted to create an expert advisor of the value chart indicators , but the way i create them is to using the indicators buffer , but when i look at the buffers from a value chart indicator they are mostly all black ,are there a hidden pattern in what buffers are used or are they calculated as price itself or maybe bearish and bullish candles ? Hope you understand my question ! :)
timmyhanke
They are having the 4 "prices" of value chart : vc open, vc high, vc low and vc close. Those "prices" should not be confused with the regular prices
And here is the version with alerts too
And here is the version with alerts too
Murali
Wave trend oscillator already has alerts
Yes sorry i am wasting your time
murali
Can you add interpolation?
sebastianK
Here is a version with interpolation added
I would need to see how the parameters are declared too (the variable types)
Also, immediately, you are omitting some parameters, and you can not - the colors for example, the levels ...
i know there are still missing the call inside the icustom but i am not sure wherr to put them
thanks
Try like this
And then the call should be like this :
But you really should consider using buffer No. 12 and 13 in the iCustom() call (read one of my previous posts for an explanation why)
mladen
Could you make this ttm-mtf into a histogram and allow offline TFs?
thank you
Ray
I have always wanted to create an expert advisor of the value chart indicators , but the way i create them is to using the indicators buffer , but when i look at the buffers from a value chart indicator they are mostly all black ,are there a hidden pattern in what buffers are used or are they calculated as price itself or maybe bearish and bullish candles ?
Hope you understand my question ! :)
Hello Mladen !
I have always wanted to create an expert advisor of the value chart indicators , but the way i create them is to using the indicators buffer , but when i look at the buffers from a value chart indicator they are mostly all black ,are there a hidden pattern in what buffers are used or are they calculated as price itself or maybe bearish and bullish candles ?
Hope you understand my question ! :)
timmyhanke
They are having the 4 "prices" of value chart : vc open, vc high, vc low and vc close. Those "prices" should not be confused with the regular prices
timmyhanke
They are having the 4 "prices" of value chart : vc open, vc high, vc low and vc close. Those "prices" should not be confused with the regular prices