LuxBot is a practical Discord bot allowing users to display charts, get news, and even perform backtests by using simple slash commands. Commands can be accessed by typing
/ on a supported channel. Commands have the following form:
/command_name parameter1 parameter2 ...
Commands can have one or multiple parameters that determines the command final output, parameters are given a value by the user. Some parameters are optionals and generally posses a predefined value, this is specified when typing the command.
On this page optional parameters are denoted using the
* character before the parameter name.
/command_name not_optional *optional
/help command allows getting information regarding specific commands in the bot, e.g:
Backtesting commands allows backtesting various built-in strategies using a specific symbol and timeframe. The backtest is performed using the most recent 1000 bars and assumes no frictional costs.
The returned results include various metrics such: number of trades executed, final equity, equity peak, maximum drawdown, win rate, worst trade, and profit factor.
A new long position automatically closes a previous short position, while a new short position automatically closes a previous long position.
Supported timeframes includes: '1min', '5min', '15min', '30min', '45min', '1h', '2h', '4h', '8h', and '1day'. The backtest command covers a wide range of stocks, forex pairs, indices, and cryptocurencies.
Exchanges for stocks and cryptocurrencies can be specified by adding it after the ticker while separated by a semicolon (all-caps), for example:
BTC/USD:BITFINEX. Not all exchanges are supported.
Information about each strategy can be found below.
macross strategy is a simple moving average crossover strategy, users can define the type of moving averages alongside their periods, the
macross syntax is defined as follows:
/backtesting_macross symbol timeframe fastma_type fastma_period slowma_type slowma_period
/backtesting_macross GOOG 15min SMA 14 SMA 28
The strategy opens a long position when the fast moving average crossover the slow one, and a short position when the fast moving average cross under the slow one.
Available moving average types include:
|Simple Moving Average|
|Exponential Moving Average|
|Weighted Moving Average|
|Double Exponential Moving Average|
|Triple Exponential Moving Average|
|Triangular Moving Average|
|Kaufman Adaptive Moving Average|
supertrend strategy is a strategy based on the Supertrend indicator, the
supertrend syntax is defined as follows:
/backtesting_supertrend symbol timeframe factor period
/backtesting_supertrend GOOG 15min supertrend 4 7
The strategy opens a long position when the price crossover the supertrend, and a short position when the price cross under the supertrend.
macd strategy is a strategy based on the MACD indicator, the
macd syntax is defined as follows:
/backtesting_macd fast_period slow_period hist_period
/backtesting_macd GOOG 15min 50 14 9
The strategy opens a long position when the MACD histogram crossover 0, and a short position when the histogram cross under 0.
sar strategy is a strategy based on the SAR indicator, the
sar syntax is defined as follows:
/backtesting_sar symbol timeframe acceleration maximum
/backtesting_sar GOOG 15min sar 0.02 0.02
The strategy opens a long position when the price crossover the SAR, and a short position when the price cross under the SAR.
rsi strategy is a strategy based on the RSI indicator, the
rsi syntax is defined as follows:
/backtesting_rsi length upper lower
/backtesting_rsi GOOG 15min 14 80 20
The strategy opens a long position when the RSI cross under the lower level, and a short position when the RSI cross over the upper level.
stochastic strategy is a strategy based on the Stochastic indicator, the
stochastic syntax is defined as follows:
/backtesting_stochastic symbol timeframe fastk slowk slowd
/backtesting_stochastic GOOG 15min 50 20 7
The strategy opens a long position when the Stochastic slow K crossover the Stochastic Slow D, and a short position when the Stochastic slow K cross under the Stochastic Slow D.
turtle strategy is a strategy based on the Donchian Channel indicator, the
turtle syntax is defined as follows:
/backtesting_turtle symbol timeframe length
/backtesting_turtle GOOG 15min 14
The strategy opens a long position when the high price is equal to the upper extremity of the Donchian Channel, and a short position when the low price is equal to the lower extremity of the Donchian Channel
momentum strategy is a strategy based on the Momentum indicator, the
momentum syntax is defined as follows:
/backtesting_momentum symbol timeframe length
/backtesting_ GOOG 15min momentum 14
The strategy opens a long position when the momentum oscillator crossover 0, and a short position when the momentum oscillator cross under 0.
bbands strategy is a strategy based on the Bollinger Bands indicator, the
bbands syntax is defined as follows:
/backtesting_bbands symbol timeframe length mult
/backtesting_bbands GOOG 15min 20 2
The strategy opens a long position when the price crossover the upper extremity of the Bollinger Bands, and a short position when the price cross under the lower extremity of the Bollinger Bands.
/book quote base
Returns the image of a Coinbase order book depth chart of a specific cryptocurrency.
/book btc usd
/chart symbol timeframe *indicators
/chart command allows getting the image of a tradingview chart of the requested symbol and timeframe.
The user can optionally request indicators to be displayed, e.g:
/chart BTCUSD 15 MACD RSI BB
The above command would display a Bitcoin chart using the 15min timeframe with the MACD, RSI, and BB indicators. The name of the indicators are not case sensitive, you can see the list of supported indicators and their command syntax below:
|Full Name||Name For The Command|
|Advance Decline Ratio||adr|
|Average True Range||atr|
|Bollinger Bands %B||%b|
|Bollinger Bands Width||bbw|
|Chaikin Money Flow||cmf|
|Commodity Channel Index||cci|
|Detrended Price Oscillator||dpo|
|Ease Of Movement||eom|
|Elder's Force Index||efi|
|Hull Moving Average||hull|
|Know Sure Thing||kst|
|Moving Average Convergence Divergence||macd|
|Simple Moving Average||sma|
|Exponential Moving Average||ema|
|Weighted Moving Average||wma|
|On Balance Volume||obv|
|Pivot Points High Low||pivot hl|
|Pivot Points Standard||pivot|
|Price Volume Trend||pvt|
|Rate of Change||roc|
|Relative Strength Index||rsi|
|SMI Ergodic Indicator||smii|
|SMI Ergodic Oscillator||smio|
|Volume Weighted Moving Average||vwma|
/ha symbol timeframe *indicators
/ha command works like the
/chart command but will return the image of a Heikin-Ashi chart instead of regular candles.
Returns the amount of dividends paid out for the last 10+ years for a specific stock.
Returns data for a given company most recent earnings, including earning date, time (if supplied), estimated earning, actual earning, the difference between the actual and estimated earning, and the surprise (%) of the actual earning related to its estimate.
Returns the list of companies with the most recent upcoming IPO in the NASDAQ exchange. Users can optionally select a starting date for the most recent upcoming ipo's, the date should be in the format year-month-day.
/news keyword *source
/news command returns the link of a random recent news related to the requested keyword. A source website can be optionally specified, e.g:
/news bitcoin coindesk.
/quote symbol *timeframe
Returns ohlc prices, as well as price change and volume (if available) of the selected symbol over an optional timeframe. If not timeframe are specified, the daily timeframe will be used by default.
/sentiment symbol timeframe
Returns the technical analysis sentiment of a given symbol and optional timeframe.