New user to WL5.3. Am running a strategy on a dataset created with a 5 minute time period. There are only 12 stocks in the dataset, so it is not trying to get a lot of data. The strategy is 'activated' in the strategy monitor, and I've tried every combination of 'auto-stage' enabled, disabled, streaming on/off, strategy highlighted, not highlighted, etc.
The problem is, that on the 5 minute updates, I do not get the alarms that I get if I query each stock's 'chart' in the strategy window, which does work correctly. I will 'occasionally' get an alarm (on a single stock), but it is random and inconsistent. Any ideas or suggestions as to what I am doing wrong ?
Size:
Color:
Did you click on the Strategy to see its Alerts?
Alternatively, did you click the button in the middle toolbar Show Alerts for all Strategies?
Size:
Color:
Yes, I tried both and neither will display the alerts.
Size:
Color:
What position sizing do you have? What about the code?
Size:
Color:
JSB, the logical explanation is that there are no Alerts for some reason. This is why we need to know the details, starting with the script to tell you the reason.
Size:
Color:
Eugene/Cone, Here is the complete script.
The position sizing is 100 shares with 250 bars data range.
The script appears to be working OK, after each 5 minute update, if I look at any stock in the strategy window, it correctly alarms and shows the correct buy/sell commands. The problem is that these same buy/sell alerts do not pop up in the strategy monitor window, which I assumed would/should happen. So, basically, the strategy monitor tells me nothing, (or gives me an occasion correct response), and I have to query each stock in the Dataset every 5 minutes for it's status.
I expected the strategy monitor to give me all the buy/sell alerts for that time period update, which would allow me to just look at those candidates, without stepping through the entire list in the Dataset.
Thanks for any other assistance you can provide.
CODE:
Please log in to see this code.
Size:
Color:
Always click the CODE button before you post code.
It's just what we suspected, the script is not only not programmed to create Alerts, it's peeking terribly! See
Bars, Loops, and Bar + 1 (written for v4, but applies equally to v5).
Question: How were you able to mess up the block formatting so badly? Maybe it was just a function of pasting it here?
Tip: While I can't understand where your closing blocks like these...
CODE:
Please log in to see this code.
Size:
Color: