mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-05 17:53:17 +08:00
BLD: updated sample algo
This commit is contained in:
@@ -43,8 +43,8 @@ def initialize(context):
|
||||
|
||||
context.start_time = time.time()
|
||||
|
||||
# context.set_commission(maker=0.001, taker=0.002)
|
||||
# context.set_slippage(spread=0.001)
|
||||
context.set_commission(maker=0.001, taker=0.002)
|
||||
context.set_slippage(spread=0.001)
|
||||
|
||||
|
||||
def handle_data(context, data):
|
||||
@@ -244,7 +244,7 @@ def analyze(context=None, perf=None):
|
||||
|
||||
if __name__ == '__main__':
|
||||
# The execution mode: backtest or live
|
||||
live = True
|
||||
live = False
|
||||
|
||||
if live:
|
||||
run_algorithm(
|
||||
|
||||
Reference in New Issue
Block a user