ASCtrendAlert: Your Go-To Indicator for MetaTrader 5 Alerts

Mike 2017.01.20 01:38 9 0 0
Attachments

Hey fellow traders! Today, I want to dive into the ASCtrend semaphore signal indicator, which is a fantastic tool for those using MetaTrader 5. One of the standout features of this indicator is its ability to send alerts, emails, and push notifications, making it a must-have for anyone looking to stay ahead in the trading game.

New Features in ASCtrendAlert

Recently, some exciting updates have been made to the indicator's code, enhancing its alert capabilities. Here’s a quick rundown of what’s new:

  • New Input Parameters: The indicator now includes additional input parameters for better customization:
  • 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 Signal Functions: The code now includes three new functions to manage buy and sell signals more efficiently:
  • //+------------------------------------------------------------------+
    //| Buy signal function                                               |
    //+------------------------------------------------------------------+
    void BuySignal(string SignalSirname, // text of the indicator name for email and push messages
        double &BuyArrow[], // indicator buffer with buy signals
        const int Rates_total, // the current number of bars
        const int Prev_calculated, // the number of bars on the previous tick
        const double &Close[], // close price
        const int &Spread[]) // spread
    { /* function code */ }
    
  • Integration of Signal Functions: The BuySignal() and SellSignal() functions have been integrated into the OnCalculate() block for seamless operation:
  • BuySignal("ASCtrend", BuyBuffer, rates_total, prev_calculated, close, spread);
    SellSignal("ASCtrend", SellBuffer, rates_total, prev_calculated, close, spread);
    

Remember, the BuyBuffer and SellBuffer are crucial for storing the buy and sell signals. For optimal performance, ensure that these buffers are either set to zeros or EMPTY_VALUE when there are no signals.

Lastly, keep in mind that you should only call the BuySignal() and SellSignal() functions once in the OnCalculate() block. This will ensure the indicator runs smoothly without any hiccups.

Visual Insights

Check out how the ASCtrendAlert indicator looks on your chart:

Fig.1. ASCtrendAlert indicator on the chart

Fig.1. ASCtrendAlert indicator on the chart

Fig.2. BykovTrendAlert indicator. Generating alerts

Fig.2. BykovTrendAlert indicator. Generating alerts

List
Comments 0