cTrader CLI use cases¶
These step-by-step guides show how to complete a real trading task with cTrader CLI. Each one walks through a single scenario in numbered steps and finishes with a reusable shell script you can adapt, save and rerun.
-
Pull account status, open positions, current prices and overnight candles into one daily routine.
-
Open a market order with stop loss and take profit, verify the position and adjust the protection.
-
Open at full size, take partial profits at each target, trail the stop behind the price and close the remainder at the final target.
-
Check margin, flag positions without stops, add missing protection and close threshold breaches.
-
Read the cBot's parameters, start it on a VPS, verify it is running and stop it cleanly.
-
Pull deals, completed order history and current exposure into a dated review folder.
Warning
cTrader CLI is a tool for trading and automation. It does not provide financial, investment, legal or tax advice. Commands that place or change orders can trigger real trades and result in losses. Verify every command before you run it, test on a demo account first and protect your credentials.