NinjaTrader Support Forum  

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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-27-2010, 05:26 AM   #1
mefTrader
Senior Member
 
Join Date: Nov 2009
Posts: 205
Thanks: 0
Thanked 0 times in 0 posts
Default Have a chart trigger an event based on computer clock?

In general I suppose events are based on one bar to the next transition or tick by tick

I am trying to get a historical chart to save an image(pre market hours) but I need an event to happen to trigger that event

Some background - this is based on post http://www.ninjatrader-support2.com/...774#post154774

I can get the image to save if a transition from 1 min bar to the next is generated but premarket hours I need another event to happen - can I detect a change on say the computer clock to trigger the event?
mefTrader is offline  
Reply With Quote
Old 03-27-2010, 05:27 AM   #2
mefTrader
Senior Member
 
Join Date: Nov 2009
Posts: 205
Thanks: 0
Thanked 0 times in 0 posts
Default

When I apply the SendMailChartLib() Strategy it causes the image to saved initially but the process of applying a strat to a chart seems blank the chart and hence the image saved is a blank chart???
mefTrader is offline  
Reply With Quote
Old 03-27-2010, 11:51 AM   #3
NinjaTrader_Tim
NinjaTrader Customer Service
 
NinjaTrader_Tim's Avatar
 
Join Date: Nov 2009
Location: Denver, CO
Posts: 1,424
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi mefTrader,

Please take a look at the following link for information on updating between incoming ticks.
http://www.ninjatrader-support2.com/...ead.php?t=5965
NinjaTrader_Tim is offline  
Reply With Quote
Old 03-28-2010, 12:13 PM   #4
mefTrader
Senior Member
 
Join Date: Nov 2009
Posts: 205
Thanks: 0
Thanked 0 times in 0 posts
Default

works like a gem thanks!
mefTrader is offline  
Reply With Quote
Reply

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
Want to check if the computer clock time is less than a specific time mefTrader Miscellaneous Support 1 01-21-2010 08:23 AM
Pop up a chart via a program trigger mtech Charting 3 09-16-2009 01:05 PM
How can I get the closing event of a chart rmk General Programming 1 02-02-2009 09:33 AM
Trigger a future, based on the index, possible? daxtrading SuperDOM and other Order Entry Windows 1 01-17-2009 12:46 PM
Computer clock setting markw Charting 1 01-03-2009 10:22 AM


All times are GMT -6. The time now is 09:13 PM.