Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EasyLanguage to NinjaScript

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

    Originally posted by RobinT View Post
    Do you know how to make it save data input via external. I tick the "save data as historical" box, but can I set it in config.xml?
    It would be the following in the Config. I recommend testing out changes to the config and seeing hwo they change the document.
    Code:
        <StoreRealTimeData>
          <boolean>false</boolean>
        </StoreRealTimeData>

    Comment


      Originally posted by RobinT View Post
      no i changed it with notepad,.
      Can you supply the changes you made?

      Comment


        Thanks again.

        Comment


          all I changed with Notepad was:

          <ConnectOnStartup>false</ConnectOnStartup>

          to

          <ConnectOnStartup>true</ConnectOnStartup>

          in

          <ConnectOptions xsi:type="ExternalOptions">
          <Backup />
          <ConnectOnStartup>false</ConnectOnStartup>

          Comment


            I can see that NT creates a new config.xml to save all its setup options.

            is it possible that it is seeing

            <ConnectOnStartup>true</ConnectOnStartup>

            in

            <ConnectOptions xsi:type="ExternalOptions">
            <Backup />
            <ConnectOnStartup>false</ConnectOnStartup>

            as a new interface, as it is creating a new entry in config.xml.

            should I be altering something else?

            all editing done with notepad.

            Comment


              Hello RobinT,

              Thank you for your patience.

              You should not need to write to another file and the behavior you are seeing is not expected.

              Would you be willing to send the Config.xml that you edited to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H - 1462237' in the subject line?

              Comment


                I will send before and after.

                Comment


                  When you are making a bar with Last () a five minute bar does not print until the first tick of the next bar arrives. Is there anyway you can close a bar or send a dummy value to open the nexxt bar?

                  Comment


                    Originally posted by RobinT View Post
                    When you are making a bar with Last () a five minute bar does not print until the first tick of the next bar arrives. Is there anyway you can close a bar or send a dummy value to open the nexxt bar?
                    Hello RobinT,

                    There would not be a means to pull the value until the tick to open the next bar is received.

                    Comment


                      How do I get the DateTime of the lastbaronchart during OnStartUp?

                      Comment


                        Originally posted by RobinT View Post
                        How do I get the DateTime of the lastbaronchart during OnStartUp?
                        Are you referring to a NinjaScript Object? Such as a Strategy or Indicator?

                        OnStartUp() would not have the data loaded, so the last bar on the chart would not be accessible.

                        Comment


                          Indicator, I feared that, will have to do in OnUpdate. Can you do it there? How?

                          Also, is there a feedback from Last ? I am flooding the system with data and it seems I am loading it too quickly. If I put a Sleep (50) in after every data point it is ok, but I wondered if there was a buffer full indication?

                          Comment


                            Hello RobinT,

                            You can use Bars.GetTime(Bars.Count-1) for the last bar on the chart.

                            For the question on Last, are you referring to pulling this in your external application or in NinjaScript? How often are you pulling? When do you need it?

                            Comment


                              Bars.GetTime(Bars.Count-1) - Thanks for that,

                              it is my external application, and I am calling it every 50 ms ok, but if I remove the sleep (50) and pump in data at max speed say 5 data points per ms, it cant take it. Is there a buffer full test?

                              Comment


                                Hello RobinT,

                                There would not be an native functions in the .DLL for buffer or memory management.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                581 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                338 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                103 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                554 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                552 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X