Alert condition on the open price

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #104362 quote
    bewoke2
    Participant
    Average

    Hello community,

    Is it possible to set an alert on the open price (not the current price).
    For example, I want my alert to be set when the open of the previous period is above the EMA

    if open[1] > ExponentialAverage[13](close) then
    // Alert set 
    endif

    The alert will be set in windows mode in PRT, but the code is just to show you my idea.
    Besides, is it possible to make two conditiosn for the same alert, because I couldn’t do it until now. Something like this:

    if open[1] > ExponentialAverage[13](close) and close[0] > close[1] then
    // Alert set 
    endif

    Thanks guys !

    #105360 quote
    Nicolas
    Keymaster
    Master

    In this case you should create a synthetic variable to make the signal:

    signal = 0 //reset the signal
    
    if open[1] > ExponentialAverage[13](close) and close[0] > close[1] then
     signal = 1 //new signal!
    endif

    and create an alert with the alert tool of the platform to check if the “signal” variable has just moved from 0 to 1.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Alert condition on the open price


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
bewoke2 @bewoke2 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
6 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/07/2019
Status: Active
Attachments: No files
Logo Logo
Loading...