No alerts in Strategy Monitor
Author: BarisKaya
Creation Date: 3/23/2014 5:17 PM
profile picture

BarisKaya

#1
hi, I've made up a basic rule based strategy and its naturally working fine on strategy window, however it does not generate alerts on Strategy monitor...Could you please take a look at this code and tell me whats wrong? thanks in advance

CODE:
Please log in to see this code.
profile picture

Cone

#2
QUOTE:
its naturally working fine on strategy window
It's certainly not going to generate Alerts in the S. Window either though.

It's because signals will not generate an Alert unless you execute them on the next bar, i.e., bar + 1. When you program signals for "AtClose" it generally means you want to sell it at the close of the current bar even though you cannot really do this in real trading. In other words, since the close has already occurred, you cannot execute a signal at the close.

For more discussion and solutions, see the WealthScript Programming Guide (Help menu) > Programming Trading Strategies > Alerts > How to: Alert for AtClose Signals

(And of course, if this is an intraday Strategy, then the solution is to simply change your signals to AtMarket. For intraday intervals, the difference between the Close of one bar and the Open of the next is only 1 trade and it would be silly to think you can capture the Closing price on an intraday basis.)
profile picture

Eugene

#3
Baris,

It's been on the FAQ for years: Strategies and WealthScript > Alerts are not triggered. Cone detailed it for you but you still might want to check it out for some other cases.
profile picture

BarisKaya

#4
You'r right, thank you
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).