Unlock Trading Potential with iWPRSignAlert for MetaTrader 5

Mike 2016.07.20 23:43 49 0 0
Attachments

Hey fellow traders! Today, I want to introduce you to the iWPRSignAlert, a nifty semaphore arrow signal indicator that operates on the classic Williams’ Percent Range oscillator. It’s designed to help you spot overbought and oversold conditions, and it even comes with alerts that can ping you via email or push notifications to your mobile device!

Here’s a quick rundown of the updates we've made to enhance the indicator's functionality:

  1. New Input Parameters:
    inputuint NumberofBar=1;// Bar number for the signalinputbool SoundON=true; // Enable alertsinputuint NumberofAlerts=2;// Number of alertsinputbool EMailON=false; // Enable mailing the signalinputbool PushON=false; // Enable sending the signal to mobile devices
  2. New Functions: We've added three new functions to the indicator code:
    // Buy signal functionvoid BuySignal(string SignalSirname, // Indicator name for alertsdouble &BuyArrow[], // Buffer for buy signalsconstint Rates_total, // Current number of barsconstint Prev_calculated, // Previous bars countconstdouble &Close[], // Close pricesconstint &Spread[]) { // Spread// Your logic here...
        }
            
  3. Integration of BuySignal() and SellSignal(): These functions are now called right after the calculation cycles in the OnCalculate() block:
    BuySignal("iWPRSign", BuyBuffer, rates_total, prev_calculated, close, spread);
    SellSignal("iWPRSign", SellBuffer, rates_total, prev_calculated, close, spread);
            

Just a heads-up, make sure to set the empty values in the indicator buffers to either zeros or EMPTY_VALUE. You’ll only need one call to the BuySignal() and SellSignal() functions in the OnCalculate() block.

Fig.1. The iWPRSignAlert indicator

Fig.1. The iWPRSignAlert indicator on the chart

Fig.2. The iWPRSignAlert indicator generating alerts

Fig.2. The iWPRSignAlert indicator generating alerts.

List
Comments 0