Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Add-On Development

Add-On Development General NinjaScript development questions.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 07-04-2018, 04:52 PM   #1
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 733
Thanks: 30
Thanked 60 times in 52 posts
Default ChartScale Right Y Axis Labels

Hi,

I have two questions:

1. The chart right Y axis scale shows grid lines and Y axis values. Is there any way to determine the difference between consecutive grid line values? For example, if the chart right Y axis shows the values 2102.50 to 2106 (as seen in the ChartScale MinValue section of the Help Guide) in increments of 0.50, I'd like to know that the increments on the chart right Y axis are 0.50. Is there any way to get this info?

2. What is the algorithm used by NT to determine what value labels should be placed on the chart right Y axis? In other words, whether the right Y axis labels should be in increments of 1 point, or 3 points, or 2 ticks. Clearly this depends on the MaxMinusMin value in some way amongst other things.

Any insight would be appreciated. Thank you.
Zeos6 is offline  
Reply With Quote
Old 07-05-2018, 02:09 PM   #2
NinjaTrader_Jesse
NinjaTrader Customer Service
 
NinjaTrader_Jesse's Avatar
 
Join Date: Mar 2014
Location: Denver, CO
Posts: 4,867
Thanks: 30
Thanked 1,245 times in 1,164 posts
Default

Hello Zeos6,

Thank you for the post.

I wanted to confirm what you are asking for the first item.

You are saying that when you scale to use those prices the right-hand scale becomes 0.50 increments, is this correct? And you want to know that the increments are now in .50 based on whatever the scale is at that time, is this correct?

Regarding the second question, I don't have the exact logic at my disposal to answer here but I can ask development for further insight if the question warrants it. The PriceMarker is affected by multiple items which can include the TickSize of the instrument being used, overriding the FormatPriceMarker override and likely other cases. Is there a specific goal you have in mind or could you provide any more detail surrounding this question?

I look forward to being of further assistance.
NinjaTrader_Jesse is offline  
Reply With Quote
Old 07-05-2018, 04:38 PM   #3
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 733
Thanks: 30
Thanked 60 times in 52 posts
Default

Hi Jesse,

Thank you for your reply.

With respect to the first question,
Quote:
You are saying that when you scale to use those prices the right-hand scale becomes 0.50 increments, is this correct? And you want to know that the increments are now in .50 based on whatever the scale is at that time, is this correct?
Yes, that is correct.

Regarding the second question,
Quote:
I don't have the exact logic at my disposal to answer here but I can ask development for further insight if the question warrants it.
This was an alternative approach to try and get at the first question.

Ultimately I am interested to know the chart resolution granularity as given by the value increments on the chart right Y axis. Any way to get this programmatically?
Zeos6 is offline  
Reply With Quote
Old 07-06-2018, 12:59 PM   #4
NinjaTrader_Jesse
NinjaTrader Customer Service
 
NinjaTrader_Jesse's Avatar
 
Join Date: Mar 2014
Location: Denver, CO
Posts: 4,867
Thanks: 30
Thanked 1,245 times in 1,164 posts
Default

Hello Zeos6,

Thank you for confirming that for me, I now have a good idea of the question.

I will need to further research this to see what could be used to access this value. I am unaware of an existing property that equals that value.

Once I have a more clear picture of what is required here I will reply back.


I look forward to being of further assistance.
NinjaTrader_Jesse is offline  
Reply With Quote
Old 07-06-2018, 03:37 PM   #5
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 733
Thanks: 30
Thanked 60 times in 52 posts
Default

Thanks Jesse, appreciate it.
Zeos6 is offline  
Reply With Quote
Old 07-10-2018, 07:09 AM   #6
NinjaTrader_Jesse
NinjaTrader Customer Service
 
NinjaTrader_Jesse's Avatar
 
Join Date: Mar 2014
Location: Denver, CO
Posts: 4,867
Thanks: 30
Thanked 1,245 times in 1,164 posts
Default

Hello Zeos6,

Thank you for waiting.

After further research, it would appear that this is not directly possible due to the internal methods needed to calculate the values for automatic scaling.

Is there anything further that you detail about what your end goal is surrounding the scale values? I understand you want to know the granularity, are you trying to know how scaled in or out the chart panel is or do you need the formatted prices specifically?

Perhaps this can be approached from a different angle, and if not I would have more details to file a feature request.

I look forward to being of further assistance.
NinjaTrader_Jesse is offline  
Reply With Quote
Old 07-10-2018, 08:37 AM   #7
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 733
Thanks: 30
Thanked 60 times in 52 posts
Default

Thank you for following up Jesse. I appreciate it.

I actually need the granularity of the pricing. It would be nice to know the interval value between successive prices on the right Y scale. The prices are already calculated so it's simply a matter of exposing those calculated values.
Zeos6 is offline  
Reply With Quote
Old 07-10-2018, 09:52 AM   #8
NinjaTrader_Jesse
NinjaTrader Customer Service
 
NinjaTrader_Jesse's Avatar
 
Join Date: Mar 2014
Location: Denver, CO
Posts: 4,867
Thanks: 30
Thanked 1,245 times in 1,164 posts
Default

Hello Zeos6,

Thank you for the reply.

I have put in a feature request for the value to be exposed. The tracking ID is SFT-3347

I look forward to being of further assistance.
Last edited by NinjaTrader_Jesse; 07-10-2018 at 12:55 PM.
NinjaTrader_Jesse is offline  
Reply With Quote
Old 07-11-2018, 12:03 PM   #9
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 733
Thanks: 30
Thanked 60 times in 52 posts
Default

Thanks Jesse. Appreciate it.
Zeos6 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
chartScale.MaxValue, chartScale.MinValue in NT7? topor Indicator Development 2 02-28-2018 05:18 AM
How do I set the color of the Y and X axis labels? NinjaCustomer Platform Technical Support 1 12-19-2014 02:41 PM
Changing the size of axis labels? achalk Platform Technical Support 2 02-25-2013 10:10 PM
time labels on x-axis clearpicks Platform Technical Support 4 04-21-2010 02:09 PM
Display time labels on x-axis in a better way clearpicks Suggestions And Feedback 3 04-27-2008 08:58 PM


All times are GMT -6. The time now is 04:55 PM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content.