Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rewind to specific Bar

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

    Rewind to specific Bar

    Hello,

    I wonder if this is possible. Let's say I loaded a daily chart, and processed first 3 months (roughly 90 bars as each bar is a day). Right now my current bar is April 1. Is there any way to rewind the chart back, so that current bar becomes March 1?

    Thanks,
    redduke

    #2
    Hello RedDuke,

    Thanks for your post.

    The only way would be to reload your Ninjascript.

    If you can clarify what you want to accomplish, perhaps I can suggest an alternative.

    Comment


      #3
      Hi Paul,

      Thanks for you reply, can reload be done programmatically? Here is what I am trying to do. Let's say I enter Long on March 1, and a trade gets closed at some point in March, now I want to see what would have happened if I entered Short on March 1. Essentially I want to go back and try something else for a particular month that I already processed.

      Thanks,
      redduke

      Comment


        #4
        Hello RedDuke,

        Thanks for your reply.

        There is no means to programmatically reload Ninjascript.

        What we suggest is using the Playback Connection with market replay data and use the "goto" feature to return to the specific start date.


        Comment


          #5
          Thanks I was hoping for rewind chart feature via code

          Comment


            #6
            Another question, let's say I load 5 years of data, and then at some point during 2nd year I no longer care to finish indicator run. Is there any way to stop running it? Or do I need to let indicator to finish processing all years?

            Comment


              #7
              Hello RedDuke,

              Thanks for your reply.

              I am assuming the context here is a chart and not the strategy analyzer.

              You could add a button to the chart that you could click and have the script continue without processing its code below the return line. To clarify

              if (mybuttonClicked) return; // don't process code below this line once clicked

              Comment


                #8
                Thank you. Yes in indicator on the chart

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Mindset, 04-21-2026, 06:46 AM
                0 responses
                90 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by M4ndoo, 04-20-2026, 05:21 PM
                0 responses
                135 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by M4ndoo, 04-19-2026, 05:54 PM
                0 responses
                68 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by cmoran13, 04-16-2026, 01:02 PM
                0 responses
                119 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                69 views
                0 likes
                Last Post PaulMohn  
                Working...
                X