Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 22:24:23 +0000



Post From: Automatically assign TARGET CONFIGURATION

[2019-01-25 21:02:46]
ILIM KIRGIZ - Posts: 187
Dear Support,
I use different presaved twconfig files for different scenarios. My programmer is developing a position sizing study which allows reading stop loss and entry price levels on the chart before entering a trade to set quantity, and attached order targets.

Is it possible to read selected order type in trade window via a study? If yes, via which function? If we can read it from the trade window, our study will also fill the limit/trigger/stop fields in the trade window too.

So our workflow will be as follows:
selecting the twconfig file via trade window combo box
while our study is active, It will read the parent order type.
setting the stop level via our study (with a mouse click)
setting the entry level via our study (with a mouse click) per order type into the relevant field (limit/stop/trigger)
calculating the position size per risk tolerance and account balance (we developed a solution for that to obtain it from LMAX too)
setting the targets (stop all and profit takes to attached order fields)

In order to achieve this, we need to be able to read the selected parent order type in the trade window.
Thanks.