![]() |
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 |
|
Member
Join Date: Apr 2008
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
Aithin, before delving into developing a custom study for this task: have you tried the NT inbuild RangeCounter indicator already?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Apr 2008
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#4 |
|
Member
Join Date: Apr 2008
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Member
Join Date: Apr 2008
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |