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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,610 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    9 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    19 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    6 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    16 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X