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 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-10-2007, 05:07 PM   #1
SuzyG
 
Join Date: Nov 2006
Location: , ,
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Hi

I have put FirstTickOfBar in the OnBarUpdate event of my indicator. I get the following error:

"The name 'FirstTickOfBar' does not exist in the current context."

Is this available in strategies only and not indicators? If so, what will give me a similar result? I tried using Bars.PercentComplete, but it didn't work out.

Thank you. SuzyG


SuzyG is offline  
Reply With Quote
Old 02-11-2007, 02:45 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Post imported post

Yes only on strategies. You would have to check when the CurrentBar value changes, that will be the first tick of bar.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 02-11-2007, 04:03 AM   #3
SuzyG
 
Join Date: Nov 2006
Location: , ,
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

I found an example of youranswer here:

http://ninjatrader.mywowbb.com/view_...ght=CurrentBar

Thanks.
SuzyG 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


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