Reference

Telegram commands

This section lists all commands that are available through the Telegram interface. All commands are prefixed with the forward slash character /, e.g. /status.

status

Displays a status summary with the following values:

  • Daily P/L
  • Week to Date P/L
  • Month to Date P/L
  • Year to Date P/L
  • Open Trades
  • Open Premium
  • Open Theta
  • Net Liquidation Value
  • Buying Power
  • Current SPX and VIX

positions

Displays a listing of all currently open positions.

Usage

/positions [tag]

Arguments

NameRequiredDefault ValueDescription
tagNoallTag name, defaults to all

config

Retrieves the bot configuration. This command displays a configuration summary for each bot and allows for the bot to be enabled or disabled.

Optionally, a confirmation prompt will be displayed before a bot is enabled (see also: confirmEnable).

If a bot is disabled while a position is still open, the position will be closed normally (either through profit target or stop loss). Once the bot is disabled, new positions will not be opened.

Usage

/config [tag]

Arguments

NameRequiredDefault ValueDescription
tagNoallTag name, defaults to all

day

Returns a summary of the daily trading statistics.

week

Returns a summary of weekly trading statistics.

month

Returns a summary of monthly trading statistics.

year

Returns an annual summary of trading statistics.

stats

Returns statistics for an arbitrary date range.

Usage

/stats <from> [to] [summary]

Arguments

NameRequiredDefault ValueDescription
fromYesStart date, e.g. 2022-01, 2022-01-01
toNoCurrent dateEnding date, e.g. 2022-12, 2022-12-31
summaryNofalseEither true or false to include a summary for each individual bot

export

Exports closed trades within the specified date range to a CSV file.

Usage

/export <from> [to]

Arguments

NameRequiredDefault ValueDescription
fromYesStart date, e.g. 2022-01, 2022-01-01
toNoCurrent dateEnding date, e.g. 2022-12, 2022-12-31

delta

Displays the delta for the contract with the specified parameters.

Usage

/delta <delta> [put|call] [minDTE = 0] [maxDTE = 30]

Arguments

NameRequiredDefault ValueDescription
deltaYesThe delta of the contract to search for. This should be specified as a whole number, e.g. 10. The sign does not matter.
put|callNoputDetermines whether to walk the put or call option chain.
minDTENo0Minimum days to expiration.
maxDTENo30Maximum days to expiration.

chart

Renders an inline chart that displays overall strategy performance over time.

Usage

/chart [from] [to]

Arguments

NameRequiredDefault ValueDescription
fromNoBeginning of current yearThe starting date for the chart, e.g. 2022-01.
toNoCurrent dateThe ending date for the chart, e.g. 2023-01.

daychart

Renders an inline chart that displays daily P/L for all bots.

Usage

/daychart [date]

Arguments

NameRequiredDefault ValueDescription
dateNoCurrent dayDate to use when rendering the chart, e.g. 2024-01-18.

config

Displays a summary of each bot's configuration with the option to toggle the enabled status.

Bots that are disabled will have the option displayed to enable, while enabled bots will display an option to disable.

tags

Displays available tags or displays the bots that are associated with a given tag.

Usage

/tags [name]

Arguments

NameRequiredDefault ValueDescription
nameNoNoneTag name

enable

Enable all bots with the specified tag.

Usage

/enable <tag>

Arguments

NameRequiredDefault ValueDescription
tagYesNoneTag name

disable

Disable all bots with the specified tag.

Usage

/disable <tag>

Arguments

NameRequiredDefault ValueDescription
tagYesNoneTag name

close

Displays a listing of all bots that have open positions with a link to manually close the position.

Passing a tag parameter will close all positions with the specified tag.

A confirmation will be displayed before any positions are closed.

Usage

/close [tag]

Arguments

NameRequiredDefault ValueDescription
tagNoNoneTag name

stops

Displays a listing of all bots that have open positions with stops enabled.

Selecting a position will allow you to toggle the enabled status for each stop configured on the position.

btc

Displays a listing of all bots that have open positions with buy to close (BTC) orders.

Selecting a position will allow you to cancel (or submit) a BTC order for a position.

bp

Displays available buying power and NLV.

pause / resume

Allows you to pause or resume the Trademade engine. Pausing the engine will prevent new positions from being entered, however stop loss monitors will continue to be enabled.

restart

Restarts Trademade.

Previous
Scripting