Skip to content

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.

  • Morning briefing


    Pull account status, open positions, current prices and overnight candles into one daily routine.

  • Place a protected order


    Open a market order with stop loss and take profit, verify the position and adjust the protection.

  • Scale out of a position


    Open at full size, take partial profits at each target, trail the stop behind the price and close the remainder at the final target.

  • End-of-day risk check


    Check margin, flag positions without stops, add missing protection and close threshold breaches.

  • Run a cBot around the clock


    Read the cBot's parameters, start it on a VPS, verify it is running and stop it cleanly.

  • Review last month of trading


    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.