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 Jonker, 04-27-2024, 01:19 PM
|
3 responses
21 views
0 likes
|
Last Post Today, 05:45 PM | ||
Started by businessman1929, 04-29-2024, 01:28 PM
|
2 responses
21 views
0 likes
|
Last Post Today, 05:38 PM | ||
Started by bltdavid, 03-27-2023, 05:32 AM
|
18 responses
346 views
0 likes
|
Last Post
by ETFVoyageur
Today, 05:28 PM
|
||
Started by NM_eFe, Today, 05:15 PM
|
0 responses
4 views
0 likes
|
Last Post
by NM_eFe
Today, 05:15 PM
|
||
Started by vitaly_p, Today, 05:09 PM
|
0 responses
4 views
0 likes
|
Last Post
by vitaly_p
Today, 05:09 PM
|
Comment