To make a sound for symbol, when there is a new entry signal.

Discussion in 'App Development' started by jk90029, Mar 8, 2015.

  1. Dear-

    Personally, interested in
    1) equity trading only to buy when each price goes down unexpectedly.
    2) mostly use R or Python, as my primary tool.

    Suppose we run entry detection program every five minutes. (the pre-programmed codes with >1000 lines takes > 3 minutes to complete)
    If there is a NEW entry signal, such as "buy 100 shares of MSFT at 40.2" as soon as MSFT is down to hit 41.0, then I like to make my program to alert me with a sound "MSFT buy order at 40.2".

    Now is there any way for R/Python to make a sound in my PC like that?
    Of course I can make separate sound files, such as MSFT.wav, for sound of "MSFT" but it might be time-consuming and useless work for thousand of symbols. (at least 600 wav files in my PC, for 500 SnPs plus 100 NASDAQs)

    Appreciated if any starting link is suggested.
     
    Last edited: Mar 8, 2015
  2. 2rosy

    2rosy

    I do something similar to this with python. Kind of like a robot squawk box.

    Code:
    import pyttsx
    engine = pyttsx.init()
    engine.say("buy microsoft at 41")
    engine.runAndWait()
    
    
     
    loufah and Baron like this.