Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

TrendLineAlert_V2 - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

TrendLineAlert_V2 - indicator for MetaTrader 5

TrendLineAlert_V2 - indicator for MetaTrader 5

TrendLineAlert_V2 - indicator for MetaTrader 5

The indicator shows a sloping trend line. Its parameters are set when the trader starts the indicator. Trend lines define signal trigger levels. Line breaks activate signals accompanied by emails and push notifications.

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

TrendLineAlert_V2 - indicator for MetaTrader 5

Figure 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.

TrendLineAlert_V2 - indicator for MetaTrader 5

Figure 2. TrendLineAlert_V2 indicator. active trend line

Once the price reaches the trigger line, the indicator activates an alert or audio signal.

TrendLineAlert_V2 - indicator for MetaTrader 5

Figure 3. TrendLineAlert_V2 indicator. Activate alarm

The indicator provides a signal on every price move, during which the line remains broken until the signal limit is reached. This limit is specified by the AlertTotal external variable (number of signals) in the indicator settings. Thereafter, the trigger line is gray and becomes inactive until the trader moves it to the desired level and changes color accordingly.

 //+------------------------------------------------+
//|Indicator input|
//+------------------------------------------------+
Input string level name = "trend_level_1" ; //Trigger level name
input string level comment = "trend trigger level" ; // trigger level comment
Input color activity level color = red blood cell ; //activated level color
Input color inactive level color = gray gray ; //trigger level color
Input ENUM_LINE_STYLE level style = style_entity ; //Trigger level style
Input ENUM_WIDTH level_width=w_3; //Trigger level width
Input boolean alert on = true ; //Allow alerts allowed
Total number of input unit alarms = 3 ; //Number of signals
input boolean email-on = false ; // allow email
input boolean pressed = false ; //Allow push notifications
Input boolean deletelevel= true ; //Remove level settings when changing time range



Attachment download

📎 trendlinealert_v2.mq5 (32.64 KB)

Source: MQL5 #22583

Verification code Refresh