Support Board
Date/Time: Tue, 04 Feb 2025 18:00:33 +0000
Post From: Failure to Do Entry in ACSIL Trading Strategy
[2018-11-19 18:18:12] |
User41727 - Posts: 124 |
There is a problem with sc.SellEntry/BuyEntry not triggering an actual order if sc.FlattenAndCancelAllOrders has been called to flatten an existing position first during the same run of a strategy. So far I was only able to verify this behaviour during a simulation using the replay functionality. I do not know whether it happens with live orders too. The entry works fine if I start the simulation just before the entry signal while the strategy is flat, so it is not the case that the entry command is never called. I can also verify in my logs that the code gets to that point when sc.FlattenAndCancelAllOrders has been called during that run to flatten an existing position. So, the entry command is definitely being called, but no orders are created. There is also no entry in the "Trade Service Log" that would give any indication to why that is. |