• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Run an external file

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

    Run an external file

    Hello

    Is there a way to run or start an external file/program but not a sound file. Something like,

    Alert("myAlert", NinjaTrader.Cbi.Priority.High, "Reached threshold", "Alert1.wav", 10, Color.Black, Color.Yellow);


    Thanks

    #2
    Hello Tremblinghandtrader,
    Unfortunately there are no native way to do it. However, since NinjaScript is basically C# you can create your custom methods to do it. For example the below sample code demonstrates how to read a text file using SreamReader.
    http://ninjatrader.com/support/forum...ead.php?t=3476
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      For anyone else looking for a solution I found a very easy one.

      Process.Start("Filenamepath");

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by PeterGolz, 01-17-2020, 10:42 AM
      11 responses
      71 views
      0 likes
      Last Post reubenlasky  
      Started by utilizator, Today, 11:36 AM
      0 responses
      4 views
      0 likes
      Last Post utilizator  
      Started by EnveousColnago, Today, 07:24 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by tornadoatc, Today, 10:31 AM
      0 responses
      3 views
      0 likes
      Last Post tornadoatc  
      Started by EnveousColnago, Yesterday, 05:43 PM
      5 responses
      30 views
      0 likes
      Last Post EnveousColnago  
      Working...
      X