https://whentotrade.com/how-c-scripting-trend-indicator-example/
HOW-TO: C# Scripting using “LvT Trend Indicator” Example