Enhance Your Trading Strategy with the RJTX_Matches_Smoothed Alert Indicator for MetaTrader 5

Mike 2018.12.28 22:09 18 0 0
Attachments

Author: Rafael Jimenez Tocino

Are you looking to step up your trading game? Check out the RJTX_Matches_Smoothed indicator, which comes packed with alerts, email notifications, and push notifications for your smartphone!

Here's a quick rundown of the enhancements made to the indicator, allowing you to receive timely alerts:

  • New input variables have been added to the indicator settings:
    • input uint NumberofBar=1; // Bar number to activate the signal
    • input bool SoundON=true; // Enable alerts
    • input uint NumberofAlerts=2; // Number of alerts
    • input bool EMailON=false; // Enable email alerts
    • input bool PushON=false; // Enable mobile alerts
  • We've added three new functions at the end of the indicator: BuySignal(), SellSignal(), and GetStringTimeframe().
  • You'll find calls to BuySignal() and SellSignal() right after the indicator calculation cycles in the OnCalculate() block:
    • BuySignal("RJTX_Matches_Smoothed_Alert", BuyBuffer, rates_total, prev_calculated, close, spread);
    • SellSignal("RJTX_Matches_Smoothed_Alert", SellBuffer, rates_total, prev_calculated, close, spread);

Just a heads up—BuyBuffer and SellBuffer are the names of the indicator buffers that hold your buy and sell signals. Remember to fill these buffers with zeros or EMPTY_VALUE for empty values.

Each function, BuySignal() and SellSignal(), should only be called once in the OnCalculate() block of your indicator.

The RJTX_Matches_Smoothed Alert Indicator utilizes the classes from the SmoothAlgorithms.mqh library, which you'll need to copy to your <terminal_data_directory>\MQL5\Include folder. For a comprehensive guide on using these classes, check out the article on Averaging Price Series for Intermediate Calculations Without Using Additional Buffers.

Fun fact: This indicator was first developed in MQL4 and made its debut in the Code Base back on December 23, 2015.

Fig.1. Indicator RJTX_Matches_Smoothed_Alert on the chart

Fig.1. RJTX_Matches_Smoothed_Alert indicator on the chart

Fig. 2. Indicator RJTX_Matches_Smoothed_Alert. Alerting

Fig. 2. Indicator RJTX_Matches_Smoothed_Alert. Alerting

List
Comments 0