I like to send a multiple orders at the same time but I can send only one (the first one), the next ordes are "null value".
//protected override void OnStateChange()
//{
// if (this.State == State.SetDefault)
// this.DefaultQuantity = 1;
// this.EntriesPerDirection = 1;
// this.EntryHandling = EntryHandling.UniqueEntries;
// And more ......
//protected override void OnOrderFromMyLibrary(sbyte s)
//{
// double price = this.Close[0];
//
// if (-1 == s)
// this.Sell_Out = this.EnterLongStopMarket(quantity: this.DefaultQuantity, stopPrice: this.price + (this.TickSize * 15)); <---- It's OK
//
// this.Sell_Lmt = this.EnterShortLimit(quantity: this.DefaultQuantity, limitPrice: this.price + (this.TickSize * 5)); <---- It returns a null value
//
// this.Buy_Lmt = this.EnterLongLimit(quantity: this.DefaultQuantity, limitPrice: this.price - (this.TickSize * 25)); <---- It returns a null value
//
// else
//
// this.Sell_Lmt = this.EnterShortLimit(quantity: this.DefaultQuantity, limitPrice: this.price + (this.TickSize * 25)); <--- It's OK
//
// this.Buy_Lmt = this.EnterLongLimit(quantity: this.DefaultQuantity, limitPrice: this.price - (this.TickSize * 5)); <---- It returns a null value
//
// this.Buy_Out = this.EnterShortStopMarket(quantity: this.DefaultQuantity, stopPrice: this.price - (this.TickSize * 15)); <---- It returns a null value
//
Comment