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 08-19-2011, 08:10 AM   #1
Aithin
Member
 
Join Date: Apr 2008
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Question Simple Indicator Help

I sat down this morning to try and write up a very simple indicator ... but my brain does not seem to be working correctly :)

I'm looking for an indicator that will plot a bar in a new panel. All I'm after is a bar that counts up to the current Range Bar setting. For example ...

I'm using 15 range bars on a chart. I'm looking for something that will plot the current bars high - the current bars low. I need this to happen while the bar is forming. This way I can easily see when a new bar is about to start. (because the bar plotted will grow to 15)

If anyone can help me with this it would be great!

Thanks
Aithin is offline  
Reply With Quote
Old 08-19-2011, 08:23 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Aithin, before delving into developing a custom study for this task: have you tried the NT inbuild RangeCounter indicator already?
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 08-19-2011, 08:45 AM   #3
Aithin
Member
 
Join Date: Apr 2008
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default Thanks

Wow, My brain is REALLY not working this morning LoL

Thank you very much.

I'm going to look into the code and see if I can figure out how to get an alert in there, and also how to make it bigger.

So, I'll probably be back with those two questions


Thanks Again
Aithin is offline  
Reply With Quote
Old 08-19-2011, 08:53 AM   #4
Aithin
Member
 
Join Date: Apr 2008
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default Yup, I've got those two questions above

Can anyone help me at add alert to the RangeCounter Indicator? I would like an alert when the Range Remaining is less than or equal to 3.

Also, if I could make the text larger that would be great.

Thanks
Aithin is offline  
Reply With Quote
Old 08-19-2011, 09:19 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Aithin, we could unfortunately not modify this for you, but you would look to work the call to Alert() in :

http://www.ninjatrader.com/support/h.../nt7/alert.htm

rangeCount is the current seen range count you would like to compare to your threshold to.

The font is set in the variables section, you can change the type and size here.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 08-19-2011, 09:21 AM   #6
Aithin
Member
 
Join Date: Apr 2008
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default Thanks, and one more question

Since the indicator is locked I am unable to save changes I make to it. However, when I save it has something else I get namespace errors. I'm assuming since there are now two indicators with the same name. How do I get around this?

Thanks
Aithin 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
Simple indicator occam General Programming 7 08-20-2010 11:28 AM
Simple Indicator on Indicator throws exception aslane Version 7 Beta General Questions & Bug Reports 2 02-04-2010 09:14 AM
Simple Indicator heyligerb Indicator Development 2 08-31-2009 09:54 AM
Help with simple indicator JT454 Indicator Development 7 10-07-2008 11:09 AM
Simple Indicator Ronin General Programming 11 09-18-2007 08:30 AM


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