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 thanajo, 05-04-2021, 02:11 AM
                3 responses
                465 views
                0 likes
                Last Post tradingnasdaqprueba  
                Started by Christopher_R, Today, 12:29 AM
                0 responses
                10 views
                0 likes
                Last Post Christopher_R  
                Started by sidlercom80, 10-28-2023, 08:49 AM
                166 responses
                2,235 views
                0 likes
                Last Post sidlercom80  
                Started by thread, Yesterday, 11:58 PM
                0 responses
                4 views
                0 likes
                Last Post thread
                by thread
                 
                Started by jclose, Yesterday, 09:37 PM
                0 responses
                9 views
                0 likes
                Last Post jclose
                by jclose
                 
                Working...
                X