Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding a price marker in chart without plotting anything

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding a price marker in chart without plotting anything

    I am working on an expanded Price Alert indicator and I would like a price marker to be displayed on the Y-Axis that stays next to my horizontal line when it is moved. I tried to use a plot, but this has the problem that when I move the line I see a plot signal displayed on the chart.

    I moved the AddPlot command into the State.Configure section and this seemed to solve the issue, but when I reload the workspace I get an error "Added plots or lines must have a unique name" and my indicators did not load correctly.

    My question is: Is there a way to add a dynamic price marker to the y-axis without plotting anything on the chart?
    Attached Files

    #2
    Hello,

    Thank you for the question.

    The error you received would be expected by moving the AddPlot into the later state as this would not be the correct state for the AddPlot method.

    Regarding a PriceMarker, as far as I am aware these can only be added with a Plot I will see if I can locate any further information on this subject.

    I would be unsure why what you were trying was not working specifically, if you would like to post a sample of what is not working I could certainly look further into it. Because there is no default PriceAlert indicator in the platform I would have nothing to compare against other than what you are currently using.


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, Yesterday, 10:06 AM
    0 responses
    17 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    16 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    36 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X