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

Write the values of an indicator to a text file

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

    Write the values of an indicator to a text file

    Dear NinjaTraders,

    I am using the ninjascripts provided by this thread:

    http://www.ninjatrader-support2.com/...ead.php?t=3477

    and they are working very well.

    I would like those scripts to also write the values of indicators, for example, the moving averages of the MACD.

    Is this possible?

    Is there any reference materials explaning how to do this?

    Many thanks,

    #2
    Hello,

    Do you mean write the indicator value to the text file? If so, yes, it is done just like the other things you write to the text file, but write the value that is found via this:
    MACD(
    12, 26, 9)[0]
    DenNinjaTrader Customer Service

    Comment


      #3
      Dear Ben,

      Thank you for your reply.

      This is what I meant, but how would you do it for "any" indicator displayed on the chart, like a general formula that writes the values of the indicators displayed in Panel 1, 2, 3... regardless that they are MACD, EMA, etc.

      Many thanks,

      Comment


        #4
        Hello mat1024,

        You can't set it up to write indicator data in specific panels. You have to state which indicator you would like to write to the file. This means writing out the code for the values you want written.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          yeah, so you have to create a new line of code for each indicator. I have a system that does this for 180 indicators. I put it in excel and run vba code on it to develop statistical patterns. Then I implement those patterns in strategies in NS.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by geddyisodin, Yesterday, 05:20 AM
          8 responses
          51 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          10 responses
          36 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by DayTradingDEMON, Today, 09:28 AM
          4 responses
          24 views
          0 likes
          Last Post DayTradingDEMON  
          Started by George21, Today, 10:07 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Started by Stanfillirenfro, Today, 07:23 AM
          9 responses
          25 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X