Close StopOrder

Created at 29 Nov 2017, 14:51
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MT

mto1995

Joined 19.10.2017

Close StopOrder
29 Nov 2017, 14:51


Hi everyone,

i would like to know, how close a delete a PlaceStopOrder, after 5 min that i opened ?

thks you


@mto1995
Replies

mto1995
29 Nov 2017, 15:16

i found thks

 


@mto1995

... Deleted by UFO ...

PanagiotisCharalampous
29 Nov 2017, 15:19

Hi mto1995,

The best way to do this is to use the expiration time parameter as below

PlaceStopOrder(TradeType.Buy, Symbol, 1000, 1.2, "order", 0, 0, Server.Time.AddMinutes(1));

Best Regards,

Panagiotis


@PanagiotisCharalampous