NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-24-2010, 09:29 AM   #1
DangerBoy
Senior Member
 
Join Date: Apr 2009
Location: UK
Posts: 191
Thanks: 1
Thanked 3 times in 3 posts
Default Pit Session Alert

Hi guys

Have I got this right below?

My chart is overridden to 24/7 but my instrument for example FESX is setup with Eurex Futures Template in the instrument manager as default, I want an alert to fire when the bar closes on my chart that matches the start time of the session start for the default session against the instrument in instrument manager. Effectively an alert whenver the active session begins for an instrument on a chart that is showing the full 24 hours spectrum. This is the code below I'm thinking will achieve this? Thanks

if(Time[0]==Instrument.MasterInstrument.Session.NextBeginTim e)
Alert(etc...)
DangerBoy is offline  
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pit Hand Signals rt-trader Miscellaneous Support 2 07-07-2009 05:12 AM
Continuous ES contract and Pit session Baruch Charting 3 03-12-2009 08:40 AM
Trading nymex gold - pit or future? cunparis Miscellaneous Support 1 01-03-2009 05:49 PM
Day/pit session data svuhmed Connecting 1 05-07-2008 05:29 AM
plotting pit times knightrider123 Charting 1 06-26-2007 07:04 AM


All times are GMT -6. The time now is 07:44 AM.