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

Adding a second symbol to a custom indicator

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

    Adding a second symbol to a custom indicator

    Hi,

    I'm trying to add a second symbol to a custom indicator with the following format:

    Add(string instrument, PeriodType periodType, int period)
    I'm getting a compile error " No overload for method 'Add' takes '3' arguments."


    How do I add the second symbol?


    Thanks,
    Folls


    #2
    imported post

    Indicators do not support multi-time frame and instruments. This is on our list for future enhancements.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Can I plot, color a bar, or anything else visual from a strategy? If not, can I put a little arrow without submitting an order in a strategy? I am trying to think of some way to put a marking on one of the symbols.

      Thanks,

      Folls

      Comment


        #4
        You can't create plots from a strategy but you can drive bar/back color and call draw methods.
        RayNinjaTrader Customer Service

        Comment


          #5
          OK. That's great. That will work.

          Folls

          Comment


            #6
            Just confirming

            Originally posted by NinjaTrader_Ray View Post
            Indicators do not support multi-time frame and instruments. This is on our list for future enhancements.

            Ray
            Ray


            This means I can't access 1 minute chart indicator values from a 50 tick chart?

            I think this is what you just said if I understand you correctly.

            Cliff

            PS: Nice Job on the switch from wowbb

            Comment


              #7
              Correct.

              For clarification, form a chart, you can't not access an indicator using another time frame.

              Within a strategy, you can accessing indicators from other time frames.
              RayNinjaTrader Customer Service

              Comment


                #8
                Ray

                Thanks. Sorry for being so thick headed. You said it loud and clear the first time.

                I think I might try capturing and saving the value with a custom indicator on the one minute chart. Then I can retrieve the saved value in my existing custom indicator. It is for referencing a long span SMA so I do need to save the value except on barclose of a one minute chart.

                Cliff

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by adeelshahzad, Today, 03:54 AM
                5 responses
                32 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by stafe, 04-15-2024, 08:34 PM
                7 responses
                32 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by merzo, 06-25-2023, 02:19 AM
                10 responses
                823 views
                1 like
                Last Post NinjaTrader_ChristopherJ  
                Started by frankthearm, Today, 09:08 AM
                5 responses
                22 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by jeronymite, 04-12-2024, 04:26 PM
                3 responses
                43 views
                0 likes
                Last Post jeronymite  
                Working...
                X