BUG: modified dual_moving_average example

modified long_window to be larger than short_window
This commit is contained in:
AvishaiW
2018-02-20 19:17:03 +02:00
parent bd88ba2277
commit ab644bd732
+1 -1
View File
@@ -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