Download MetaTrader 5

Indicators: Price Alert

To add comments, please log in or register
What is the best place to find a programmer? Freelance service!
MetaQuotes Software Corp.
Moderator
181008
MetaQuotes Software Corp. 2011.07.28 13:27 

Price Alert:

Price Alert MetaTrader indicator plays sound alerts when the price reaches certain levels that are specified by the trader.

Author: Oluwadare Paul Oguntosin

whroeder1
14457
whroeder1 2011.07.29 15:20  

Doubles rarely compare equal - Working with Doubles in MQL4 - MQL4 Articles

//++++ These are adjusted for 5 digit brokers.
int     pips2points;    // slippage  3 pips    3=points    30=points
double  pips2dbl;       // Stoploss 15 pips    0.0015      0.00150
int     Digits.pips;    // DoubleToStr(dbl/pips2dbl, Digits.pips)
int     init(){
    if (Digits == 5 || Digits == 3){    // Adjust for five (5) digit brokers.
                pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
    } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0; }
    // OrderSend(... Slippage.Pips * pips2points, Bid - StopLossPips * pips2dbl
}
===========
//if ((Bid == SoundWhenPriceIsExactly
if (MathAbs(Bid - SoundWhenPriceIsExactly) < pips2dbl ...
dicksonton
9
dicksonton 2011.10.01 09:49  

thanks, will be update result if possible!

Aris Setiawan
14
Aris Setiawan 2015.02.23 15:51  
dicksonton:

thanks, will be update result if possible!

WHen my meta trader turn off/ PC turn off. Is alert can still send a notification? Thanks?
Vladimir Karputov
Moderator
45443
Vladimir Karputov 2015.05.12 16:08  
Aris Setiawan :
WHen my meta trader turn off/ PC turn off. Is alert can still send a notification? Thanks?
Of course not! When you turn off your computer MetaTrader not working.
Fabrizio Guarnieri
63
Fabrizio Guarnieri 2015.08.27 16:22  
This tool is interesting, but there is a limitation.

The message box only indicates a generic text "Price is above/below the alert level", without mentioning what price or what chart it is referred to. 

Imagine you are monitoring different markets and you decide to load this alert on different charts, with different price levels. Then at a certain point, the message pops up, saying "Price is above level" and nothing else. Evidently, it's hard to tell what is the chart that caused the message. 

You need to check visually all charts one by one. But the funny thing is that it's easy to tell what chart did NOT cause the alert (if the line is still on the chart, then the trigger was not activated) while it's impossibile to tell which one DID cause the alert (sa long there is no line, any chart could be the one).

Who would you solve this? Is it possible to add some graphic sign on the chart, or complete the message adding market name and/or trigger level?

It works perfectly as email message, though.

To add comments, please log in or register