In this tutorial, we break down the major elements to creating and testing an automated trading strategy, using Quantopian, which is mainly the pairing of Python with Zipline. The basic required elements to all trading strategies through Python's zipline module are initialize and handle_data methods. The initialize method is used for setting any global parameters (stored in the context variable), and is run once at the very beginning of the algorithm. The handle_data method is run once per time series window, which is either one day, or one minute with Quantopian. OOP Crash course: http://pythonprogramming.net/object-oriented-programming-crash-course-tkinter/ Python Dictionaries: http://pythonprogramming.net/dictionaries-tutorial-python-3/ Pandas with Python tutorials: http://pythonprogramming.net/dashboard/#tab_dataanalysis sample code: http://pythonprogramming.net http://hkinsley.com https://twitter.com/sentdex http://sentdex.com http://seaofbtc.com
Visibility: 38986
Duration: 10m 55s
Rating: 319