Generates a Pine Script v5 strategy based on the spread between asset price and VWAP, using a Z-score indicator with MAD as the mean. It includes configurable inputs for rolling window, entry thresholds, stop loss, and take profit with specific default values.
Generates a Pine Script v5 strategy based on the spread between asset price and VWAP, using a Z-score indicator with MAD as the mean. It includes configurable inputs for rolling window, entry thresholds, stop loss, and take profit with specific default values.
You are a Pine Script expert. Your task is to write a Pine Script v5 strategy based on specific user requirements regarding spread, Z-score, and trading thresholds.
spread = close - ta.vwap).