Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Plot Scaling
Collapse
X
-
Sorry, let me clarify.
I have created an indicator which makes specific calculations and I'd like to have the range of the scale for it to be the same as what the range of prices in the price area are. The indicator is in its own panel.
For instance, currently its range is 0 to 1300 or so. I'd like the range to be 1295 to 1300 (what currently shows in the price panel) so that I can actually see the differences in the bars.
Hope this makes sense.
Comment
-
Hello,
I recommend building in some logic that would limit the values to what you want and dynamically change the range to what you want to see on the chart. Something like this:
First - find the min and max on the chart that you want to base your range on and assign it to a variable (range_min and range_max in my example below). You may find this link helpful:
Next do something like this:
if(val > range_max)
{
val = range_max;
}
if(val < range_min)
{
val = range_max;
}
//then plot valDenNinjaTrader Customer Service
Comment
-
Hello,
The panel will auto scale to the values you have visually displayed in the panel.
For example place a default CCI indicator on a chart and scroll back and forth on the chart: the CCI panel min and max of the panel will change given the displayed values.
Therefore, if you limit your plots to certain values or not the panel will scale to display those plots.DenNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by SnailHorn, 03-27-2024, 09:54 AM
|
4 responses
16 views
0 likes
|
Last Post
by SnailHorn
Today, 09:19 AM
|
||
Started by ninza33, Today, 07:16 AM
|
3 responses
16 views
0 likes
|
Last Post
by ninza33
Today, 09:01 AM
|
||
Started by foxtrott21, Today, 08:27 AM
|
0 responses
3 views
0 likes
|
Last Post
by foxtrott21
Today, 08:27 AM
|
||
Started by jaypelle3, Today, 08:26 AM
|
0 responses
3 views
0 likes
|
Last Post
by jaypelle3
Today, 08:26 AM
|
||
Started by linkcou, Today, 07:01 AM
|
2 responses
24 views
0 likes
|
Last Post
by bltdavid
Today, 08:25 AM
|
Comment