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

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

author EAcpu | 3 reads | 0 comments |

PriceAlert_V2 - indicator for MetaTrader 5

PriceAlert_V2 - indicator for MetaTrader 5

PriceAlert_V2 - indicator for MetaTrader 5

This indicator displays a horizontal price line. Its parameters are set when the trader starts the indicator. This line defines the signal trigger level. Its breakthrough activates signals accompanied by emails and push notifications.

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

PriceAlert_V2 - indicator for MetaTrader 5

Figure 1. PriceAlert_V2 indicator. Invalid price line

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

PriceAlert_V2 - indicator for MetaTrader 5

Figure 2. PriceAlert_V2 indicator. active price line

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

PriceAlert_V2 - indicator for MetaTrader 5

Figure 3. PriceAlert_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 = "price_level_1" ; // trigger level name
input stringlevel comment = "trigger level" ; // trigger level comment
Input color active_level_color=red; //Activated level color
Input color inactive_level_color=grey; // 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
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 removelevel= true ; // Remove level settings when changing time range



Attachment download

📎 pricealert_v2.mq5 (24.46 KB)

Source: MQL5 #22586

Verification code Refresh