New to WL and have already searched the forum and not found an answer. How do I change the chart type on FRED data? I found where I can edit the bar type but when I change it from Line to Bar the FRED data still displays as a Line chart. Thanks in advance for your help!
Rename
Welcome! As far as I know, FRED returns a single value. Isn't it? So in our Fred indicator it's always O=H=L=C.
Click the indicator label. You can change the FRED plot to Histogram, for example.
Thanks for your prompt reply. Using the Edit feature on the FRED data it will not change to a bar chart. For instance, I would like to see a Weekly Bar showing the OHLC. Why don't the other bar types work? I do see that it can be changed to a Histogram.
WL doesn't have the capability to show an indicator as a weekly OHLC bar chart. Interesting idea though!
Is there a workaround you can envision? Seems relatively straightforward for the chart to be able to be set to Bars because the daily data is in the FRED feed.
No, honestly it’s never been requested or come up before in WL’s 23 year history. I’ll tag this as a Feature Request for future development.
I should not have said there was NO workaround. If you don't mind dipping into code here is an Initialize method that will do it:
CODE:
public override void Initialize(BarHistory bars) { BarHistory daily = GetHistoryUnsynched(bars.Symbol, HistoryScale.Daily); Fred ur = Fred.Series(daily, "UNRATE", false, "Levels (No transformation)"); BarHistory bh = new BarHistory("Daily", HistoryScale.Daily); for (int n = 0; n < ur.Count; n++) bh.Add(ur.DateTimes[n], ur[n], ur[n], ur[n], ur[n], 0); BarHistory urWeekly = BarHistoryCompressor.ToWeekly(bh); urWeekly = BarHistorySynchronizer.Synchronize(urWeekly, bars); PlotBarHistory(urWeekly, "UR Weekly", WLColor.Aqua); }
Your Response
Post
Edit Post
Login is required