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 algospoke, Yesterday, 06:40 PM
|
2 responses
23 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
45 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
21 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
181 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
Comment