MAs Cross Reversal

Created at 12 Feb 2022, 03:44
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!
FO

forexmozking

Joined 04.02.2022

MAs Cross Reversal
12 Feb 2022, 03:44


Hello , can anybody give me a piece of code I can put into my cbot to place different lotsize for selling and buying orders. Im trading reversals and Lets say im in a bullish trend and i want to add 5 lots for buying orders and 2 lots for selling orders. Can i please get some help on this. Regards


@forexmozking
Replies

amusleh
14 Feb 2022, 08:51

Hi,

You can use Robot ExecuteMarketOrder method to open a position: Method ExecuteMarketOrder | API reference | cTrader Community

You can find full sample cBot examples here: cAlgo API Reference - Position Interface (ctrader.com)


@amusleh