![]() |
|
|||||||
| Suggestions And Feedback New feature suggestions and feedback. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jul 2008
Posts: 271
Thanks: 4
Thanked 7 times in 7 posts
|
I'd like to have a way to display the bar number. This would really facilitate debugging my scripts. Either one of these would make me happy:
Right now I must insert the line Print(CurrentBar.ToString()+" "+Time[0].ToString()) in my indicator to get a list of bar numbers in the output window corresponding to each date/time. It would be nice not to have to do that. -A |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi anachronist,
There is at least one script in the file sharing section that does this. Check the 6.5 and 7 indicators section and let me know if you're not able to find it. You can also custom program a solution here, by using CurrentBar in a DrawText() statement. http://www.ninjatrader.com/support/h...7/drawtext.htm
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jul 2008
Posts: 271
Thanks: 4
Thanked 7 times in 7 posts
|
Thanks for the advice. The point is to be able to hover the mouse over a bar and see the number. DrawText() won't work for that purpose.
I guess I could write a simple indicator that displays the bar number; then it would show up in the Data Box. -A |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CurrentBar: Flag to note when bar number first increments to next bar | tonyh | General Programming | 2 | 05-09-2011 11:45 AM |
| display account number ? | ssylwester | Charting | 1 | 03-15-2011 08:46 AM |
| Bar Number | gviand | General Programming | 3 | 12-02-2010 01:56 AM |
| Relative Bar Number | WolliWilli | Version 7 Beta General Questions & Bug Reports | 3 | 11-09-2009 08:21 AM |
| Bar index from the session or plot bar number on an intraday chart | eneratom | General Programming | 1 | 02-27-2008 06:48 AM |