Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add Spinner Animation while loading chart data

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

    Add Spinner Animation while loading chart data

    My suggestion is:

    when refreshing a chart,
    display an animation of a spinner
    (basically a progress bar type animation),
    that indicates that something is happening in the background,
    and make this spinner appear in each panel in the chart window.

    it is probably impossible to calculate the duration of the loading time, so an actual progress bar showing a percentage complete is probably not a possibility, but at least a spinner would give a User Experience (UX) notification that the system has not crashed.

    If an indicator has an error, display a graphic image of an yellow exclamation point in that panel, so we don't need to check the Control Center log tab or NinjaScript output to see if something cause the indicator to be blank.

    Thank you for your consideration.

    #2
    Hello,

    Thank you for providing the feedback.

    I will provide a feature request to development for these items.

    These have been assigned the ids of:
    1. SFT-3045.
    2. SFT-3046



    I look forward to being of further assistance.
    Last edited by NinjaTrader_Jesse; 02-16-2018, 04:11 PM.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks Jesse

      I tried this code, but it does not render in real time mode. it only displays the text after all the historical bars have been processed.

      Code:
      protected override void OnBarUpdate()
              {	
      		if (State==State.Historical) 
      			{	
      				Draw.TextFixed(this, "historicaldataloading", "Processing Historical Data Bar#" + CurrentBar, TextPosition.BottomLeft);
      				
      			}
      	}
      It appears all the bar calculations must be done, prior to the final rendering step while in historical mode.

      I can print to the output panel during OBU of historical data...

      Can you confirm if it is impossible to render text to an chartPanel during the OBU of historical data...

      and point me to any help documents that describe the sequence of steps that occur before OnRender, so I can better understand?

      Comment


        #4
        Hello,

        Thank you for the post.

        I am not certain I understand what you are asking here.

        You can call this syntax in historical and it would relate to the values passed in, for example, it would relate to that historical bar where it was called.

        This would not be seen on the chart until the chart is actually rendered which would come once the script is processed. You would see prints sent to the output window as the script processes so you would likely see a small time difference between prints being output and rendering.

        There is not really a point in which you would step through historical data in order to see visuals while processing that data, can you detail further what the concern related to this code is?

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          NinjaTrader_Jesse,

          I also wanted to do a similar thing. I am running a script in the historical state that takes some time,and I want to render some text on the indicator to say it is "Loading...".
          I have tried doing this while in historical state, but it does not render on the chart till after the historical state is complete.

          How can I render some text on the chart at the beginning of the historical state that will render straight away?

          This way I can indicator to the user that loading is in progress.

          Regards,

          cmarkb

          Comment


            #6
            Hello cmarkb,

            It is currently not possible to use OnRender() before State.Realtime. We do have a feature request in for this with the ID of SFT-1456.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              has this been implemented under 8.0.15.0 feature # 12938 ?

              Comment


                #8
                Hello balltrader,

                You can track feature requests using the help guide to check if something has been implemented or not. Here is the main link for the changelog, you can review the 15.x link for those specific changes: https://ninjatrader.com/support/help...ease_notes.htm

                In the changelog, you can press Control + F and then enter the number you mentioned. I see this was added:

                12938
                Added
                Chart, Indicator
                Added "Calculating..." label for when indicators are still processing historical data
                Please let me know if I may be of additional assistance.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by sidlercom80, 10-28-2023, 08:49 AM
                166 responses
                2,234 views
                0 likes
                Last Post sidlercom80  
                Started by thread, Yesterday, 11:58 PM
                0 responses
                1 view
                0 likes
                Last Post thread
                by thread
                 
                Started by jclose, Yesterday, 09:37 PM
                0 responses
                6 views
                0 likes
                Last Post jclose
                by jclose
                 
                Started by WeyldFalcon, 08-07-2020, 06:13 AM
                10 responses
                1,414 views
                0 likes
                Last Post Traderontheroad  
                Started by firefoxforum12, Yesterday, 08:53 PM
                0 responses
                11 views
                0 likes
                Last Post firefoxforum12  
                Working...
                X