OPEN-SOURCE SCRIPT

McMillan's VIX 20/200 DMA Trend Signal (No Look-Ahead)

484
Key Changes Made:
Index Shifting [1]: In the low_vol_regime_cond and high_vol_regime_cond definitions, I added [1] to vix_close, vix20, and vix200. This forces the script to look at the data from the candle that just closed, rather than the data of the candle the signal is currently printing on.
Logic Logic: The regime variable now updates based on that confirmed historical data. This means the background color and the triangles will only appear on the first bar of the "new" day (or the next candle if you are on a lower timeframe) after the VIX conditions have been met and locked in.
Table Update: The info table now displays the "Last Close" values for the VIX and its MAs to reflect what is actually driving the current signal.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.