PDA

View Full Version : transparent property creating a bug


blarouche
10-05-2009, 12:45 PM
In version 6.5 for my Market Profile indicator I set the Color for down bars and color for up bars property to transparent to get rid of the bars so that I could see the indicator on the screen without bars behind.

When I do that in NT7 I get a price scale between 0 and 0.25 for ES.

Seems to be a bug...


Bernard

NinjaTrader_Ray
10-05-2009, 01:13 PM
In version 6.5 for my Market Profile indicator I set the Color for down bars and color for up bars property to transparent to get rid of the bars so that I could see the indicator on the screen without bars behind.

When I do that in NT7 I get a price scale between 0 and 0.25 for ES.

Seems to be a bug...


Bernard


This is expected.

- In NT7, transparent plots or series are excluded from calculating the y-axis range
- You workaround would be to use the panel fixed scale poperty settings OR
- Set the color of the bars to the color of the background OR
- Add two draw objects that define the upper/lower scale

These are off the top of my head.

blarouche
10-05-2009, 01:14 PM
Josh


Just following my instruction below :


File
New
Chart
ES 12-09
New

Choose ChartStyle : OHLC
Color for down bars : Transparent
Color for up bar : Transparent
OK


you should see a price range of 0 to 0.25 on the screen

Bernard

NinjaTrader_Josh
10-05-2009, 01:17 PM
Understood now, please see Ray's suggestions for the new options available to you.

blarouche
10-05-2009, 01:22 PM
Ray


I solved my problem the following way :


Just set the bar color to the background color.

That's a way to get the same result...


Bernard

whitmark
10-05-2009, 01:35 PM
This is expected.

- In NT7, transparent plots or series are excluded from the y-axis range
- You workaround would be to use the panel fixed scale poperty settings OR
- Set the color of the bars to the color of the background OR
- Add two draw objects that define the upper/lower scale

These are off the top of my head.

I recently had to deal with a similar situation in NT65 by attempting to push a transparent plot above/below the price action so the auto scaling would accommodate drawing object text and markers applied just above/below swing highs/lows. The challenges is drawing objects themselves don't engage the autoscaling, only price action and non-transparent plots will, and in NT65 there is no easy way to change colors bar-by-bar for these "chameleon plots" to deal with dynamic BackColor changes, etc just to get the scaling to work as desired. NT7 may hold more promise here, but ideally would like to set a y-offset for the autoscaling from the nearest price action or plot.

Whitmark

NinjaTrader_Ray
10-05-2009, 01:42 PM
The challenges is drawing objects themselves don't engage the autoscaling, only price action and non-transparent plots will

Can you clarify what you mean when you say that draw objects will not engage autoscale?

If I draw a square, set AutoScale for that square to true, then move the square up in my chart --> This sets the upper y-axis threshold.

whitmark
10-05-2009, 02:16 PM
Ray,

Here is a quick and dirty exhibit and sample strategy to clarify my comments. Having a way to ensure the y-axis will scale to all drawn objects on the chart would be nice.

Thanks.

NinjaTrader_Ray
10-05-2009, 02:17 PM
Ray,

Here is a quick and dirty exhibit and sample strategy to clarify my comments. Having a way to ensure the y-axis will scale to all drawn objects on the chart would be nice.

Thanks.


I see, so the problem is just that the text gets clipped, correct?

whitmark
10-05-2009, 02:25 PM
Yes, in NT7 the text gets clipped and in NT65 the drawing markers get clipped too . . . I need to do more testing to see what NT7 will do.

NinjaTrader_Ray
10-05-2009, 02:35 PM
Yes, in NT7 the text gets clipped and in NT65 the drawing markers get clipped too . . . I need to do more testing to see what NT7 will do.

If I manually draw text on the chart or if I call from a script in NT7, the top of the text does not get clipped.