mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add more pnl report conditions
This commit is contained in:
parent
6b0f2b80d7
commit
3786792214
|
@ -82,9 +82,14 @@ var runCmd = &cobra.Command{
|
||||||
trader.AttachCrossExchangeStrategy(strategy)
|
trader.AttachCrossExchangeStrategy(strategy)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: load these from config file
|
||||||
trader.ReportPnL(notifier).
|
trader.ReportPnL(notifier).
|
||||||
AverageCostBySymbols("BTCUSDT", "BNBUSDT").
|
AverageCostBySymbols("BTCUSDT", "BNBUSDT").
|
||||||
Of("max", "binance").When("@daily", "@hourly")
|
Of("binance").When("@daily", "@hourly")
|
||||||
|
|
||||||
|
trader.ReportPnL(notifier).
|
||||||
|
AverageCostBySymbols("MAXUSDT").
|
||||||
|
Of("max").When("@daily", "@hourly")
|
||||||
|
|
||||||
err = trader.Run(ctx)
|
err = trader.Run(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user