buy stops & sell stops being deleted in Tester

 

Hello,

When I run the attached EA in Strategy Tester I get the following in the Results tab. The entry in bold is the one I don't understand. This EA hedges a trade between a buystop and sellstop while doubling lotsize as price reverses and sets takeprofit and stoploss at equal opposing levels. As you can see, price is ranging for a long time between the hedge, increasing lot size to huge amount until it just creates a buy stop and deletes it soon after. It is the lack of this buy stop that is giving me a total negative value on my hedge but I still dont know why the buystop is being deleted, Please help.

Time # Lots Price s/l t/p Profit Balance

145 2013.06.07 19:33 buy 44 0.10 151.630 0.000 0.000 0.00 10755.04

146 2013.06.07 19:33 modify 44 0.10 151.630 151.229 151.929 0.00 10755.04

147 2013.06.07 19:33 sell stop 45 0.30 151.529 0.000 0.000 0.00 10755.04

148 2013.06.07 19:33 modify 45 0.30 151.529 151.929 151.229 0.00 10755.04

149 2013.06.07 19:34 sell 45 0.30 151.529 151.929 151.229 0.00 10755.04

150 2013.06.07 19:34 buy stop 46 0.60 151.629 0.000 0.000 0.00 10755.04

151 2013.06.07 19:34 modify 46 0.60 151.629 151.229 151.929 0.00 10755.04

152 2013.06.07 20:24 buy 46 0.60 151.629 151.229 151.929 0.00 10755.04

153 2013.06.07 20:24 sell stop 47 1.20 151.529 0.000 0.000 0.00 10755.04

154 2013.06.07 20:24 modify 47 1.20 151.529 151.929 151.229 0.00 10755.04

155 2013.06.07 21:00 sell 47 1.20 151.529 151.929 151.229 0.00 10755.04

156 2013.06.07 21:00 buy stop 48 2.40 151.629 0.000 0.000 0.00 10755.04

157 2013.06.07 21:00 modify 48 2.40 151.629 151.229 151.929 0.00 10755.04

158 2013.06.07 21:09 buy 48 2.40 151.629 151.229 151.929 0.00 10755.04

159 2013.06.07 21:09 sell stop 49 4.80 151.529 0.000 0.000 0.00 10755.04

160 2013.06.07 21:09 modify 49 4.80 151.529 151.929 151.229 0.00 10755.04

161 2013.06.07 21:22 sell 49 4.80 151.529 151.929 151.229 0.00 10755.04

162 2013.06.07 21:22 buy stop 50 9.60 151.629 0.000 0.000 0.00 10755.04

163 2013.06.07 21:22 modify 50 9.60 151.629 151.229 151.929 0.00 10755.04

164 2013.06.07 21:30 buy 50 9.60 151.629 151.229 151.929 0.00 10755.04

165 2013.06.07 21:30 sell stop 51 19.2 151.529 0.000 0.000 0.00 10755.04

166 2013.06.07 21:30 modify 51 19.2 151.529 151.929 151.229 0.00 10755.04

167 2013.06.07 21:51 sell 51 19.2 151.529 151.929 151.229 0.00 10755.04

168 2013.06.07 21:51 buy stop 52 38.4 151.629 0.000 0.000 0.00 10755.04

169 2013.06.07 21:51 modify 52 38.4 151.629 151.229 151.929 0.00 10755.04

170 2013.06.07 22:45 delete 52 38.4 151.629 151.229 151.929 0.00 10755.04

171 2013.06.07 22:45 sell stop 53 76.8 151.529 0.000 0.000 0.00 10755.04

172 2013.06.07 22:45 modify 53 76.8 151.529 151.929 151.229 0.00 10755.04

173 2013.06.10 00:07 t/p 44 0.10 151.929 151.229 151.929 29.25 10784.29

174 2013.06.10 00:07 s/l 45 0.30 151.929 151.929 151.229 -123.03 10661.26

175 2013.06.10 00:07 t/p 46 0.60 151.929 151.229 151.929 176.11 10837.37

176 2013.06.10 00:07 s/l 47 1.20 151.929 151.929 151.229 -492.15 10345.22

177 2013.06.10 00:07 t/p 48 2.40 151.929 151.229 151.929 704.43 11049.65

178 2013.06.10 00:07 s/l 49 4.80 151.929 151.929 151.229 -1968.58 9081.07

179 2013.06.10 00:07 t/p 50 9.60 151.929 151.229 151.929 2817.73 11898.80

180 2013.06.10 00:07 s/l 51 19.2 151.929 151.929 151.229 -7874.32 4024.48

Files:
lstest.mq4  9 kb
 
Not enough free margin on the account to convert the pending order to a market order and so the order was deleted.
 

thanks, so that strategy wont work without a huge account balance. Who would have thought the market would range so much.

Is there a limit on the trades tested by the Strategy Tester? My results tab only shows 3 months of data and I get the same profit gain whether I test for 6 months or 1 year.