Open the create order window by script ?

All posts which do not fit into any other sections of the forum.

Moderator: admin

Open the create order window by script ?

Postby Magoth » Thu Jan 11, 2018 5:06 pm

Hello,

I would like to know if I'm able to open the Create Order windows with some prefilled fields like : Buy or Sell, Amount and Stop price. I've looked into the SDK (I've coded bunch of strats/indics already for the TS) but didn't find anything that would let me doing that.

To make it simple, I don't want my strategy to open the trade for me but I want it to ask me if I "really" want to open this trade.

Any help would be appreciated,
Mag
Magoth
 
Posts: 6
Joined: Fri Sep 01, 2017 6:13 pm

Re: Open the create order window by script ?

Postby Konstantin.Toporov » Fri Jan 12, 2018 10:50 am

You cannot open the dialog of FXTS.
But you can request a confirmation from a strategy via
prompt function:
http://www.fxcodebase.com/bin/products/ ... rompt.html

You can provide (from the strategy) a message with all the required parameters - Order type, price, stop and so on.
Konstantin.Toporov
 
Posts: 69
Joined: Mon Aug 31, 2015 10:16 am

Re: Open the create order window by script ?

Postby Magoth » Fri Jan 12, 2018 5:58 pm

Excellent !
Thanks for the answer, I will look into this function asap.
Mag
Magoth
 
Posts: 6
Joined: Fri Sep 01, 2017 6:13 pm


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 7 guests