Why won't this simple strategy generate buy alerts
Author: drawal
Creation Date: 2/13/2009 10:19 AM
profile picture

drawal

#1
All it does is buy at the market and then sell at 30% profit or 10% stop loss. When I ran it in strategy monitor on streaming data, I expected that it would generate a buy alert to begin with. Instead, it issued 2 sell alerts.

What am I doing wrong???

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

Cone

#2
Strategies always run in a theoretical sense. You got sell alerts because the strategy was hold historical position (theoretically) for those symbols.

If you just started trading a strategy and want to ignore its history, you can synch it to a specific date like this:
CODE:
Please log in to see this code.
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).