mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-13 04:24:43 +08:00
BUG: modified dual_moving_average example
modified long_window to be larger than short_window
This commit is contained in:
@@ -21,7 +21,7 @@ def initialize(context):
|
||||
def handle_data(context, data):
|
||||
# define the windows for the moving averages
|
||||
short_window = 2
|
||||
long_window = 2
|
||||
long_window = 3
|
||||
|
||||
# Skip as many bars as long_window to properly compute the average
|
||||
context.i += 1
|
||||
|
||||
Reference in New Issue
Block a user