Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Placing an order based on an incoming sound

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

    Placing an order based on an incoming sound

    Hello All.

    Ok I have a strange request. Can I somehow have ninjascript listen for a specific wav sound and trigger a buy when it hears that sound?

    I have my thinkorswim set up to alert with a bell for specific buys and a ring for specific sells. It uses a few of their proprietary strategies so I am not able to perfectly duplicate this in ninjascript no matter what I try. Even worse, with ameritrade there is no way to autotrade off custom strategies. All I can do is back test my strategy via their charts.

    Also thinkscript does not have any way of writing to a database that NT could then check.

    Maybe there is another way to have NT interface with thinkscript that I don't know about?

    Any advice is much appreciated

    #2
    Hello,

    Thank you for the question.

    There would be no standard way to complete what you are asking between the two platforms unfortunately. likely any solution here would be a custom solution.

    For what you are asking, i am unsure of any way to have C# recognize audio being played from the system, this would likely be a fairly difficult task. Would it be possible to have the strategy write to file what NinjaTrader needs to do?

    NinjaTrader could actively monitor a file on the file system, in the case that the other strategy could write to file, you could potentially do that.

    Another way would be if the strategy can write to file, you could utilize the OIF system in NinjaTrader. Essentially a text file is placed in the Documents/NinjaTrader 7/Incoming folder and it would place the order based on that signal. You can read more on this here: http://ninjatrader.com/support/helpG..._files_oif.htm

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X