all i need is concept of how it can be done. i can program it out.. if its already there, let me know so i dont need to reinvest the wheel
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
how to use the Daily OHLC indicator as candle
Collapse
X
-
how to use the Daily OHLC indicator as candle
i use intraday charts and would like to see how to plot daily OHLC as cancle to see how the candle is evolving at the hourly snapshot. Can this be done? I use the daily OHLC as a line plot overlay on the hourly bars but really i would like to see the hourly snapshot of the daily bar
all i need is concept of how it can be done. i can program it out.. if its already there, let me know so i dont need to reinvest the wheelTags: None
-
Hi junkone, thanks for posting. The Spread indicator has a candle stick version. You can use this as an example of how to do this:
This is a conversion of the Spread Indicator with Candlesticks. Please contact the original author for any questions or comments.
Kind regards,
-ChrisL
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.Chris L.NinjaTrader Customer Service
-
Comment
-
Hi, the price scale is not formattable, but you can turn PaintPriceMarkers = true; then comment out the PlotBrushes[i][0] = Brushes.Transparent; and base.OnRender(chartControl, chartScale); to show the price markers in the price panel. This will show you the full number in the price panel.
Chris L.NinjaTrader Customer Service
Comment
-
[ATTACH]n1205429[/ATTACH] i think we are discussing varied points.
CurrentDayOHL uses a double to show the properties.
public Series<double> CurrentOpen
{
get { return Values[0]; }
}
As you can see from screenshot, the format displayed is 5 decimal places
I am assigning the same value to DailyBarsIntraday indicator.
DailyOpen[0] = CurrentDayOHL().CurrentOpen[0]; // line number 93
the properties is as follows
[Browsable(false)]
[XmlIgnore]
public Series<double> DailyOpen
{
get { return Values[3]; }
}
However the values shown is truncated to 3 decimal places.
This does not make sense. how do i fix it?
Comment
-
the code you attached made the difference. Now i could really use the candle stick option for the indicators plots. hopefully it can handle the scaling which is really off here.
public override string FormatPriceMarker(double price)
{
//Print(price);
return price.ToString("N5");
}
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
26 views
0 likes
|
Last Post
by wzgy0920
Today, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
32 views
0 likes
|
Last Post
by wzgy0920
Today, 10:33 PM
|
||
Started by wzgy0920, Yesterday, 09:53 PM
|
2 responses
49 views
0 likes
|
Last Post
by wzgy0920
Today, 10:29 PM
|
||
Started by Kensonprib, 04-28-2021, 10:11 AM
|
5 responses
191 views
0 likes
|
Last Post
by Hasadafa
Today, 10:19 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
11 responses
3,231 views
0 likes
|
Last Post Today, 08:07 PM |
Comment