![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Nov 2006
Location: , ,
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Yes only on strategies. You would have to check when the CurrentBar value changes, that will be the first tick of bar.
Ray
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Join Date: Nov 2006
Location: , ,
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
|
I found an example of youranswer here:
http://ninjatrader.mywowbb.com/view_...ght=CurrentBar Thanks. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|