mike8943
07-04-2008, 05:43 AM
i have EnterLongLimit order in my strategy which executes outside price range.
the orders are executed at 1.5723 however the price don't reach it.
this is the code from barupdate method:
double priceRange=(10000*(Bollinger(1, 5).Upper[0]-Bollinger(1, 5).Lower[0]));
EnterLongLimit(Swing(5).SwingHigh[0], n+"");
SetProfitTarget("", CalculationMode.Ticks, priceRange);
SetStopLoss("", CalculationMode.Ticks, 3*priceRange, false);
http://img370.imageshack.us/img370/3621/eurusd7420081minkp3.th.jpg (http://img370.imageshack.us/my.php?image=eurusd7420081minkp3.jpg)
the orders are executed at 1.5723 however the price don't reach it.
this is the code from barupdate method:
double priceRange=(10000*(Bollinger(1, 5).Upper[0]-Bollinger(1, 5).Lower[0]));
EnterLongLimit(Swing(5).SwingHigh[0], n+"");
SetProfitTarget("", CalculationMode.Ticks, priceRange);
SetStopLoss("", CalculationMode.Ticks, 3*priceRange, false);
http://img370.imageshack.us/img370/3621/eurusd7420081minkp3.th.jpg (http://img370.imageshack.us/my.php?image=eurusd7420081minkp3.jpg)