any method to play a soundfile or trigger alert with code

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #189708 quote
    cactus363
    Participant
    New

    Is there any way to play a sound using coding wthen a condition is met?

    Alternatively any way to trigger an alert?

    #189717 quote
    robertogozzi
    Moderator
    Master

    Nope, sounds can only be played by PRT predefined tools (screeners, ProBacktest, ….). Users have no instruction available to play sounds.

    #189728 quote
    Nicolas
    Keymaster
    Master

    You can create alert with a returned value of your custom indicator by using the “alert tool” of the platform.

    #189739 quote
    cactus363
    Participant
    New

    Thank you for suggestions, this is what Ive been doing, setting an alert on my custom signal but I would also like to have different sounds which a programatical function alert would allow.

    This is whats possible in SierraCharts with this function:    sc.PlaySound(“soundfile”,1,”message to display”);

    #192064 quote
    cactus363
    Participant
    New

    Hi Nicolas,

    My indicator returns a value of 1 in order to trigger an alert but I cannot set the alert to stay ON so that it triggers every time the condition is 1. Also the option to only trigger on the bar close is not available, the alert window only lets me to choose “Real time”.

    Please could you help with this, are these options available?

    thnak you

    #192189 quote
    Nicolas
    Keymaster
    Master

    It is indeed possible to trigger an alert on a previous bar, choose “previous period” or “period ago” in the alert settings window.

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

any method to play a soundfile or trigger alert with code


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
cactus363 @cactus363 Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by Nicolas
3 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/09/2022
Status: Active
Attachments: No files
Logo Logo
Loading...