Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

EMA_Prediction_HTF_Signal - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 3 reads | 0 comments |

EMA_Prediction_HTF_Signal - indicator for MetaTrader 5

EMA_Prediction_HTF_Signal - indicator for MetaTrader 5

EMA_Prediction_HTF_Signal displays data-based trend direction information EMA_Prediction indicator on the selected bar as a graphical object with a colored indication of the trend or trading direction and emits an alert or audio signal and sends a push notification on your smartphone when a signal to place a trade appears.

The indicator will issue alerts and push notifications only if the value of the input parameter meets the following conditions:

 Enter the unit signal column = 0 ; // Get the number of bars for the signal (0 - current bar)

greater than one. For zero bars, sound signals and push notifications are of no use, since the indicator signal on the zero bar may change and disappear!

All input parameters can be divided into three major groups:

 Enter string symbol_= ”” ; // Financial instrument

Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Indicator time range for indicator calculation
Input unit Fast MAP period = 1 ; // Fast moving average period
Input ENUM_MA_METHOD FastMA type = mode_EMA ; // Average value of fast MA
Enter ENUM_APPLIED_PRICE fast price = PRICE_CLOSE ; // price of fast MA
Input unit slow MAP period = 2 ; // slow MA period
Input ENUM_MA_METHOD SlowMAType= mode_EMA ; // average of slow MA
Enter ENUM_APPLIED_PRICE slow MAP price = PRICE_CLOSE ; // price of slow MA
  • EMA_Prediction_HTF_Signal indicator input parameters required for indicator visualization:
    //---- Settings for indicator visual display
    Enter the unit signal column = 0 ; // Get the number of bars for the signal (0 - current bar)
    Input stringSymbols_Sirname =INDICATOR_NAME "_label_" ; // Name of the indicator label
    Input color UpSymol_Color=lime; // Color of the growth symbol
    Input color DnSymol_Color=Magenta; // Color of the autumn symbol
    Input color IndName_Color=Dark Orchid; // Color of indicator name
    Input unit symbol_size = 60 ; // size of signal symbol
    Input unit font size = 10 ; // Font size of indicator name
    Input integer X_1= 5 ; // horizontal movement of name
    Input integer Y_1=- 15 ; // Name moves vertically
    input boolean displayname = true ; // display indicator name
    Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // corner
    Input unit X_= 0 ; // horizontal movement
    Input unit Y_= 20 ; // vertical translation
    
  • EMA_Prediction_HTF_Signal indicator input parameters required to trigger alerts and audio signals:
     //---- Alarm settings
    Enter ENUM_ALERT_MODEalert_mode=OnlySound; // Options to trigger indication
    Input boolean push = true ; // Allow push notifications
    Input unit alarm count = 0 ; //Number of alarms generated
  • If you want to use multiple EMA_Prediction_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.

    Place the indicator compilation file EMA_Prediction.mq5 into terminal_data_folder\MQL5\Indicators\ of the client.

    EMA_Prediction_HTF_Signal - indicator for MetaTrader 5

    Figure 1. Trend continuation signal based on EMA_Prediction_HTF_Signal indicator data

    EMA_Prediction_HTF_Signal - indicator for MetaTrader 5

    Figure 2. Position opening signal based on EMA_Prediction_HTF_Signal data


    Attachment download

    📎 ema_prediction.mq5 (7.77 KB)

    📎 ema_prediction_htf_signal.mq5 (14.7 KB)

    Source: MQL5 #1938

    Verification code Refresh