Support Board
Date/Time: Thu, 03 Jul 2025 18:54:35 +0000
Post From: limit orders being filled incorrectly
[2020-05-15 02:24:22] |
User701453 - Posts: 176 |
Limit entry orders are being filled above or below the limit entry price which is the previous close bar.The error doesn't happen all the time and happens on long and short trades. It happens in live sim and replay chart mode Code snippet below of how i fill an order entry price variable ShortOrderEntryPrice = sc.Close[sc.Index-1] + Limit_Offset.GetInt()* sc.TickSize;
NewOrder.OrderType = SCT_ORDERTYPE_LIMIT; NewOrder.Price1 = ShortOrderEntryPrice; EntryOrderPrice = NewOrder.Price1; Screen shot attached of trade activity log orderactionsource column. Also attached is screen shot of incorrect order entry fill on chart. Any suggestions on how to correct this? |
![]() ![]() |