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 !
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.