Have you ever thought of a machine that could earn for you while you relax. There is no such machine but steps can be taken to build such a machine. It all depends on your skills and a winning strategy that can do trading on your behalf. Backtrader is python module used for creating custom indicators, trade alerts, creating strategies and back-testing them on historical and real data. After, gaining skill from this book you will be able to make your scripts for custom indicators and backtest strategies on historical data and real market. This book has been written in simple language so that readers with no prior background of python or computer programming are able to learn and build upon the basics. This book will also introduce you to basics of python programming need by the traders for coding on backtrader. Act now to have a copy of this book to test your strategies and build your skills. Table of Content INTRODUCTION CHAPTER 01: TAKING THE FIRST STEP Installation of python/Pycharm Exploring Pycharm CHAPTER 02: THE FIRST STEP TOWARDS CODING First Program in Python functions Python Modules Code Commenting Escape Character CHAPTER 03: THE BACKTRADER Installing BackTrader BackTrader Structure Adding/Plotting Data CHAPTER 04: DATA TYPES Type of data Variables Typecasting Input from user CHAPTER 05: READING DATA FROM A GENERIC CSV FILE Format of Date and time Resampling and Compression of Data CHAPTER 06: OPERATORS IN PYTHON Assignment/Arithmetic/Comparision/Logical Operator Other operators CHAPTER 07: USING CEREBRO ENGINE Adding Strategy to BackTrader Built-in Indicators of BackTrader Implementing - two SMAs, ATR, Bollingerbands CHAPTER 08: LOOPS IN PYTHON: ITERATION Flow Chart Creating loop in Python For Loop While loop Step increment in For Loop Break and continue statements CHAPTER 09: BACKTRADER CHART CUSTOMIZATION System-wide customization Chart Customization CHAPTER 10: CONTROL FLOW STATEMENTS "if" and "if... else" statement "elif" statement CHAPTER 11: ADDING LOGIC TO BACKTRADER STRATEGY Defining Strategy Adding RSI Adding doji logic to chart Backtrader Order - buy() and sell() Backtrader Position Adding Short and Long Condition Adding initial capital, Order Size Setting Order Size from Strategy/Cerebro CHAPTER 12: EXPLORING STRING Slicing Negative index in slicing Skipping characters in slicing Reversing string Common methods for String F-string formatting CHAPTER 13: LIST IN PYTHON Slicing of List Mix datatypes in List Methods supported by List Additional methods - List Tuple CHAPTER 14: DICTIONARY IN PYTHON Dictionary Methods supported by dictionary items() keys() update() get() pop() CHAPTER 15: CUSTOM INDICATOR: MARKING DOJI Structure of Indicator Doji Indicator Logic Full code for marking Doji CHAPTER 16: PYTHON FUNCTIONS Need for functions Understanding function Defining Custom Functions Function with and without input/output Doc String (__doc__) Scope of Variables Global keyword The *args and **kwargs CHAPTER 17: CLASS AND OBJECTS The Class Instantiating Class Class and instance variable Class constructors - self & __init__() Instance method Class/Static method Class method as Constructor Single/Multiple Inheritance CHAPTER 18: BACKTRADER ANALYZER Parameters for Strategy Evaluation Common Mistakes in Evaluation Adding Analyser to Cerebro TradeAnalyzer DrawDown AnnualReturn Transactions Improve Analyzer Display CHAPTER 19: SIMPLE CROSS-OVER STRATEGY The Basic Structure of Strategy Improving Strategy - adding size, short - exit on loss CHAPTER 20: ORDER MANAGEMENT notify_order() Logging Order Details Order.Stop Implementation cancel(order)
ThriftBooks sells millions of used books at the lowest everyday prices. We personally assess every book's quality and offer rare, out-of-print treasures. We deliver the joy of reading in recyclable packaging with free standard shipping on US orders over $15. ThriftBooks.com. Read more. Spend less.