Home Technical Indicator Post

Get Alerts on Your Trades with the iMFISignAlert Indicator for MetaTrader 5

Attachments
15843.zip (3.11 KB, Download 0 times)

Hey traders! Today, I want to introduce you to the iMFISignAlert indicator for MetaTrader 5, which uses semaphore arrows based on the classic Money Flow Index (MFI) oscillator. This nifty tool helps you pinpoint when the market is overbought or oversold, and it comes packed with features like alerts, email notifications, and push notifications to keep you in the loop no matter where you are!

Let's break down the upgrades that have been made to the indicator code to enhance its capabilities:

  • New Input Parameters: The code has been updated with some fresh input parameters to customize your alerts:
  • input uint NumberofBar=1;// Bar number for the signal
    input bool SoundON=true; // Enable alerts
    input uint NumberofAlerts=2;// Number of alerts
    input bool EMailON=false; // Enable mailing the signal
    input bool PushON=false; // Enable sending the signal to mobile devices
    
  • New Functions: Three new functions have been added to the indicator code:
  • //+------------------------------------------------------------------+
    //| Buy signal function                                             |
    //+------------------------------------------------------------------+
    void BuySignal(string SignalSirname, // Indicator name for notifications
        double &BuyArrow[], // Buffer for buy signals
        const int Rates_total, // Current number of bars
        const int Prev_calculated, // Bars from previous tick
        const double &Close[], // Close prices
        const int &Spread[]) // Spread {
        // Your buy signal logic here
    }
    
  • Integration in OnCalculate: The BuySignal() and SellSignal() functions are now called after the calculation cycles:
  • BuySignal("iWPRSign", BuyBuffer, rates_total, prev_calculated, close, spread);
    SellSignal("iWPRSign", SellBuffer, rates_total, prev_calculated, close, spread);
    

Make sure your indicator buffers, BuyBuffer and SellBuffer, are set up correctly to store your signals. Remember, empty values in these buffers can either be zeros or EMPTY_VALUE.

Here’s a sneak peek at the iMFISignAlert indicator in action:

iMFISignAlert indicator on the chart

Fig.1. The iMFISignAlert indicator on the chart

iMFISignAlert indicator generating alerts

Fig.2. The iMFISignAlert indicator generating alerts.

Related Posts

Comments (0)