//@version=5 strategy('Pine Script Tutorial Example Strategy 1', overlay=true, initial_capital=1000, default_qty_value=100, default_qty_type=strategy.percent_of_equity) fastEMA = ta.ema(close, 24) slowEMA = ta.ema(close, 200) goLongCondition1 = ta.crossover(fastEMA, slowEMA) time...
NOTE:This lesson is out-dated and for Version 4 syntax. To see my latest FREE Pine Script V5 lessons complete with source code, check out myYouTube Pine Script Tutorialspage. Welcome to my Pine Script tutorial section! In these lessons I’m going to walk you through the basic knowledge r...
Obviously, this was a very simple example just to demonstrate the basics. You can enhance it further with more configuration options, optimization, alerts, etc. But you should now have a sense of how to go from idea to coded indicator in PineScript. Here are two ways we could add more f...