I modified an Alexis Pivot Point All 3 efs because after doing a search of the board, I couldn't find exactly what I wanted. I wanted the PP value, along with some text, at the end of the PP line.
I am not able to insert an image. [IMG] code is set to off. As the saying goes, a picture is worth words, so I will leave the image explanations.
The first image is a chart with auto scale on. I used a +10 and a -10, see code below, to put the text in this position. I'll try to explain the +10 and -10 values with the other images.
The second image is with the price value of the chart compressed. I get this same result with just time value compressed and that is the reason for the +10 and -10 in the coding. I needed to exaggerate the example here.
The third image is more of what I would like to have.
Is there a way to make the text a constant relative amount to the PP value?
Thank you.
Here is my code.
drawTextRelative(1, vS2 + 10, vSymbol, Color.RGB(128,128,255), null, Text.BOLD|Text.VCENTER, "Arial", 8, "text5a");
drawTextRelative(1, vS2, formatPriceNumber(vS2), Color.RGB(128,128,255), null, Text.BOLD|Text.VCENTER, "Arial", 8, "text5");
drawTextRelative(1, vS2 - 10, "S2", Color.RGB(128,128,255), null, Text.BOLD|Text.VCENTER, "Arial", 8, "text5b");
I am not able to insert an image. [IMG] code is set to off. As the saying goes, a picture is worth words, so I will leave the image explanations.
The first image is a chart with auto scale on. I used a +10 and a -10, see code below, to put the text in this position. I'll try to explain the +10 and -10 values with the other images.
The second image is with the price value of the chart compressed. I get this same result with just time value compressed and that is the reason for the +10 and -10 in the coding. I needed to exaggerate the example here.
The third image is more of what I would like to have.
Is there a way to make the text a constant relative amount to the PP value?
Thank you.
Here is my code.
drawTextRelative(1, vS2 + 10, vSymbol, Color.RGB(128,128,255), null, Text.BOLD|Text.VCENTER, "Arial", 8, "text5a");
drawTextRelative(1, vS2, formatPriceNumber(vS2), Color.RGB(128,128,255), null, Text.BOLD|Text.VCENTER, "Arial", 8, "text5");
drawTextRelative(1, vS2 - 10, "S2", Color.RGB(128,128,255), null, Text.BOLD|Text.VCENTER, "Arial", 8, "text5b");
Comment