Help understanding indicator functions

To add comments, please log in or register
ahmedk
778
ahmedk  

Good day all, i would just like some help understanding the marked parameters in the pic of an indicator. what do these functions do?

Thank you

William Roeder
18943
William Roeder  
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. We can't know your indicator or its version- Post your code.
ahmedk
778
ahmedk  
William Roeder:
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. We can't know your indicator or its version- Post your code.

sorry, forgot to attach the indicator

William Roeder
18943
William Roeder  
extern double          SmoothLength     = 10.0;
extern double          SmoothPhase      = 0;
extern bool            SmoothDouble     = false;
extern bool            Interpolate      = true;
  1. First two appear to be inputs to JMA
              'JMA adaptive average' indicator by 'GODZILLA' for MetaTrader 5 in the MQL5 Code Base

  2. Instead of computing JMA(v,length), if Double is true it computes JMA(JMA(v,√ length),√ length)

  3. Interpolate is used when TimeFrame is not current. Instead of using the higher timeframe's values (MTF stair step) it interpolates between the two values.
Mladen Rakic
139663
Mladen Rakic  
ahmedk:

Good day all, i would just like some help understanding the marked parameters in the pic of an indicator. what do these functions do?

Thank you

That is an offspring of ADXVMa indicator (where the "adx trend" is one of the steps that are calculated in the process of making the ADXVMA average

Smoothing used in it has nothing in common with Nikolay Kositsins version (completely different code) and is used in order to smooth up the "adx" values that tend to be choppy

Smooth phase can vary from -100 to +100. Setting it to 5 will not change much. +values used in phase are producing "overshooting" while -values in phase are "undershooting". Try using +100 or -100 and you shall see more clearly what hapens
ahmedk
778
ahmedk  
Thank you mladen and william both so much! your help is much appreciated!
To add comments, please log in or register