Announcement

Collapse
No announcement yet.

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 -

    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]);

            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 -

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                649 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                370 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                109 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                574 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                576 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X