Display VWAP indicator behind the bars on the chart

This commit is contained in:
moshferatu 2024-09-07 07:39:17 -07:00
parent b168fe31b7
commit cc5244cfce

View File

@ -68,6 +68,10 @@ namespace NinjaTrader.NinjaScript.Indicators
{ {
ResetVWAP(); ResetVWAP();
} }
else if (State == State.Historical)
{
SetZOrder(-1); // Display behind bars on chart.
}
} }
private double GetPrice(int bars, int index = 0) private double GetPrice(int bars, int index = 0)