PineScript
(version 5) is TradingView specific programming language used for creating custom indicators, trade alerts, creating strategies, and back-testing them on historical and real data. After, gaining skills 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 computer programming are able to learn and build upon the basics. Arrays have been introduced at the end of 2020 and version 5 updates in Oct 2021, which has also been covered in this book. PineScript programming will also enable you to bypass restrictions imposed by TradingView platform on a number of indicators that a user can use. Act now to have a copy of this book to test your knowledge and trading skills.
Updated for version 5 and added greyscale compatible chart images for enhanced view Table of ContentIntroduction
Chapter -1: Taking the First Step
Chapter -2: Your first program in PineScript
Chapter -3: Plotting on the Chart
Chapter -4: Understanding Data Types
Chapter -5: Operators in PineScript
Chapter -6: Control-flow: Iteration
Chapter -7: Control-flow: Branching
Chapter -8: Functions
Chapter-9: Examples using Functions
Chapter -10: Built-in line function
Chapter -11: Customizable script - Taking input from users
Chapter -12: Indicators & code library
Chapter 13: Errors and their remedy
Chapter -14: A simple cross-over strategy example
Chapter -15: Evaluating Trading Strategies
Chapter- 16: Adding back-testing time-period
Chapter -17: Adding Order Size and Limit Order
Chapter - 18: Adding Stop to order
Chapter-19: Adding Stop to Exit Trade
Chapter - 20: Custom Screener
Chapter-21: Pair-Trading Strategy
Chapter -22: Array
Chapter 23: Swing high/low breakout strategy
Chapter 24: Webhooks: Opportunity to trade outside TradingView
Appendix A - Answers to quizzes and exercises