Login Page - Create Account

Support Board


Date/Time: Sun, 08 Sep 2024 00:00:15 +0000



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

[2024-04-01 18:08:43]
User61168 - Posts: 381
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.