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

CCi value export to excel

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

    CCi value export to excel

    Hi,can anybody please help me?
    I am looking for a program, indicator or strategy which will export data (values from CCI) to excel.

    If CCi 14 cross above (below) the zero line then export to excel value from CCi(30) at this moment.
    I am not programmer and i am begining with this software.
    Thanks
    Have a nice day

    #2
    Welcome to our forums - you could use for example this reference sample below to create a txt file export from NinjaScript, it would just need to be customized to your task as it does only OHLC values per default - http://www.ninjatrader-support2.com/...ead.php?t=3477

    For more finesse check into the StreamWriter one -

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks for your answer. I am not programmer, but i am trying it.
      Please have a look on my txt file..
      Thanks
      Attached Files

      Comment


        #4
        Tatanka1,

        myCCI[0]

        You cannot do that since myCCI is not a DataSeries object. Only objects that hold multiple values can use [] indexing. A double variable only holds one value and you only need to do "myCCI" to access its value.

        I strongly suggest you first take a step back and work with simple examples to get familiar with the code because StreamWriter is pretty advanced. Please try using the Strategy Wizard to familiarize yourself with how code is generated and the syntax needed. You can find some tutorials here: http://www.ninjatrader-support.com/H...tml?Overview34
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi, thanks.
          i am also trying work with Strategy Wizard and studying simple code. I know it is the right way.
          Can you help me please with my horrible code? I changed myCCI like DataSeries object...Syntax i thing is OK, but it is not working. My txt file does not include my CCI value...
          have a nice day.
          Attached Files

          Comment


            #6
            Please don't assign a value to the dataseries in Initialize(), assign in the OnBarUpdate() instead.

            In Initialize() just do myDataSeries = new DataSeries(this);

            Then in OnBarUpdate() - myDateSeries.Set(CCI(50)[0]);
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Hi boys thanks you for fast answers.
              I did some changes in my code but it is not working. I lost myself in this code and i have to study others codes ..
              have a nice day.
              Alex

              Comment


                #8
                Alex, you're welcome - a good overall start into custom coding are those tutorials -

                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by junkone, Today, 11:37 AM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by frankthearm, Yesterday, 09:08 AM
                11 responses
                42 views
                0 likes
                Last Post frankthearm  
                Started by quantismo, 04-17-2024, 05:13 PM
                5 responses
                35 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by proptrade13, Today, 11:06 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by love2code2trade, 04-17-2024, 01:45 PM
                4 responses
                35 views
                0 likes
                Last Post love2code2trade  
                Working...
                X