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

UltraWPR_HTF_Signal_BG - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

UltraWPR_HTF_Signal_BG - indicator for MetaTrader 5

UltraWPR_HTF_Signal_BG - indicator for MetaTrader 5

UltraWPR_HTF_Signal_BG displays data-based trend direction information Ultra WPR 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.

Graphic objects are represented as colored backgrounds. The background comes in four colors. Light colors indicate trend continuation, bright colors indicate trading signals.

The indicator sends 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:

 //+------------------------------------------------+
//|Session drawing input parameters |
//+------------------------------------------------+
input boolean session_extraction= false ; // Display sessions during non-session periods
Input string SessionSirName= "Asian" ; // Session name
Enter hour StartHour=H00; // Session start time
Enter the minute. Start minute = M00; // Session start minute.
Input units session time = chapter 480 ; // Session duration (minutes)
input color up color = clr light turquoise ; // grow color
Enter color purchase_color = clelem ; // purchase color
input color sales color = clr dark pink ; // autumn color
Input color DN_color = clr light pink ; // sell color
  • Input parameters for UltraWPR:
     //+------------------------------------------------+
    //| Indicator input parameters |
    //+------------------------------------------------+
    Enter string symbol_= ”” ; // Financial instrument
    Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Indicator time range for indicator calculation
    Enter integer WPR_Period = 13 ; // Period of WPR indicator
    //---
    Enter Smooth_Method W_Method=MODE_JJMA; //Method for finding the average
    Input integer starting length = 3 ; // average starting period
    Input integer W phase = 100 ; // Average period (-100..+100)
    //---
    Input unit steps = 5 ; // Cycle change steps
    The total number of steps in the input unit = 10 ; // Number of cycle changes
    //---
    Enter Smooth_Method SmoothMethod=MODE_JJMA; // Smoothing method
    Input integer smoothing length = 3 ; // smoothing depth
    Input integer smoothing phase = 100 ; // smoothing parameter (-100..+100)
  • Input parameters of the UltraWPR_HTF_Signal_BG indicator required for indicator visualization:
     //----Indicator visualization settings
    Input unit signal field = 0 ; // Number of bars to receive the signal (0 - current bar)
    Input stringSymbols_Sirname =INDICATOR_NAME "_label_" ; // Name of the indicator label
    Input color IndName_Color=Dark Orchid; // Color of indicator name
    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 ; // position angle
  • Input parameters of the UltraWPR_HTF_Signal indicator required to generate 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 UltraWPR_HTF_Signal_BG indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.

    Place the indicator compiled file UltraWPR.mq5 into terminal_data_folder\MQL5\Indicators\ of the client.

    UltraWPR_HTF_Signal_BG - indicator for MetaTrader 5

    Figure 1. Trend continuation signal based on UltraWPR_HTF_Signal_BG indicator data

    UltraWPR_HTF_Signal_BG - indicator for MetaTrader 5

    Figure 2. Position opening signal based on UltraWPR_HTF_Signal_BG data


    Attachment download

    📎 smoothalgorithms.mqh (134.03 KB)

    📎 ultrawpr.mq5 (10.93 KB)

    📎 ultrawpr_htf_signal_bg.mq5 (21.08 KB)

    Source: MQL5 #2018

    Verification code Refresh