I built this rule-based strategy and converted it to code. I can back-test it, and I get plenty of trades, but when I try to run it in Strategy Monitor I get no results. When I set the Strategy Activation Settings for a 5-minute intra-day scan, it will update data, but return no results. I don't know if it is scanning or not. Those settings are: Paper Account 1, Data Range: 1 bar, Position Size $25,000, Scale: 5 minutes, no boxes checked.
If I try to run it as daily bars, nothing happens at all. I try to select "run now," and I see the "last scan" change to the current time for about one half-second, but it changes back to 4:30 and doesn't even start updating data. Those settings are: Paper Account 1, Data Range: 1 Day, Position Size: $25,000, Scale: Daily, no boxed checked.
If it matters, in the Strategy Activation Settings, in the Data Range drop-down box, the most recent date is 11-10-2009, and it is grayed out. Earlier dates can be selected, but nothing later than 11-10-2009 (today is 11-13). I have checked my computer clock, and it is set to internet time, and is correct.
Interestingly, if I set the scale to daily, but the data range to 1 year, I do get a history of 717 trades, and 77 alerts- one for each currently open positions, dated 11-12, with orders to place protective stop losses for each open position as per my strategy, so the strategy seems to work when the data range is set to 1 year, but nothing less.
Finally, I decided to test the "Four Down Days" strategy on 5-minute bars with the same intra-day settings as above, and I have received 28 trades so far, so the Strategy Monitor appears to be working.
What am I doing wrong? Thanks for your help.
-Rick
CODE:
Please log in to see this code.