" ShowTransparentPlotsInDataBox = true; " and inserting the same line in the strategy code, the indicator's transparent plot is still not showing in the databox.
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
ShowTransparentPlotsInDataBox not working
Collapse
X
-
ShowTransparentPlotsInDataBox not working
I am trying to get the plots plotted by my strategy to show in the data box when they are set to transparent, but despite making a custom indicator with
" ShowTransparentPlotsInDataBox = true; " and inserting the same line in the strategy code, the indicator's transparent plot is still not showing in the databox.Tags: None
-
I'm not sure I follow: the syntax above is from NT8 help guide and it actually works, so you don't have to do anything.
Anyway, I figured out why mine didn't show up: the indicator was set to plot on a secondary series, which the strategies won't allow.
So this is a feature request you can add, please: for strategies to plot indicators applied to secondary series.
Comment
-
Really? I thought I read in the help guide that's not possible.
My code below won't plot other indicators than for the primary [0] series. Is there anything wrong with it?
The transparent plots show in the data box, but only for the primary [0] series and it makes no difference what colour I set for the [2] series indicators to plot, they don't show
Code:public class ATM2 : Strategy { private T3 T31b0; private T3 T32b0; private T3 T31b2; private T3 T32b2; private DMI DMI1; ... else if (State == State.Configure) { AddDataSeries(Data.BarsPeriodType.Tick, 1); AddDataSeries(Data.BarsPeriodType.Minute, 5); } else if (State == State.DataLoaded) { DMI1 = DMI(Closes[2], Convert.ToInt32(DmiPeriod)); T31b0 = T3(Closes[0], 5, 3, 0.7); T32b0 = T3(Closes[0], 8, 3, 0.7); T31b2 = T3(Closes[2], 5, 3, 0.7); T32b2 = T3(Closes[2], 8, 3, 0.7); T31b0.Plots[0].Brush = Brushes.Yellow; T32b0.Plots[0].Brush = Brushes.White; T31b2.Plots[0].Brush = Brushes.Transparent; T32b2.Plots[0].Brush = Brushes.Transparent; DMI1.Plots[0].Brush = Brushes.Transparent; AddChartIndicator(T31b0); AddChartIndicator(T32b0); AddChartIndicator(T31b2); AddChartIndicator(T32b2); AddChartIndicator(DMI1);
Comment
-
Hi,
I have the opposite issue. I would like my transparent plots NOT to appear in the DataBox. I setCode:ShowTransparentPlotsInDataBox = false
Comment
-
Hi, I never posted the feature request ID here, its SFT-4436. The property is working for my test script. Please see attached. Check what is different between this script and your script that is still showing the plot in the databox.
Kind regards.Attached FilesChris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by strategist007, Today, 07:51 PM
|
0 responses
2 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,968 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
4 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
||
Started by rhyminkevin, Today, 04:58 PM
|
4 responses
58 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
6 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
Comment