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

Too many inputs!

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

    Too many inputs!

    Say I have an indicator that plots 10 horizontal lines and I have to enter new figures for every plot every morning. Now multiply that by three or four charts of different time frames using the same indicator. Is there an easier way to input the data without entering the same data into all three or four charts individually? Same numbers, same indicator, different charts!
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    #2
    If the numbers are always the same you can open the ninja script and hard code the default values under the "variables" area at the top of the code.

    take a look and let me know.
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      The reason for the question is because the numbers would change on a daily basis, but are the same for every chart. Makes my fingers hurt!
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        I think what MrLogik is saying is that instead of inputting the variables into each chart individually, if you view the NinjaScript Indicator, and change the variables at the top of the indicator code every morning and recompile it, then all the charts that use the indicator will get the new inputs.

        That way you are just updating once per morning.

        If you send me your indicator code, I can put comments in there of where you need to change the variables.


        Matt

        Comment


          #5
          Guess I don't see a way around, since even coding something in NinjaScript would not make a difference: the values applied to the indicators instances on chart will remain active, since they are copied as you e.g. go right click->reload NinjaScript in order to activate the recompiled indicator.

          Comment


            #6
            Too bad the indicators could not be linked and unlinked, to share the data. Then just reactivating in each chart would make the change. Recompiling all the time would defeat the purpose of having an easy to use interface.
            eDanny
            NinjaTrader Ecosystem Vendor - Integrity Traders

            Comment


              #7
              oops, wrong thread
              eDanny
              NinjaTrader Ecosystem Vendor - Integrity Traders

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ageeholdings, Today, 07:43 AM
              0 responses
              7 views
              0 likes
              Last Post ageeholdings  
              Started by pibrew, Today, 06:37 AM
              0 responses
              4 views
              0 likes
              Last Post pibrew
              by pibrew
               
              Started by rbeckmann05, Yesterday, 06:48 PM
              1 response
              14 views
              0 likes
              Last Post bltdavid  
              Started by llanqui, Today, 03:53 AM
              0 responses
              6 views
              0 likes
              Last Post llanqui
              by llanqui
               
              Started by burtoninlondon, Today, 12:38 AM
              0 responses
              12 views
              0 likes
              Last Post burtoninlondon  
              Working...
              X