Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

TrendLineAlert_V2 - indicator for MetaTrader 5

Views:
8099
Rating:
(14)
Published:
2018.12.18 19:12
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The indicator displays a sloping trend line. Its parameters are set when the indicator is launched by a trader. The trend line defines the signal trigger level. The line breakthrough activates signals accompanied by emails and push notifications.

During the first launch, the line that sets the trigger level is colored gray and remains inactive.

Fig. 1. TrendLineAlert_V2 indicator. Inactive trend line

Fig. 1. TrendLineAlert_V2 indicator. Inactive trend line


When a trader changes the line position on the chart, it becomes active and changes its color to red.

Fig. 2. TrendLineAlert_V2 indicator. Active trend line.

Fig. 2. TrendLineAlert_V2 indicator. Active trend line


As soon as the price reaches the trigger line, the indicator activates alerts or audio signals.


Fig. 3. TrendLineAlert_V2 indicator. Activating an alert

Fig. 3. TrendLineAlert_V2 indicator. Activating an alert

The indicator provides signals at each tick, during which the line remains broken till the signal limit is reached. The limit is specified by the AlertTotal external variable (number of signals) in the indicator settings. After that, the trigger line is colored gray and becomes inactive until moved to required levels by a trader with the corresponding color change.

//+------------------------------------------------+
//| Indicator inputs                               |
//+------------------------------------------------+
input string level_name="Trend_Level_1";                            //trigger level name
input string level_comment="trend trigger level";                   //trigger level comment
input color active_level_color=clrRed;                              //activated level color
input color inactive_level_color=clrGray;                           //triggered level color
input ENUM_LINE_STYLE level_style=STYLE_SOLID;                      //trigger level style
input ENUM_WIDTH level_width=w_3;                                   //trigger level width
input bool AlertON=true;                                            //Allow alerts
input uint AlertTotal=3;                                            //number of signals
input bool EMailON=false;                                           //Allow emails
input bool PushON=false;                                            //Allow push notifications
input bool Deletelevel=true;                                        //remove level settings when changing timeframe 


Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22583

XBullsBearsEyes_Vol_Direct XBullsBearsEyes_Vol_Direct

XBullsBearsEyes_Vol indicator shows direction of the histogram bars movement using colored icons on these bars

XBullsBearsEyes_Vol_HTF XBullsBearsEyes_Vol_HTF

XBullsBearsEyes_Vol indicator with the timeframe selection option available in input parameters

MAMy Expert MAMy Expert

MAMy v.3 indicator-based EA

Virtual Virtual

Virtual trading environment