Page 1 of 1

Open the create order window by script ?

PostPosted: Thu Jan 11, 2018 5:06 pm
by Magoth
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

Re: Open the create order window by script ?

PostPosted: Fri Jan 12, 2018 10:50 am
by Konstantin.Toporov
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.

Re: Open the create order window by script ?

PostPosted: Fri Jan 12, 2018 5:58 pm
by Magoth
Excellent !
Thanks for the answer, I will look into this function asap.
Mag