Announcement
Collapse
No announcement yet.
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:
http://www.ninjatrader-support.com/v...ead.php?t=8600
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 jonfan45, Today, 06:06 PM
|
0 responses
8 views
0 likes
|
Last Post
![]()
by jonfan45
Today, 06:06 PM
|
||
Started by rustyspring, Today, 05:15 PM
|
0 responses
9 views
0 likes
|
Last Post
![]()
by rustyspring
Today, 05:15 PM
|
||
Started by xulu13, Today, 05:01 PM
|
0 responses
12 views
0 likes
|
Last Post
![]()
by xulu13
Today, 05:01 PM
|
||
Started by Pbarrionuevo, Today, 04:30 PM
|
0 responses
9 views
0 likes
|
Last Post
![]()
by Pbarrionuevo
Today, 04:30 PM
|
||
Started by vantojo, Today, 01:39 PM
|
0 responses
20 views
0 likes
|
Last Post
![]()
by vantojo
Today, 01:39 PM
|
Comment