Not Getting Alerts
Author: sdbens20
Creation Date: 7/6/2011 6:09 PM
profile picture

sdbens20

#1
The following code is not producing Alerts after daily prices are updated after the market closes:

CODE:
Please log in to see this code.


It is a strategy that I created using rules and then had Wealth Lab convert it to code.

Additional info:

Running WL 6.2.34.0, 32 bit, Windows Vista Pro
Scale is daily
Data range is 1 Year
Position Size is $1,000,000 (RP)
Data Set is 76 ETF's
PortfoliooOptimized using the genetic method
Strategy is in the Strategy Monitor
"Show Alerts for All Strategies" is activated.

Thanks,

Sherm
profile picture

Sammy_G

#2
All trades (Buy/Sell/Short/Cover) should be for bar+1, not bar.
profile picture

Cone

#3
Sammy_G is right, but generally "AtClose" strategies don't Alert unless you implement the extra step to change the AtClose to AtMarket when processing the last bar. See the WealthScript Programming Guide > Programming Trading Strategies > Alerts > How to: Alert for AtClose Signals
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).