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 Waxavi, Today, 02:10 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:10 AM
|
||
Started by TradeForge, Today, 02:09 AM
|
0 responses
4 views
0 likes
|
Last Post
by TradeForge
Today, 02:09 AM
|
||
Started by Waxavi, Today, 02:00 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:00 AM
|
||
Started by elirion, Today, 01:36 AM
|
0 responses
4 views
0 likes
|
Last Post
by elirion
Today, 01:36 AM
|
||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
0 responses
4 views
0 likes
|
Last Post Today, 01:30 AM |
Comment