Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

2 plots with different scales

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

    2 plots with different scales

    i want to plot 2 items with different scale? can i do it?

    AddPlot(new Stroke(Brushes.Orange, 2), PlotStyle.Bar, "Gains");
    AddLine(Brushes.Coral, 1, "CumGains");

    #2
    Hello junkone,

    Indicators can only have one scale.

    You could build two indicator and have each use a different ScaleJustification property, or you could consider normalizing the values so they are relative to each other on the same scale.

    A publicly available resource on normalizing values can be found here - https://stackoverflow.com/questions/...-100-to-0-to-3

    If this does not resolve your inquiry, could you provide an illustration showing what you are trying to accomplish?

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by codeowl, 02-11-2019, 05:47 AM
    24 responses
    683 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by nightstalker, Today, 01:32 PM
    0 responses
    1 view
    0 likes
    Last Post nightstalker  
    Started by NTCalmPersistence15, Today, 10:03 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by DawnTreader, 05-08-2024, 05:58 PM
    13 responses
    45 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by jpeep, 08-16-2020, 08:31 AM
    15 responses
    497 views
    0 likes
    Last Post notenufftime  
    Working...
    X