Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Runing a file when new bar plots

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

    Runing a file when new bar plots

    Hi
    is it possible to write a code to run a file when a new bar is plotted?

    Thank you

    #2
    Originally posted by elgaza View Post
    Hi
    is it possible to write a code to run a file when a new bar is plotted?

    Thank you
    If you can do it in c#, then sure.

    Comment


      #3
      Yes, that would be then just standard C# to run your custom file.

      For example here's a sample implementing a read / write operation from a file using System.IO

      Comment


        #4
        would it be too much to ask to write a short code for me?
        I'm not a programmer
        thank you

        Comment


          #5
          We could unfortunately not really custom develop this for you - have you checked into the sample link? It would show you for example how to open a txt file and read from it. What are you trying to do and run exactly? What action do you look to automate?

          Comment


            #6
            I have an indicator that for some reason needs to be refreshed every time and I have a script that does just that that clicks F5 on that window, if I could do that from Ninja it would be better and for that window only if I so choose

            Comment


              #7
              elgaza, instead of running that file / external program it would be probably easier to include a SendKeys.Wait command from C# for triggering the F5 press via code directly.

              Comment


                #8
                this is exactly what I mean, but I'm not too sure how to do this
                and thank you for replying back

                Comment


                  #9
                  elgaza, here's an example you could check into - http://www.ninjatrader.com/support/f...ad.php?t=37808

                  You would be then sending a F5 command instead but the structure would be the same.

                  Comment


                    #10
                    thank you for that I'll try it

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    598 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    343 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
                    556 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    555 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X