♥ 0 |
Hi Peter. Is it possible to move VALUES_ABOVE and VALUES_BELOW further up or down from the graph? Or move it sideways? I’ve used it on a zig-zag wave showing volume on each wave, but sometimes the values are being overwritten by the graph. uVol.SetPaintingStrategy(paintingStrategy.VALUES_ABOVE); Full code: declare upper; input price = hlc3; def mode = if reversalMode == reversalMode.price then ZigZagTrendSign(price = price, reversalAmount=reversalAmount) else ZigZagTrendPercent(price = price, reversalAmount=reversalAmount); plot wave = if reversalMode == reversalMode.price then ZigZagSign(price = price, reversalAmount=reversalAmount) else ZigZagPercent(price = price, reversalAmount=reversalAmount); rec upWaveVolume = if inflection == 1 and trend == 1 and close > open then volume else if inflection == 1 and trend == 1 and close <= open then 0 else if trend == 1 or (inflection == 1 and trend == -1 and close >= open) then upWaveVolume[1] + volume else 0; rec barsUp = if inflection == 1 and trend == 1 and close > open then 1 else if inflection == 1 and trend == 1 and close <= open then 0 else if trend == 1 or (inflection == 1 and trend == -1 and close >= open) then barsUp[1] + 1 else 0; plot uCount = if (displayMode == displayMode.barNumber and barsUp) then barsUp else double.nan; plot dCount = if (displayMode == displayMode.barNumber and barsDown) then barsDown else double.nan; plot uCountTot = if (displayMode == displayMode.barTotal and barsDown == 1 and barsUp==0) then barsUp[1] else double.nan; plot dCountTot = if (displayMode == displayMode.barTotal and barsDown==0 and barsUp==1) then barsDown[1] else double.nan; plot uVol = if (displayMode == displayMode.volume and barsDown == 1 and barsUp==0) then Round(“number” = upWaveVolume[1] / 10000000 * multiplier, “numberOfDigits” = 1) else double.nan; plot dVol = if (displayMode == displayMode.volume and barsUp == 1 and barsDown==0) then Round(“number” = downWaveVolume[1] / 10000000 * multiplier, “numberOfDigits” = 1) else double.nan;
RESOLVED
Marked as spam
|
Private answer
No, this it is not possible to move them further away from the high and low of the candle on which they appear. Yes, it is sometimes possible to shift them one or more bars to the right or left. But you did not include any of the code you are using to place these values on the chart so I cannot provide any suggestions on how to adapt your specific code to accomplish this. I suggest you learn to use the AddChartBubble() statement since this allows you full control over the placement of each chart bubble and the values which are displayed. https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/AddChartBubble
Marked as spam
|
Please log in to post questions.