Alert Settings with Programming
- This topic has 3 replies, 4 voices, and was last updated 1 day ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
Similar topics:
Forums › ProRealTime English forum › ProOrder support › Alert Settings with Programming
Hi All. Is it possible to create an alert via programming? I recently programmed “arrows” in order to show me possible trades. However, I can’t use it for auto trading, as there are subtleties, especially regarding context, which I need to do manually. Also, some of the variables I used in my program are not available in the “standard” options offered on the Alert Settings.
So, is there either an option to program an alert function, or alternatively, to add some audio to my arrows (via programming)? It would be great if I don’t need to be glued to the screen and there would be some audible cue when a possible trade is set up.
Thanks and hoping the above makes sense.
I use the audible sounder available as part of the standard PRT Alert funtion.
I set around 100 Alerts (just guesstimated!) per day during my manual trading … couldn’t manage without it!
Is it possible to create an alert via programming?
2. If you mean when using an Indicator and setting the Alert function on an Indicator showing on your Chart, the answert is Yes.
You could run an Indicator (maybe giving output = 1) coincident with an Auto-Strategy and so get the Alert to sound when output = 1 etc.
You can only code indicators to return signals, then you will have to add manually an alert based on those signals.
But you can use a strategy to get signals live. Simply backtest your strategy and leave the backtest open and running so that any trade entered and exited will make a window alert pop up. Uset it for manual trades.
The alert system is embedded in the platforms user interface and can only be set manually. Currently, it’s not possible to set up alerts directly from the code, however, for indicators, you can set up cue’s for the platform alerts in the code.
To get the code to trigger an alert, you have to set up a variable for the manual alert condition. This must appear as a variable which appear in the RETURN statement of an indicator. The variable will then appear in the variable list of the alert system box to set the alert condition against.
As far as can tell, an alert can only be setup for an indicator code file variable and not by backtest file . Alternatively, you could have a instance of the indicator in the chart window with the same settings to set up alerts to.
The image shows a simple example, the code sets the cues, and is added to the chart panel. Using the ‘bell’ alert icon, clicking on the panel, the alert box appears and using the setting the alert is set up. One is set up to when variable = 1. Another would be set when =-1, with different message, audio etc.
Note, after setting alert, if you delete indicator from panel, alert continues working. Also if an indicator, calls another indicator with alert cues, if these variables again appear in the main files return statement , they can be used to set alerts.
Regards
PS. ‘ALERT’ appears to be a reserved keyword according to the code editor, not found any other reference, any ideas!
Find exclusive trading pro-tools on