From cc5244cfce6acbb9ef63b4a7e162c4883981d2b0 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sat, 7 Sep 2024 07:39:17 -0700 Subject: [PATCH] Display VWAP indicator behind the bars on the chart --- indicators/vwap/VWAP.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indicators/vwap/VWAP.cs b/indicators/vwap/VWAP.cs index 4935c92..dcb0853 100644 --- a/indicators/vwap/VWAP.cs +++ b/indicators/vwap/VWAP.cs @@ -68,6 +68,10 @@ namespace NinjaTrader.NinjaScript.Indicators { ResetVWAP(); } + else if (State == State.Historical) + { + SetZOrder(-1); // Display behind bars on chart. + } } private double GetPrice(int bars, int index = 0)