Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

App Share Indicator not working correctly

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

    App Share Indicator not working correctly

    I developed BarTimer Flash Fusion in NT7 and Patrick_H kindly translated it to NT8.
    I noticed today that it no longer works correctly.
    Perhaps NT could take a look at it.
    the Clock counts up but lapsed time no longer works on a real time feed.


    #2
    Hi Mindset, thanks for posting. The indicator is working for me when I test it. Please first make sure you sync your Windows clock with internet time:

    https://pureinfotech.com/sync-clock-windows-10/ (publicly available)

    Please let me know if this does not resolve.

    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks ChrisL. That sorted it

      Comment


        #4
        Originally posted by Mindset View Post
        Thanks ChrisL. That sorted it
        Originally posted by NinjaTrader_ChrisL View Post
        Hi Mindset, thanks for posting. The indicator is working for me when I test it. Please first make sure you sync your Windows clock with internet time:

        https://pureinfotech.com/sync-clock-windows-10/ (publicly available)

        Please let me know if this does not resolve.
        I find the indicator very useful and have been using it since NT7. One really useful feature of Mindset NT7 version is that the lapsed time and clock time font brush and size can be customized separately, it helps for a quick glance without confusion. The NinjaTrader_ChrisL NT8 version renders both clock and lapse time with the same font size and brush.

        I would like to request, while at it, either Mindset or Chris to please update the NT8 version for separate custom rendering of font size and brush for clock and lapse time.

        Many thank.​

        Comment


          #5
          Hello, thanks for posting. The scripts submitted by our team come "As is", so we will not be able to create any further changes once uploaded.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_ChrisL View Post
            Hi Mindset, thanks for posting. The indicator is working for me when I test it. Please first make sure you sync your Windows clock with internet time:

            https://pureinfotech.com/sync-clock-windows-10/ (publicly available)

            Please let me know if this does not resolve.
            Hi NinjaTrader_ChrisL

            Is it possible, as a feature request, to implement an automatic synch within the NT8 to perforform a sync on startup, session begein, or some time frequency?

            Thanks.

            Comment


              #7
              Originally posted by NinjaTrader_ChrisL View Post
              Hello, thanks for posting. The scripts submitted by our team come "As is", so we will not be able to create any further changes once uploaded.
              Thanks NinjaTrader_ChrisL. Perhapse Mindset would venture to make the change.

              Thanks.

              Comment


                #8
                Hi. There is a newer version in the mix. Just testing it now. The syncing is something new and I will have to research if I can do that with code. However it happens very infrequently so is not a major issue
                Last edited by Mindset; 01-01-2023, 07:41 AM.

                Comment


                  #9
                  Originally posted by NinjaTrader_ChrisL View Post
                  Hi Mindset, thanks for posting. The indicator is working for me when I test it. Please first make sure you sync your Windows clock with internet time:

                  https://pureinfotech.com/sync-clock-windows-10/ (publicly available)

                  Please let me know if this does not resolve.
                  Chris - can you point to a way to sync the pc clock using ninjascript at all?
                  - I am updating the indicator and this might be a useful amendment to make

                  Comment


                    #10
                    Hi Mindset, there is no way that I know of to do this through NinjaScript. This should be done through the Windows user interface.
                    Chris L.NinjaTrader Customer Service

                    Comment


                      #11
                      Thanks Chris - I thought as much.
                      I found this on the web but it references a ServicesProcess.dll that I can add but not correctly reference ( maybe I am using the wrong syntax?/ need to add the whole dll?)
                      The reference is \Windows\Microsoft.NET\Framework64\v4.030319\Syste m.ServiceProcess.dll
                      Edit - I also note it appears to be a win32 process which NT no longer support?
                      Code:
                      public static bool SyncDateTime()
                      {
                          try
                          {
                              ServiceController serviceController = new ServiceController("w32time");
                      
                              if (serviceController.Status != ServiceControllerStatus.Running)
                              {
                                  serviceController.Start();
                              }
                      
                      
                      
                              Process processTime = new Process();
                              processTime.StartInfo.FileName = "w32tm";
                              processTime.StartInfo.Arguments = "/resync";
                              processTime.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
                              processTime.Start();
                              processTime.WaitForExit();
                      
                      
                      
                              return true;
                          }
                          catch (Exception exception)
                          {
                      
                      
                              return false;
                          }
                      ​
                      Last edited by Mindset; 01-04-2023, 10:10 AM.

                      Comment


                        #12
                        Hi Mindset, please try placing that dll within Documents\NinjaTrader 8\bin\Custom then reference it from there. If this does not work, it does unfortunately go beyond the scope of support I am able to provide on the subject.
                        Chris L.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by DJ888, Today, 10:57 PM
                        0 responses
                        6 views
                        0 likes
                        Last Post DJ888
                        by DJ888
                         
                        Started by MacDad, 02-25-2024, 11:48 PM
                        7 responses
                        158 views
                        0 likes
                        Last Post loganjarosz123  
                        Started by Belfortbucks, Today, 09:29 PM
                        0 responses
                        7 views
                        0 likes
                        Last Post Belfortbucks  
                        Started by zstheorist, Today, 07:52 PM
                        0 responses
                        7 views
                        0 likes
                        Last Post zstheorist  
                        Started by pmachiraju, 11-01-2023, 04:46 AM
                        8 responses
                        151 views
                        0 likes
                        Last Post rehmans
                        by rehmans
                         
                        Working...
                        X