Proper way to code an alert text message  [SOLVED]

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

Proper way to code an alert text message

Postby arjfca » 18 Nov 2013

Hello

I'm trying to code to triggered an alarm message text to be display when a condition is met

Code: Select all

If WRB_Black then begin
alert(text("alertst"));
playsound("G:\Users\Utilisateur\Documents\Bourse\Sound\alarm.wav");
end;
When the condition is met, the Playsound function is triggered, but no text do appear

What I want is a result alarm box like the one from a TrendLine alerts function

Martin

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Proper way to code an alert text message  [SOLVED]

Postby TJ » 18 Nov 2013

Hello
I'm trying to code to triggered an alarm message text to be display when a condition is met

Code: Select all

If WRB_Black then begin
alert(text("alertst"));
playsound("G:\Users\Utilisateur\Documents\Bourse\Sound\alarm.wav");
end;
When the condition is met, the Playsound function is triggered, but no text do appear
What I want is a result alarm box like the one from a TrendLine alerts function
Martin
Format Study > Alert > Enable Alerts

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Proper way to code an alert text message

Postby arjfca » 18 Nov 2013

Thank you TJ
Another sandwich for you. Hope your stomach could support all of them..

Martin

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Proper way to code an alert text message

Postby TJ » 18 Nov 2013

Thank you TJ
Another sandwich for you. Hope your stomach could support all of them..
Martin
yw


Return to “MultiCharts”