Study name appearing twice on chart

gambcl

Member
Joined
Jul 4, 2025
Posts
10
Likes
5
I am just getting started with the SDK and trying to build a study.

Fairly straightforward so far, but for some reason my study name appears twice on the chart.

I get this:
STUDY_NAME(INPUTS) STUDY_NAME

I can't figure out why the 2nd copy of the name.
I have only added the study to the chart once, and when I delete that single instance it all disappears together, so it's not two instances.

Attached screenshot to show what I am seeing.

Anyone else seen this?

PS: Yes I know I can display Initial Balance using OHLC and Timeframe studies, but I'm doing this as a learning exercise.
 

Attachments

  • Screenshot 2025-07-17 at 00.16.13.png
    Screenshot 2025-07-17 at 00.16.13.png
    8.9 KB · Views: 7
I seem to have found the culprit, but I have no idea why it should cause this side effect of a duplicate label.
I was calling rd.setPricePlotRequired(true) in the initialize() method.
Once I commented that out and rebuilt, the duplicate label went away (I had to remove and re-add the study to the chart).

I think this behaviour might also be related to this thread:
https://support.motivewave.com/forum/index.php?threads/quick-question-bug-or-feature.939/#post-3587
Seems like a possible bug to me.
 
Top