Support Board
Date/Time: Wed, 27 Nov 2024 08:39:33 +0000
[Programming Help] - Best way to reduce position size - ACSIL Unmanaged Automated Trading
View Count: 279
[2023-08-19 13:54:30] |
User345137 - Posts: 1 |
Hey Support - I've tried a few different things trying to get this to work, and maybe I'm going around in circles. I have a Long position (greater than 1) with an OCO for Stop and Target. I would like to be able to reduce this position down in size at a certain point in time or condition, and keep the OCO. The study is set for Unmanaged Automated Trading. If I use a BuyExit I get the reduction but lose the OCO. If I use a SellEntry or SellOrder nothing happens, and I get an error in the Trade Services log... "SellEntry | Bar start date-time: 2023-07-18 14:55:00.000 | SellEntry signal is ignored because Long position quantity or working Buy order exists. Position with working orders quantity: 0 | 2023-08-19 08:28:05.611" I am sending the reducing order as OrderType Market with the quantity set for the number of contracts I would like to reduce it by. Please let me know if this should be working or doable... if not I will look for another method to reduce position. Thanks for your time. |
[2023-08-28 21:15:38] |
ForgivingComputers.com - Posts: 960 |
This is called Scaling Out, and it is set on the Trade Window: M>>Orders>>Support Scale Out Attached Orders: Scaling Out |
To post a message in this thread, you need to log in with your Sierra Chart account: