Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting multiple symbols

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

    Plotting multiple symbols

    I would like to plot multiple symbol either above or below the price bar depending on certain conditions. The plotting in itself is not an issue but I am struggling with maintaining a proper distance between those symbols when the user re-scales the chart. I have separated each symbol by a couple of TickSizes but depending on the scaling they will either overlap or be very far apart. Any suggestions on how to better control the plotting of symbols? Ideally I would like them to remain equidistant regardless of the scaling. I experimented with the autoscale parameters of the DrawText and DrawArrow methods but to no avail.

    Thanks -

    #2
    Hello trader2be,

    I can see the issue you're facing, but not sure there is a simple solution. If drawing at Y values, you can really only draw at tick intervals. Separating the symbols by tick sizes is the only supported solution.

    You may consider looking into the custom plot sample to draw using the chart canvas for Y values. Unfortunately we can't advise the specific implementation for this, but the sample may give you some ideas to work from.

    This post as well may provide some guidance if you pursue this.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X