The report I am getting under strategy performance report has got me in a trade on a certain date. However when the same strategy is run under portfolio backtester it doesn't get me in the trade. Not sure why I am getting two different results. I have looked at the settings and nothing seems out of the normal.
Would you be able to help and point out what the problem may be? The strategy is a very simple one to buy 1 share on a certain date and sell on a certain date. I am using the following:
Code: Select all
condition1 = Date = ELDate (12, 30, 1999);
condition2 = Date = ELDate (12, 30, 2011) ;
if condition1 then Buy ( "ENTRY" ) at NEXT bar at market;
if condition2 then SELL ("EXIT")at THIS BAR AT CLOSE;
I would greatly appreciate any help.
Many thanks and regards,