Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
6838
Rating:
(17)
Published:
2018.05.04 13:56
Updated:
2018.05.04 13:56
PowerSystem.mq5 (8.82 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The index is mainly based on the slope of EMA and MACD, and the following figure shows the principle of the indicator:

Figure 1: How the index works

Figure 1: How the index works

The effect is as follows:

Figure 2: Display of indicators

Figure 2: Display of indicators

Introduction of indicators:

This index is mainly used to check whether the trading direction is correct:

  • Red represents the rise, prohibits the sale, can buy or wait.
  • Green stands for decline, no buying, selling or wait.
  • Blue represents no trend, no prohibition.
  • Trend: when the trend continues, the blue column appears, indicating the tendency is weaker, and the signal of trend reversal is given.

Core code interpretation:

      if((macd_main_buffer[i]-macd_main_buffer[i-1])>0 && (ema_buffer[i]-ema_buffer[i-1])>0)
        {
         Power_buffer[i]=1;//rise signal
         color_buffer[i]=1;
        }
      if((macd_main_buffer[i]-macd_main_buffer[i-1])<0 && (ema_buffer[i]-ema_buffer[i-1])<0)
        {
         Power_buffer[i]=-1;//drop signal 
         color_buffer[i]=0;
        }

Translated from Chinese by MetaQuotes Ltd.
Original code: https://www.mql5.com/zh/code/20598

Triple Jurik Smooth Triple Jurik Smooth

Jurik smoothing is very responsive to price changes, is very smooth and it makes it a very good candidate for this type of trend assessment.

Ultra Trend Ultra Trend

Ultra Trend is one of the well known indicators made for MetaTrader 5 now.

Linear Regression Sketcher Linear Regression Sketcher

A variation of linear regression.

Dynamic Balance Point Dynamic Balance Point

Indicator that calculates dynamic balance point for the desired period.