How set AlertEnabled

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

How set AlertEnabled

Postby arjfca » 11 Oct 2013

Hello

My program compile, but no alert text is displayed

To enable it, i use

Code: Select all

alertenabled;
if checkalert then print ("Alert is on") else print ("alert is off");
Always return "alert is off"

The alert text is inside of a code that is use to plot a dot over certain bar. The dot is showed but not the alert.

Martin

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: How set AlertEnabled

Postby Henry MultiСharts » 17 Oct 2013

Hello Martin,

AlertEnabled does not enable the alerts, it gets the alert option status into the code:
AlertEnabled returns True if the alerts have been turned on in Format Study > Alerts. This information can make script execution more efficient by discarding redundant calculations. This function can also be used to notify the user that he will not see the alerts until the relevant option is turned on.


Return to “MultiCharts”