Forum: NinjaTrader
May 2nd, 2012, 07:34 AM
|
Replies: 6
Views: 5,299
Try this...haven't tested but it should work. ...
Try this...haven't tested but it should work. The problem is when using COBC = true which is the default, all code is executed at the open of the next bar. However, as you know the entry price is...
|
Forum: NinjaTrader
May 1st, 2012, 01:22 PM
|
Replies: 6
Views: 5,299
set the stoploss the same time you enter the...
set the stoploss the same time you enter the market...forget the if(BarsSinceEntry...
EnterLong("Entry1");
SetStopLoss("Entry1", CalculationMode.Price, Close[0]-stp*TickSize, true);
That...
|