I am trying to make a change in the current script as I want the brush area to cover my current bar as it is forming.
Cannot find the right setting and have tried the resource page of NT.
Need to cover all bars in the chart, imaged attached.
TIA!!
Code snip:
void PlotDevOne()
{
PlotVWAP1U[0] = curVWAP + SD1 * deviation;
PlotVWAP1L[0] = curVWAP - SD1 * deviation;
Draw.Region(this, "dev1", CurrentBar, 0, PlotVWAP1U, PlotVWAP1L, null, SD1AreaBrush, SD1AreaOpacity);
}
void PlotDevTwo()
{
PlotDevOne();
PlotVWAP2U[0] = curVWAP + SD2 * deviation;
PlotVWAP2L[0] = curVWAP - SD2 * deviation;
Draw.Region(this, "dev2", CurrentBar, 0, PlotVWAP1U, PlotVWAP2U, null, SD2AreaBrush, SD2AreaOpacity);
Draw.Region(this, "dev3", CurrentBar, 0, PlotVWAP1L, PlotVWAP2L, null, SD2AreaBrush, SD2AreaOpacity);
}
void PlotDevThree()
{
PlotDevTwo();
PlotVWAP3U[0] = curVWAP + SD3 * deviation;
PlotVWAP3L[0] = curVWAP - SD3 * deviation;
Draw.Region(this, "dev4", CurrentBar, 0, PlotVWAP2U, PlotVWAP3U, null, SD3AreaBrush, SD3AreaOpacity);
Draw.Region(this, "dev5", CurrentBar, 0, PlotVWAP2L, PlotVWAP3L, null, SD3AreaBrush, SD3AreaOpacity);
Chart:

Comment