Tradingview, Pine editor, SMA (6,70)
This code below has 2 interesting things: Calculate the SMA for 6 days and 70 days. Define a period of time for your backtesting //@version=3 strategy(“SMA – 6d – 70d”, overlay=true, initial_capital=1000) // === BACKTEST RANGE === FromMonth = input(defval = 1, title = “From Month”, minval = 1) FromDay = input(defval = 1, title … Read more