Support Board
Date/Time: Tue, 16 Sep 2025 14:17:45 +0000
Post From: Orders no processing correctly (simulation)
[2020-03-12 16:46:16] |
User255315 - Posts: 133 |
Hi SC, I have been testing out a custom study on CL specifically, and there seems to be some problem in the order processing. The issue is as follows: 1. The trade seems to be executed with the sc.BuyEntry/SellEntry actions since they return 1 and alert I have programmed for successful execution shows up. The open attached orders,fills and positions do not show up on the chart, and the trade activity log shows the orders are open. 2. This is not reflected in the trade window for the chart however, and the trade service log shows no error for the first trade execution. For the consequent signals generated, the Trade service log shows that the entry cannot be processed because there exists open position. this continues for all the remaining signals generated, regardless if the stop price (that shows open order in Trade activity log) is traded or not. This makes all signals unprocessable. Error: Auto-trade: Replay 960X: CLJ19[M] 0.10 Range #4 | Prints | SellEntry | Bar start date-time: 2019-02-14 15:34:00.002 | SellEntry signal is ignored because maximum Short Position quantity allowed has been reached or would be exceeded with new order. Max. Position allowed: 5. Resulting Position without working orders: -5. Resulting Position with all working orders except exits: -10. Resulting Position with Market working orders: -5 | 2020-03-12 16:30:53.790 Do you have any idea why this might be happening, or what trade variables I might have set wrong. ( I cross checked with the variable config i use in my other custom studies and still seems to give the problem) |