![]() |
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 |
|
Junior Member
Join Date: Jul 2011
Posts: 5
Thanks: 2
Thanked 0 times in 0 posts
|
Hi,
for my discretionary strategy backtesting I have to quickly see some information about last displayed bar on the screen. When I'm browsing in history I always want to see these informations about last bar. I don't know where to get the reference to this bar. Thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
|
Welcome to our forums yaris - unfortunately accessing this info via a NinjaScript study would not be supported.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Bertrand for this post: |
|
|
|
#3 | |
|
Senior Member
|
Quote:
Last edited by koganam; 11-03-2011 at 03:31 PM.
Reason: Corrected punctuation
|
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2011
Posts: 5
Thanks: 2
Thanked 0 times in 0 posts
|
Thanks for reply. But how can I get the last bar displayed from indicator code? I'm looking in this.ChartControl properties, but I don't see anything usable.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2011
Posts: 5
Thanks: 2
Thanked 0 times in 0 posts
|
What I want to do, is the same as the small floating data window accessible by middle mouse button in chart, but always visible in top left corner of chart window and referenced to the right most displayed bar. Not to a position of cursor.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi Yaris,
It seems like a good idea. Unfortunately there are not supported NinjaScript properties for identifying the right-most displayed bar.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#7 | |
|
Senior Member
|
Quote:
![]()
|
|
|
|
|
|
The following 2 users say thank you to koganam for this post: |
|
|
|
#8 | |
|
Senior Member
Join Date: Feb 2008
Location: www.integratedtradingtech.com
Posts: 270
Thanks: 1
Thanked 79 times in 64 posts
|
Quote:
We have a new customizable DataBox that can be configured to do exactly what you're looking for. You can check it out and find out more information on our website to see if it meets your needs. Integrated Trading Technologies VT |
|
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Nov 2011
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
|
|
#10 |
|
Senior Member
|
|
|
|
|
|
|
#11 | |
|
Junior Member
Join Date: Jul 2011
Posts: 5
Thanks: 2
Thanked 0 times in 0 posts
|
Quote:
Thanks. I'm going to write some code, not post. DrawTextFixed("Bottom", High[this.Bars.Count - this.LastBarIndexPainted].ToString() + "\n" + Low[this.Bars.Count - this.LastBarIndexPainted].ToString() , TextPosition.TopLeft, Color.Black, textFont, Color.Transparent, Color.Transparent, 10 ); |
|
|
|
|
|
|
#12 | |
|
Senior Member
|
Quote:
|
|
|
|
|
|
The following user says thank you to koganam for this post: |
|
|
|
#13 |
|
Junior Member
Join Date: Jul 2011
Posts: 5
Thanks: 2
Thanked 0 times in 0 posts
|
Here is my solution and notes.
To show the databox after adding indicator I have to scroll chart. Sometimes textbox is not Invalidated (shows data for another bar), so I have to click anywhere in chart area. But it is good enough for me. ![]() COBC have to be TRUE. Unpredictability of LastBarIndexPainted is comming from textbox Invalidation.
Last edited by yaris; 11-04-2011 at 07:28 AM.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading most current bar visually displayed | shazzmoe | Indicator Development | 4 | 05-17-2011 02:34 PM |
| Update on Last Bar On Screen? | pacpac | Indicator Development | 1 | 03-16-2011 05:17 AM |
| displayed data on screen | Turtle Trader | Version 7 Beta General Questions & Bug Reports | 3 | 04-20-2010 09:02 AM |
| Suggestion regarding tool bar at top of screen | toddaclark | Version 7 Beta General Questions & Bug Reports | 5 | 12-04-2009 08:15 AM |
| 5 min Bar Color Displayed in Market Analyzer | mrlucky1x | Indicator Development | 1 | 01-26-2009 12:54 PM |