I am unable to figure out how to align the plottext output at the end of the pivot lines when styleownscale is used. I have tried one or two solutions given in this forum but didn't get the desired result.

Following is the code for the pivot with support and resistance levels.

```
_SECTION_BEGIN( "Support, Resistance & Pivot" );
DayH = TimeFrameGetPrice( "H", inDaily, -1 );
DayHI = LastValue( DayH, 1 ); // yesterdays high
DayL = TimeFrameGetPrice( "L", inDaily, -1 );
DayLI = LastValue( DayL, 1 ); // yesterdays low
DayC = TimeFrameGetPrice( "C", inDaily, -1 ); // yesterdays close
DayO = TimeFrameGetPrice( "O", inDaily ); // current day open
numbars = LastValue( Cum( Status( "barvisible" ) ) );
hts = -85;
PP = ( DayL + DayH + DayC ) / 3;
PPI = LastValue( PP, 1 ); // Pivot
BC = ( DayH + DayL ) / 2;
BCI = LastValue( BC, 1 ); //Bottom Central
TC = ( PP - BC ) + PP;
TCI = LastValue( TC, 1 ); //Top Central
R1 = ( PP * 2 ) - DayL;
R1I = LastValue( R1, 1 ); // Resistance 1
S1 = ( PP * 2 ) - DayH;
S1I = LastValue( S1, 1 ); //Support 1
R2 = PP + ( DayH - DayL ); //Resistance 2
S2 = PP - ( DayH - DayL ); // Support 2
R3 = R1 + ( DayH - DayL ); // Resistance 3
S3 = S1 - ( DayH - DayL ); // Support 3
R4 = R3 + ( R2 - R1 ); // Resistance 4
S4 = S3 - ( S1 - S2 ); // Support 4
Plot( PP, "PP", colorYellow, styleDots | styleNoLine|styleOwnScale );
Plot( TC, "TC", colorAqua, styleDots | styleNoLine|styleOwnScale );
Plot( R1, "R1", colorBrightGreen, styleDots | styleNoLine|styleOwnScale );
Plot( R2, "R2", colorBrightGreen, styleDots | styleNoLine|styleOwnScale );
Plot( R3, "R3", colorBrightGreen, styleDots | styleNoLine|styleOwnScale );
Plot( R4, "R4", colorBrightGreen, styleDots | styleNoLine|styleOwnScale );
Plot( BC, "BC", colorskyBlue, styleDots | styleNoLine|styleOwnScale );
Plot( S1, "S1", colorRed, styleDots | styleNoLine|styleOwnScale );
Plot( S2, "S2", colorRed, styleDots | styleNoLine|styleOwnScale );
Plot( S3, "S3", colorRed, styleDots | styleNoLine|styleOwnScale );
Plot( S4, "S4", colorRed, styleDots | styleNoLine|styleOwnScale );
PPI = LastValue( PP, 1 ); // Pivot
R1I = LastValue( R1, 1 ); // Resistance 1
R2I = LastValue( R2, 1 ); // Resistance 2
R3I = LastValue( R3, 1 ); // Resistance 3
R4I = LastValue( R4, 1 ); // Resitance 4
S1I = LastValue( S1, 1 ); // Support 1
S2I = LastValue( S2, 1 ); // Support 2
S3I = LastValue( S3, 1 ); // Support 3
S4I = LastValue( S4, 1 ); //Support 4
PlotText( " Pivot ", LastValue( BarIndex() ) - ( numbars / Hts ), PPI, colorYellow );
PlotText( " TC", LastValue( BarIndex() ) - ( numbars / Hts ), TCI, colorLightBlue );
PlotText( " R1 " , LastValue( BarIndex() ) - ( numbars / Hts ), R1I, colorWhite );
PlotText( " R2 " , LastValue( BarIndex() ) - ( numbars / Hts ), R2I, colorWhite );
PlotText( " R3 " , LastValue( BarIndex() ) - ( numbars / Hts ), R3I, colorWhite );
PlotText( " R4 ", LastValue( BarIndex() ) - ( numbars / Hts ), R4I, colorWhite );
PlotText( " BC ", LastValue( BarIndex() ) - ( numbars / Hts ), BCI, colorAqua );
PlotText( " S1 " , LastValue( BarIndex() ) - ( numbars / Hts ), S1I, colorWhite );
PlotText( " S2 " , LastValue( BarIndex() ) - ( numbars / Hts ), S2I, colorWhite );
PlotText( " S3 " , LastValue( BarIndex() ) - ( numbars / Hts ), S3I, colorWhite );
PlotText( " S4 ", LastValue( BarIndex() ) - ( numbars / Hts ), S4I, colorWhite);
```

I have also attached herewith a screenshot of my chart in question. As you can see the plotted Text on RHS is not aligned with their corresponding res & sup levels.

Request any assistance in achieving the desired result.