Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

interactive strategy chart

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

    #16
    ATI user,

    I still do not quite understand what you are trying to do exactly. If you want a switch can't you just program it into the strategy itself? I don't think you need an indicator.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      I think your boolseries may do the trick...working on it now.

      The switch I need is a manual switch and must be outside the strategy because when I change a parameter in the strategy, the chart refreshes...and I lose all plots/data prior to that point in time.

      will advise...thanks

      ..........................

      no...looks like I need to write to/read from a file

      Comment


        #18
        ok...I give up

        you can not write/read to/from the same file at the same time...so that will not work.

        So the question remains: How do I change a parameter setting in a strategy without using the Parameter Settings dialog for the strategy?

        Comment


          #19
          You cannot change parameters on the fly.

          For the file reading/writing, just close the file and reopen it after each process. I don't see why you would need to read and write simultaneously. You can read then write or write then read.
          Josh P.NinjaTrader Customer Service

          Comment


            #20
            Problem with that is the strategy needs to be constantly reading and can not be disturbed or the chart will refresh...or...can the file be closed within the code?...if so, how please

            I could have the strategy check somehow to see if the file is open before it tries to access (to avoid the error message). Is this possible?

            Comment


              #21
              Code:
              sw.Close();
              for a StreamWriter named sw. You are working on very hairy grounds. You will probably get a ton of errors on historical data closing/reopening. No way to guarantee that the indicator has closed the file before the strategy tries to open it.
              Josh P.NinjaTrader Customer Service

              Comment


                #22
                interactive alert

                further to my posts 1 and 3 in this thread, NT has pop-up alerts which have the OK option to close the pop-up.

                could these not be made interactive..i.e. change OK option to Yes, No and Close/OK...so that some action could be initiated?....without refreshing the chart of course

                main question = why can we not (in a new version) change parameters in a strategy on the fly without having the strategy recalculate the entire chart with the new setting ....thereby erasing all prior plots etc??

                Comment


                  #23
                  Thank you for the suggestion ATI user. I have forwarded it to development.
                  Josh P.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  648 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  369 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  108 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  572 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  574 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X