Indicators: Schaff Trend Cycle - page 2

 

There are two errors:

1. file \MQL5\Include\SmoothAlgorithms.mqh

...........

enum Smooth_Method
{
MODE_SMA_, //SMA
MODE_EMA_, //EMA
MODE_SMMA_, //SMMA
MODE_LWMA_, //LWMA
MODE_JJMA, //JJMA
MODE_JurX, //JurX
MODE_ParMA, //ParMA
MODE_T3, //T3
MODE_VIDYA, //VIDYA
MODE_AMA //AMA
};
//+------------------------------------------------------------------+
//| Universal smoothing algorithm|
//+------------------------------------------------------------------+
class CXMA
{
public:
<the Smooth_Method declaration has been moved outside the class>

.....

2. MQL5\Indicators\486\schafftrendcycle.mq5

//+-----------------------------------+
//| Indicator input parameters |

//+-----------------------------------+

was :

input Smooth_Method MA_SMethod=MODE_EMA; //Histogram smoothing method

should:

input Smooth_Method MA_SMethod=MODE_EMA_; //Histogram smoothing method

If this is corrected, the indicator is compiled and displayed on the chart.

Thank you.

 

input Smooth_Method MA_SMethod=MODE_EMA_; //Histogram smoothing method

It doesn't compile. Who has a working version? Send it to me in private