Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Plots Multi Instrument

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

    #16
    Try using DrawRegion() and pass in the two separate indicators as inputs.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      doh...thanks...worked great

      Comment


        #18
        Hello there.

        I have a question. Given a chart and an instrument plotted, say 6S, with its indicators in different panels, is it possible to add a further panel with an indicator which has as input series another instrument, say 6E?

        There was a post about RSI but no further discussion.

        Regards

        Comment


          #19
          michael fantoni, yes you can do this on a MultiSeries chart, here you could use all the bars series as input series to other indicators in the UI :

          Comment


            #20
            Thank you Bertrand.

            I have another question, somehow unrelated but I couldnt find any thread in the forum. Lets take a chart with various indicators plotted in their respective panels. I would like to create a signal at once when some conditions are met. For example, lets say that CCI=48 and RSI=34. I would like the respective bars of each separate panel to be, say, yellow IFF above. I saw how to do it for a single indicator, in fact I managed to replicate it for mine but I would need some cross reference from several indicators at once, cross relate indicators. Is it possible?

            Regards

            Comment


              #21
              michael, yes this would be possible either with custom coding in the NinjaScript editor or creating a strategy that would change the bar color as needed when your multiple indicators conditions trigger the signal as envisioned :

              Comment


                #22
                Thank you Bertrand.

                I will go through the link. If you are aware of any example of such a thing uploaded in the forum or anywhere else, please do let me know.

                Regards

                Comment


                  #23
                  Hi there

                  Anyone can help?
                  Im very new at programming. Im trying to convert Value.Set[0] to double for the momentum indicator. If I use the following command line:
                  protected override void OnBarUpdate()
                  {
                  Value.Set(CurrentBar == 0 ? 0 : Input[0] - Input[Math.Min(CurrentBar, Period)]);

                  if(Value[0]>0)
                  PlotColors[0][0] = upColor;

                  else

                  PlotColors[0][0] = dnColor;}
                  then it works as it should but if I try to use a non-integer figure it says error clearly. Where am I supposed to specify that I want Value.Set[0] a double? I tried few things and when it was compiling fine without errors then ninjatrader would shut down as soon as I would load the indicator on the chart.

                  Regards

                  Comment


                    #24
                    michael fantoni, I'm not exactly sure what you're trying to create here or comparing, but the main value series of the indicator would be a double value.

                    Can you please attach the indicator that would produce the crash so we can check into?

                    Comment


                      #25
                      Hi Bertrand and thank you.

                      I managed to do what I meant. Unfortunately, I deleted the indicator I was fiddling around with to start afresh and avoid using it and I cant remember what I put into it. I should keep all the scripts from now on.

                      Thank you and regards.

                      Comment


                        #26
                        Yes, that's probably best for the learning experience : glad to hear you managed to get it resolved.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        639 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        366 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        107 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        569 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        572 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X