I made this for a private stock trading discord group I run. This was initially just thrown together and I have plenty of enhancements and features planned.
If you have any features you would like implemented, please submit a new issue with the Feature Request label and I will respond :)
$avgo
-> Show 5 min AVGO chart$aapl w
-> Show weekly AAPL chart$tsla rsi macd
-> Show RSI and MACD indicators on TSLA daily chart$spy line
-> Show 5 min SPY line chart$/es
-> Show 5 min S&P 500 Furtures chart$.btc
-> Show 5 min BTC chart$usd/jpy w
-> Show USD/JPY Forex weekly chart$sectors ytd
-> Show sector performance YTD
- Example:
$tsla rsi mfi
- Available Parameters
- Indicators
rsi
-> Relative Strength Index. Default settings are14
macd
-> Moving Average Convergence / Divergense. Default settings are12, 26, 9
adx
-> Average Directional Index. Default settings are14
atr
-> Average True Rage. Default settings are14
cci
-> Commodity Channel Index. Default settings are20
fi
-> Force Index. Default settings are14
mfi
-> Money Flow Index. Default settings are14
ppi
-> Price Performance %. Default settings areSPY and QQQ
rwi
-> Random Walk Index. Default settings are9
roc
-> Rate of Change. Default settings are12
.rmi
-> Relative Momentum Index. Default settings are20
stofu
-> Stochastics Full. Default settings are14, 3, 3
stofsl
-> Stochastics Slow. Default settings are14, 3
stofa
-> Stochastics Fast. Default settings are14, 3
trix
-> Triple Exponential Moving Average. Default settings are9
ult
-> Ultimate Oscillator. Default settings are7, 14, 28
wr
-> Williams %R. Default settings are14
ema
-> Exponential Moving Average. Default settings are9, 21
bb_20
-> 20 Period Bollinger Bands. Default settings are2
bb_50
-> 50 Period Bollinger Bands. Default settings are2
hilo
-> High / Low Channel. Default settings are20
- Chart Types
candle
-> defaultline
-> Shows line chart rather than candles
- Time Intervals
3
-> 3 minute5
-> 5 minute (Default)15
-> 15 minuted
-> Dailyw
-> Weeklym
-> Monthly
- Indicators
- Currently supports 48 Futures / Commodities
- Example:
$/es m
- Available Parameters
- Time Intervals
5
-> 5 minute (Default)h
-> Hourlyd
-> Dailyw
-> Weekly
- Time Intervals
- View Sector Performace via Bar Chart
- Example:
$sectors ytd
- Available Parameters
- Time Intervals
d
-> Intraday (Default)w
-> Weeklym
-> Monthlyq
-> Quarterly (3 months)h
-> Half a year (6 months)y
-> Yearlyytd
-> Year to Date
- Time Intervals
- Currently supports
btc
-> Bitcoinltc
-> LiteCoineth
-> Ethereumxrp
-> Ripplebch
-> Bitcoin Cash
- Example:
$.btc w
- Available Parameters
- Time Intervals
5
-> 5 minute (Default)h
-> Hourlyd
-> Dailyw
-> Weekly
- Time Intervals
- Currently supports 10 Currency Pairs
- Example:
$usd/jpy w
- Available Parameters
- Time Intervals
5
-> 5 minute (Default)h
-> Hourlyd
-> Dailym
-> Monthly
- Time Intervals
- Clone the repository to whichever hosting service you prefer
- Rename
example-config.js
toconfig.js
, and replace the fields with your information - Run
npm install
- Run
node index.js
If preferred, you can also build and deploy as a Docker container.
docker build -t stockbot .
docker run -e BOT_TOKEN="mybottokenaaaaaaaaaaaaaaa" -e CHANNEL_ID="123412341234" stockbot