Need examples on how to: OPEN, CLOSE, MODIFY
Created at 15 Aug 2024, 23:00
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!
Replies
rick2010
17 Aug 2024, 21:04
( Updated at: 19 Aug 2024, 05:19 )
RE: Need examples on how to: OPEN, CLOSE, MODIFY
firemyst said:
Hi Rick:
Simple Google search gives you more than enough results with examples returned:
- https://help.ctrader.com/ctrader-algo/articles/for-developers/cbot-trading-operations/
- https://clickalgo.com/ctrader-market-orders
Thanks!
@rick2010
firemyst
16 Aug 2024, 01:00 ( Updated at: 16 Aug 2024, 04:44 )
Hi Rick:
Simple Google search gives you more than enough results with examples returned:
https://www.google.com/search?q=calgo+market+order+example&sca_esv=d30728c3aa4495a6&sca_upv=1&ei=T6O-Zpe9C9CiseMPkL_NuAs&ved=0ahUKEwjXoJy7pviHAxVQUWwGHZBfE7cQ4dUDCA8&uact=5&oq=calgo+market+order+example&gs_lp=Egxnd3Mtd2l6LXNlcnAiGmNhbGdvIG1hcmtldCBvcmRlciBleGFtcGxlMgoQABiwAxjWBBhHMgoQABiwAxjWBBhHMgoQABiwAxjWBBhHMgoQABiwAxjWBBhHMgoQABiwAxjWBBhHMgoQABiwAxjWBBhHMgoQABiwAxjWBBhHMgoQABiwAxjWBBhHSPwLUMYGWOsKcAF4AZABAJgB-wGgAegKqgEDMi02uAEDyAEA-AEBmAIBoAIEmAMAiAYBkAYIkgcBMaAHohk&sclient=gws-wiz-serp
@firemyst