Dan
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Scaling problem
Collapse
X
-
Scaling problem
I was working on a multi-color version of volume and discovered the histogram bars cross the upper threshold of the panel and the y axis is below 1. All bars are the same visible size since I cannot see the tops.Thinking I did something wrong I made a copy of the VolumeUpDown indicator, removed one of the plots and handling of the plot (reminiscent of NT6.5) and attempted to change the colors of the single plot with PlotBrushes. The new indicator performs exactly the same as the original project. What am I doing wrong?
DanTags: None
- Likes 1
-
Originally posted by eDanny View PostI was working on a multi-color version of volume and discovered the histogram bars cross the upper threshold of the panel and the y axis is below 1. All bars are the same visible size since I cannot see the tops.Thinking I did something wrong I made a copy of the VolumeUpDown indicator, removed one of the plots and handling of the plot (reminiscent of NT6.5) and attempted to change the colors of the single plot with PlotBrushes. The new indicator performs exactly the same as the original project. What am I doing wrong?
Dan
AddPlot(new Pen(Brushes.Transparent, 2), PlotStyle.Bar, "UpDnVolume");
Line should not use a transparent color to start. Try using a visable color as your over-write it in the OnBarUpdate, but NT8 may have decided to ignore scaling since it sees the chart might be transparent(doesn't check for this to change later after historical/realtime data starts to flow).
Change it to:
AddPlot(new Pen(Brushes.Red, 2), PlotStyle.Bar, "UpDnVolume");
and try again.
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rocketman7, Today, 09:41 AM
|
4 responses
15 views
0 likes
|
Last Post
by rocketman7
Today, 02:56 PM
|
||
Started by selu72, Today, 02:01 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by WHICKED, Today, 02:02 PM
|
2 responses
13 views
0 likes
|
Last Post
by WHICKED
Today, 02:15 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
8 responses
21 views
0 likes
|
Last Post
by f.saeidi
Today, 01:55 PM
|
||
Started by Mikey_, 03-23-2024, 05:59 PM
|
3 responses
56 views
0 likes
|
Last Post
by Sam2515
Today, 01:47 PM
|
Comment