Learn NinjaScript: Building Your First Indicator from Scratch
You’ve read enough of the foundational posts in this series to know what OnBarUpdate, OnStateChange, and Plots do in isolation. This post puts them together. By the end of this walkthrough you’ll have a working NinjaScript indicator on your chart that plots a moving average and recolors itself based on slope — green when it’s…









