Hello, I'm trying to place the price on a horizontal line but do not want to use the bubbles in the vertical price axis of the chart. In the 2 pictures I posted, you will see one with the lines having the last digits of the price i.e. 20166 or 62.
For example.
Compared to the bubbles on the right.
I am using the line of code: "AddChartBubble(plotCond, s88, "spot " + AsDollars(s88), Color.yellow, yes);" which shows the bubble as in the second picture. Can anyone tell me what code will show 1) the price format of "20146" with no decimals and 2) the price format of "52" with no decimals? And if possible show them above, centered, or below the horizontal line.
This is a snippet of the line plot:
plot r62 = a(risk2).data;
r62.SetStyle(Curve.LONG_DASH);
r62.SetDefaultColor(Color.cyan);
r62.SetLineWeight(1);
AddChartBubble(plotCond, r62, "risk " + AsDollars(r62), Color.cyan, yes);
TIA, Ned
For example.
Compared to the bubbles on the right.
I am using the line of code: "AddChartBubble(plotCond, s88, "spot " + AsDollars(s88), Color.yellow, yes);" which shows the bubble as in the second picture. Can anyone tell me what code will show 1) the price format of "20146" with no decimals and 2) the price format of "52" with no decimals? And if possible show them above, centered, or below the horizontal line.
This is a snippet of the line plot:
plot r62 = a(risk2).data;
r62.SetStyle(Curve.LONG_DASH);
r62.SetDefaultColor(Color.cyan);
r62.SetLineWeight(1);
AddChartBubble(plotCond, r62, "risk " + AsDollars(r62), Color.cyan, yes);
TIA, Ned
Last edited: