Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 04:37:52 +0000



Post From: LIMIT ORDER BEHAVIOUR - STOP QUANTITY NOT UPDATING AS LIMIT TARGETS GET HIT

[2024-04-01 13:50:29]
User312901 - Posts: 13
Hi!

I've been now trying to figure out this by going through settings and support board, without coming across with an solution.
So let's try with a new support request.

Ultimately I'm trying to set up an automated Spreadsheet strategy, using "Spreadsheet System for Trading".
A strategy where entry will be sent as market order, through "Entry"-columns. Open position will then be followed by placement of Stop-limit order for full quantity of the position and three limit orders for targets, each with one 3rd of the position size. Limit orders for targets and Stop-limit order will be executed through "Exit"-columns.

How do I get the quantity of the Stop-limit order to be updated as targets get hit one by one?
IE if the original position size is 9 and each target (limit orders) are size of 3, the stop should be reduced to 6 when first target hit and so on.
And surely all the remaining limit orders should be cancelled when ever the stop hits.

I don't want to pre-determine these orders through trade window settings as I need to be able to control the price levels for each order (Limit-stop and 3 separate limit targets) through Spreadsheet calculations. So I would be using order types "SL" and "L" at Spreadsheet, which I believe are equal to manually executing Buy/Sell Stop-limit and Buy/Sell Limit, respectively.

So how can I get these OCO or attached orders created using SL and L -orders without setting it up at the trade window Targets-tab?

Alternative approach would be if there is a way to control trade window settings through spreadsheet (stop and target distances, not just picking up pre-determined presets).

Much appreciated if some one can help me solve this, to be able continue with my project.