Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 04:30:42 +0000



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

[2024-04-01 18:08:43]
User61168 - Posts: 403
Glad you asked John. I am quite aware of all the available trading studies. I use "Trading system based on Alert Condition" for all my Buy/Sell/Flatten entries and exits. There is no way for me to programmatically read and/or change the amount of set quantity on the Trade window (Trade window is attached to chart). Every buy/sell entry/exit study is dependent on what is set in the trade window.
GetPositionQty() is not needed (my bad)... only SetOrderQty() is needed to programatically alter the position size of the order you want to scale in or out. Hope this clarifies further.