Need examples on how to: OPEN, CLOSE, MODIFY

Created at 15 Aug 2024, 23:00
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!
RI

rick2010

Joined 08.08.2024

Need examples on how to: OPEN, CLOSE, MODIFY
15 Aug 2024, 23:00


Hi, for some reason I'm having a hard time finding some working examples of how to do the following:

Market orders

  • OPEN a trade with SL and TP set (ie. default 100 pip range)
  • CLOSE a trade
  • MODIFY a trade's SL and TP

Also is there a way to make sure the script doesn't open the same trade twice… for example check to see if an order ticket is already in place.

TIA!

 


@rick2010
Replies