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
CHAPTER 01: TAKING THE FIRST STEP - python installation etc CHAPTER 02: THE FIRST STEP TOWARDS CODING - python first code, functions, modules, commenting CHAPTER 03: THE BACKTRADER - installation, BackTrader Structure, Plotting Data CHAPTER 04: DATA TYPES - variables, input from user etc CHAPTER 05: READING DATA FROM A GENERIC CSV FILE Format of Date and time Resampling and Data Compression CHAPTER 06: OPERATORS IN PYTHON - Assignment/Arithmetic/Comparision/Logical Operator CHAPTER 07: USING CEREBRO ENGINE - Adding Strategy, Built-in Indicators of BackTrader Implementing - two SMAs,ATR,Bollingerbands CHAPTER 08: LOOPS IN ITERATION Flow Chart , Creating for & while loops in Python Step increment in Loop Break and continue statements CHAPTER 09: BACKTRADER CHART CUSTOMIZATION Chart & System-wide customization CHAPTER 10: CONTROL FLOW STATEMENTS "if" and "if… else" statement “elif” statement CHAPTER 11: ADDING LOGIC TO BACKTRADER STRATEGY Defining Strategy Adding RSI, doji logic to chart Backtrader Order – buy() and sell() Backtrader Position Adding Short and Long Condition, initial capital,Order Size Setting Order Size from Strategy/Cerebro CHAPTER 12: EXPLORING STRING Slicing Negative index 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 Tuple CHAPTER 14: DICTIONARY IN PYTHON Dictionary Methods supported by dictionary 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