Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot output dependend on Instrument

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

    Plot output dependend on Instrument

    I have an indicator the shows OHLC of a defined time range of yesterday in a default Chart template.

    I want to add this indicator to the Market Analyzer with different products that have different pit sessions. E.g. Gold and Oil.

    1) I could add multiple instruments, and then add the indicator several times to the strategy analyzer. Each time selecting a different plot.

    2) i would prefer to add the indicator only one time. Is it possible to let the indicator detect the instrument and then calculate a different routine

    if instrument = gold

    ...
    plot x

    else if instrument = oil

    ....
    plot x

    #2
    Hello markus1000,

    1. Yes, you may add the indicator multiple times and specify a plot at each different one.

    2. It would be but you would have to use the same plot but change the single plots value based on the Instrument. For example:

    if ( Instrument.MasterInstrument.Name == "GC" ) PlotA.Set( 5 );

    if ( Instrument.MasterInstrument.Name == "CL" ) PlotA.Set( 6 );
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    566 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X