There are two modes of running:
(1) Record Trades and Backlog Tester
- Use to develop and tunning your trade strategy
- All trades are recorded into a file
- Anytime you can execute the backlog tester and check how your bot will perform
(2) Production
- Use the production to run your bot in live (be caution!)
======================================================================
export TRADE_DISABLE=1
export TRADE_REALTIME_DISABLE=1
export RECORD_ONLY=1
nohup ruby TradenerService.rb &
##nohup ruby tradener.rb &
$env:TRADE_DISABLE=1
$env:TRADE_REALTIME_DISABLE=1
$env:RECORD_ONLY=1
$env:TELEGRAM_DISABLE=1
ruby tradener.rb
======================================================================
How execute the backlog tester using a dump of recorded trades:
export TRADE_REALTIME_DISABLE=1
ruby .\play_trade.rb -r rec\TRADE_20191204_001437.dmp -p
$env:TRADE_REALTIME_DISABLE=1
ruby .\play_trade.rb -r rec\TRADE_20191204_001437.dmp -p
======================================================================
How disable telegram to send messages
export TELEGRAM_DISABLE=1
$env:TELEGRAM_DISABLE=1