How to create an alert

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #247575 quote
    BorisB
    Participant
    New

    Dear Support Team,

    I understand that your platform can deliver notifications both by SMS and by e-mail. I have developed a custom indicator that draws specific annotations on the chart, and I would like to trigger an alert whenever that markup changes.

    In total I need four distinct messages:

    msgBuyLine = [instrument name] + ": BUY reversal area WITH diagonal line"
    msgBuySimple = [instrument name] + ": BUY reversal area WITHOUT line"
    msgSellLine = [instrument name] + ": SELL reversal area WITH diagonal line"
    msgSellSimple= [instrument name] + ": SELL reversal area WITHOUT line"

    Each reversal area appears only when the indicator’s internal conditions are met.
    Could you advise how to send the corresponding SMS/e-mail alert as soon as one of these conditions is satisfied?

    I would be grateful for any guidance and am happy to answer any follow-up questions.

    Thank you for your help.

    Kind regards,
    Boris

    #247602 quote
    robertogozzi
    Moderator
    Master
    Manual Alerts, added on your chart by clicking  the BELL icon on the toolbar, can only be set on data RETURNed by an indicator. Data plotted on the chart using graphical instructions (DrawSegment, DrawText, etc…)  is not accessible. Example of an indicator returning a signal on a MA crossover, you can set an alert on SIGNAL:
    Sma    = average[20,0](close)
    Signal = close CROSSES OVER Sma
    RETURN Signal AS "CrossOver"
    Iván González thanked this post
    #247603 quote
    Iván González
    Moderator
    Master
    Hi. You could create a variable like setup and create 4 alerts with 4 messages depending on the setup value. The main limitation is that the platform must remain open in order for alerts on your custom indicators to function. This is because alerts based on user-programmed indicators only trigger when the ProRealTime platform is actively running. If you want to set alerts that work even when the platform is closed (via email or SMS), the alert conditions must reference predefined, built-in indicators—not custom-coded ones.
    ema10=average[10,1](close)
    ema50=average[50,1](close)
    ema200=average[200,1](close)
    
    if ema10 crosses over ema50 then
    setup=1
    elsif ema10 crosses under ema50 then
    setup=-1
    elsif ema50 crosses over ema200 then
    setup=2
    elsif ema50 crosses under ema200 then
    setup=-2
    else
    setup=0
    endif
    
    return setup
    robertogozzi thanked this post
    #247614 quote
    BorisB
    Participant
    New

    hank you very much for your answers. One more question: can I embed a “send alert” command directly in the indicator itself—so that when a certain condition is met, an email is sent—or does ProRealTime simply not have such commands? If possible, could you also explain the difference between an indicator and a strategy? Perhaps indicators cannot send alerts, while strategies can.

    Kind regards.

    #247617 quote
    Iván González
    Moderator
    Master
    Hi.That’s not possible.
    #247618 quote
    BorisB
    Participant
    New
    Thank oyu , have a good week.
    #247740 quote
    BorisB
    Participant
    New
    Am I correct in understanding that email alerts are sent only for the standard indicators that come with the platform and do not work for custom indicators created by users?
    #247790 quote
    Iván González
    Moderator
    Master
    Yes. that’s correct
    robertogozzi thanked this post
    #247793 quote
    BorisB
    Participant
    New
    Great thanks ? have a good week!
    #248057 quote
    RTR
    Participant
    New
    hank you very much for your answers. One more question: can I embed a “send alert” command directly in the indicator itself—so that when a certain condition is met, an email is sent—or does ProRealTime simply not have such commands? If possible, could you also explain the difference between an indicator and a strategy? Perhaps indicators cannot send alerts, while strategies can. Kind regards.
    I use this question to add another question. Is there an API for prorealtime (or using a third party program) that could achieve this possibility (sending an email with custom indicators)?  Would it be very difficult to implement it? Just as a suggestion. Because if it sends an email to your phone you could also make your phone give you a signal so you get any alerts from customs indicator directly to your phone wherever you are. I understand that you need to have your computer working but at least you don´t have to be in front of your screen all the day.  It would be a great improvement.
    Another suggestion that I propose is allowing Alerts messages to be in different colours (the pop-up with 10 different colours: red for closing a position because certain indicators triggered a “sell” signal, green to “buy”, blue to stop trading because certain volume indicator says it is below an average, etc). It would be much easier to take a decision with just the colours of the alerts. Because if you have 20-30 alerts whenever there is a pop-up you need to read each message and then take a decision but with different pop-up colours you get it easier and faster. Is it possible to give this as a suggestion?
    Thanks.
    #248265 quote
    JC_Bywan
    Moderator
    Master
    Hello RTR, ProRealTime has set up a suggestions box where you can give feedback about likes, dislikes, and ideas for improvement, you can find it at the bottom of the following PRT page, in the 4th box named “give us feedback”: English version: https://www0.prorealtime.com/en/contact Spanish version: https://www0.prorealtime.com/es/contacto
    Iván González thanked this post
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.

How to create an alert


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
BorisB @borisb Participant
Summary

This topic contains 10 replies,
has 5 voices, and was last updated by JC_Bywan
7 months, 3 weeks ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/24/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...