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
Drawing Hollow Candlesticks
Collapse
X
-
Drawing Hollow Candlesticks
I would like to create an indicator whose sole function is to draw hollow candlesticks that are outlined with green for up-bars, and outlined with red for down-bars. This seems so simple, yet I can’t seem to get it to work, for the bar colors set by the Data Series don’t get changed. Can you help me get on track?Tags: None
-
Hello DenMan,
Thanks for writing in and I am happy to assist you.
Please try the following code
Code:if (Close[0] >= Open[0]) CandleOutlineColorSeries[0] = Color.Green; else CandleOutlineColorSeries[0] = Color.Red; BarColorSeries[0] = Color.Transparent;
Please let me know if I can assist you any further.JoydeepNinjaTrader Customer Service
-
Originally posted by DenMan View PostOne further question. When I include this indicator in my workspace, it puts it in a new panel. Is there code to always include this in the Data Series panel, or do I have to manually change that when the indicator is included?
ref: http://www.ninjatrader.com/support/h...ml?overlay.htm
Comment
-
Hollow bar of plotstyle
Is anyone here knows how to make the plotstyle bar solid to plotstyel bar hollow?
Comment
-
Hello,
NinjaTrader_JoyDeep's example would accomplish this within by creating an indicator that uses the example:Code:if (Close[0] >= Open[0]) CandleOutlineColorSeries[0] = Color.Green; else CandleOutlineColorSeries[0] = Color.Red; BarColorSeries[0] = Color.Transparent;
Cody B.NinjaTrader Customer Service
Comment
-
That is not what I mean to make a hollow. I know already how to make the price bars to hollow bars. What I want is the plot style of a plot series. For example I have a dataseries name VOL so to plot the values of it is VOL.set(1023.50); and I have set the plotstyle to be a solid bar . I want to make the plotstyle of VOL to a hollow bars instead of a solid bars.
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Felix Reichert, 04-26-2024, 02:12 PM
|
9 responses
50 views
0 likes
|
Last Post Today, 03:56 PM | ||
Started by AaronKoRn, 04-27-2024, 09:49 PM
|
3 responses
31 views
0 likes
|
Last Post
by AaronKoRn
Today, 03:47 PM
|
||
Started by f.saeidi, Today, 07:07 AM
|
6 responses
19 views
0 likes
|
Last Post
by f.saeidi
Today, 03:31 PM
|
||
Started by cmtjoancolmenero, Today, 02:31 PM
|
6 responses
15 views
0 likes
|
Last Post Today, 03:29 PM | ||
Started by Graci117, Yesterday, 11:40 PM
|
5 responses
27 views
0 likes
|
Last Post Today, 03:29 PM |
Comment