Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT in weekends

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

    NT in weekends

    I launched Ninja today (Saturday) but it seems there is almost nothing to do even when connecting to "Simulated Data Feed", since charts, alert window and other functions remain void or still.
    If so, how may I test a market simulation in the weekends ?
    Moreover, can someone explain to me how to implement and to retrieve the "Market Replay" connection ? When I try it, a message says "There is no recorded data to replay" on whichever weekday.
    Thanks in advance.

    #2
    Hello fliesen,

    Thank you for your post.

    When using the Simulated Data Feed you would wan to set the chart to the Session Template Default 24/7 by right clicking and selecting Data Series.

    For Market Replay, you would first need to download data by going to File > Utilities > Download Replay Data.

    Comment


      #3
      Thank you.
      When downloading Replay Data, I must do it once for each single needed instrument, correct ?
      And what's the difference between L1 and L2 data ?

      Comment


        #4
        Hello Mauripasto,

        Thank you for your post.

        That is correct, you would download each instrument one at a time and one day at a time.

        L1 is your data for the charts, and L2 would be used for the SuperDOM for items like depth of market.

        Comment


          #5
          One more thing, please:
          We know that a value may be converted into a string.
          Is there a formula to convert a string like "2000A" into the value "2000" ?

          Comment


            #6
            Hello,

            Thank you for the question.

            There would not be any built in methods for this but you can use general C# methods and logic to accomplish this.

            If the string is just a number you could use Parse which is a method of Int, Double, Bool and other types.
            Converts the string representation of a number to its double-precision floating-point number equivalent.


            Double.Parse or Double.TryParse are easy to use but would require a string in the format of a number with no text.

            In order to parse a string to a value that contains text, you would likely need to do a step before parsing the number or to remove any text from the string and only leave numbers and then do the parse or tryparse.

            There are various ways to do that using C#, you could look into using Regex, here are a few examples in the second post of removing only text from a string and leaving the numbers: http://stackoverflow.com/questions/1...-from-a-string

            Please let me know if I may be of additional assistance.

            Comment


              #7
              Unfortunately, I do need to keep the information of the rest of the strings, which look somehow like:
              -9AAPL
              111IBM
              20GOOG


              but I also need to to sort such strings according to the numeric part at their beginning (otherwise the sorting will be senseless, since the chars "9" and "-9" will be sorted before 20 and 111)

              Is there any simple way (my programming skills are limited) to accomplish this ?

              Comment


                #8
                Hello,

                What you are asking for would be more of an advanced or complicated process.

                There are multiple steps that need to happen in order to get the output you need. There are also multiple ways to do this, all of which would require manual coding and the use of multiple programming techniques.

                This would not really be something I could just inform you "this is how you do it" because this would likely take some testing to get it working correct. It would be something you would need to develop and test to ensure it works as expected.

                If you would like to go over what would be required coding wise and would like to try and create the item, please reply back to our support email which is platform support @ ninjatrader.com and provide a link to this ticket and I will be happy to assist you.

                I look forward to being of further assistance.

                Comment


                  #9
                  I understand. Then it's better to forget the matter. Thanks anyway.
                  Just a final thing: what can it depend upon, if one same code of mine worked fine till yesterday, while it can't be enabled at all today (!), i.e. it doesn't become green after checking the enabling box in the strategy tab like in the attachment, yet it still works on another computer ?
                  I know it sounds crazy, but this is how it turns out today....
                  The log and trace files don't record anything either, and all other codes are ok.
                  Attached Files

                  Comment


                    #10
                    Hello,

                    Thank you for the question.

                    Is this going to a Yellow state after clicking enable or just stays white as in the image or does it disable right after you click enable?

                    Can you open the Tools -> Output Window before you try enabling it to see if any errors are being generated?

                    Also have you tried removing the strategy from the control center where you have it in the image, and then re add and re enable it?

                    I look forward to being of further assistance.

                    Comment


                      #11
                      It has stayed white since this morning, as from the previous attachment. It never turned to yellow or green, it never unchecked the "enable" box either. All other functions and tools work perfectly, I'm able to open the Output Window (in the new attachment this is how it looks like); there is only mention of a connection problem, but this is not true, alerts from other scripts for the checked symbols are continuously triggered, even now at 7.34 pm (we are 6 hours later than NYC).
                      I've already removed this strategy and copied it from my second (fine working) PC, but the issue persists.
                      Attached Files

                      Comment


                        #12
                        Hello,

                        Thank you for the reply.

                        It looks like this is enabled but has not yet started. I wanted to ask, had you tried disabling and re enabling the strategy or restarting the platform at this point?

                        If you have not yet, I would recommend trying restarting the platform.

                        I am not certain the connection messages in the output window would have anything to do with this or not, but it seems we would need to dig a little deeper to see what the reason it is not enabling is.

                        Can you test restarting the platform and let me know if you are then able to restart the strategy? If it still does not start after this, you may try removing it from the control center (right click the strategy name and click Remove) then re add the strategy back to the control center and re enable it.

                        If it was working prior to today, it is likely something circumstantial has occurred and may just need restarted. Otherwise if this has happened before, this could be due to the logic in the script possibly.

                        I look forward to being of further assistance.

                        Comment


                          #13
                          Yesterday I tried several times with no result to restart Ninja as well the whole PC system and to remove the strategy from Control Center and to re-add it.
                          However, today it's a new day and - a long too long while after checking the related box - the strategy decided for its enabling......
                          So eveything is ok again, but since nothing else has changed in these hours, what can this strange behaviour depend upon ?
                          Attached Files

                          Comment


                            #14
                            Hello Mauripasto,

                            Thank you for your response.

                            This could have been a simple connection issue. If this occurs again, please send us your Log and Trace files so we may investigate further. You can do this by going to Help > Mail To Support.

                            Comment


                              #15
                              A connection issue blocking a strategy but not other two ones ?
                              Is this possible ?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              88 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              48 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              30 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              34 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              68 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X