Login Page - Create Account

Support Board


Date/Time: Tue, 04 Feb 2025 17:59:17 +0000



Post From: Failure to Do Entry in ACSIL Trading Strategy

[2018-11-19 22:20:21]
User41727 - Posts: 124
What is the error you are getting from those functions?

There is no error. sc.SellEntry returns the expected quantity of the new entry order, but no entry order is actually created.

No new entry in the trade service log appears that would explain why there is no order.

You are going to definitively get an answer from that documentation and following the instructions. There is no other possibility.

I did everything described in the mentioned section, and I am not.

The behavior must be correct based on the settings of the automated trading variables.

The variables are set correctly as far as I can tell from what is documented. The entry does work as long as there is no prior position that had to be flattened by using FlattenAndCancelAllOrders. Mind you, by the time SellEntry is called, the strategy is always flat. The only difference is whether or not FlattenAndCancelAllOrders had to be called. Hence, there is an undocumented side effect of calling that function that may or may not be intentional. I suggest you attempt to figure that out.

EDIT: It actually seems like the entry orders are being created, but then get cancelled immediately. They show up under "Orders And Positions" with a status of "canceled" and LastOrderActionSource of "Simulated order canceled".
Date Time Of Last Edit: 2018-11-19 22:30:11