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 cre8able, Today, 01:16 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:30 PM | ||
Started by chbruno, 04-24-2024, 04:10 PM
|
3 responses
48 views
0 likes
|
Last Post Today, 01:29 PM | ||
Started by samish18, Today, 01:01 PM
|
1 response
6 views
0 likes
|
Last Post Today, 01:25 PM | ||
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM |
Comment