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 3,647 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 5 posts
    2. attach_file 1 attachments




 
Search this Thread

Opening Bell Program

  #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 Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
About a successful futures trader who didnt know anythin …
Psychology and Money Management
What broker to use for trading palladium futures
Commodities
 
  #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: 800

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 Twitter 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 Twitter Started this thread Reply With Quote




Last Updated on July 28, 2010


© 2024 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 - Privacy Policy - Downloads - Top
no new posts