NexusFi: Find Your Edge


Home Menu

 





Opening Bell Program


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one spinnybobo with 3 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 MXASJ with 1 posts (0 thanks)
    4. looks_4 dsraider with 1 posts (0 thanks)
    1. trending_up 4,315 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 5 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 
spinnybobo's Avatar
 spinnybobo 
Crete, IL/USA
 
Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
Posts: 173 since Aug 2009
Thanks Given: 105
Thanks Received: 61

Hi
does anybody know what would be the code just to sound a wave file at a specified time?

I have this wav file that I would like to play when the market opens.

thanks
Spencer


Attached Files
Elite Membership required to download: bell.rar
Follow me on X Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
Asia Equities Crash Overnight -- Nikkei -5.2%, KOSPI -6. …
Traders Hideout
NinjaTrader Connect Launches -- Krakens $1.5B Acquisitio …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #3 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87


Hi Spencer,

This is JUST a guess so please don't send me hate mail if it doesn't work, but I'd give this a try:


 
Code
                            
protected override void OnBarUpdate()
if(
ToTime(Time[0]) == 093000)
     {
     
PlaySound(@"C:\your file path here")
     } 
If it does work and you want an opening and closing bell sound, try this:

 
Code
                            
protected override void OnBarUpdate()
if(
ToTime(Time[0]) == 093000 || ToTime(Time[0]) == 160000)
     {
     
PlaySound(@"C:\your file path here")
     } 
Good luck,
Dave


Reply With Quote
  #4 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 801

That might be something you want to do outside Ninja to keep it out of the Ninja thread and memory pool. You could do it in Outlook or many of the third-party Windows alarm clock programs, for example.

If you like the ATT Text to Speech voices you can do countdowns to open/close of different markets.

AT&T Labs Natural Voices Text-to-Speech Demo


Reply With Quote
  #5 (permalink)
 
spinnybobo's Avatar
 spinnybobo 
Crete, IL/USA
 
Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
Posts: 173 since Aug 2009
Thanks Given: 105
Thanks Received: 61

wow Max, I never even thought of that. great idea. is it hard to do for outlook? does it requre code?

thanks


Follow me on X Started this thread Reply With Quote
  #6 (permalink)
 
spinnybobo's Avatar
 spinnybobo 
Crete, IL/USA
 
Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
Posts: 173 since Aug 2009
Thanks Given: 105
Thanks Received: 61

thank you for the code:-)


Follow me on X Started this thread Reply With Quote




Last Updated on July 28, 2010


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts