- ago
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!
1
488
Solved
7 Replies

Reply

Bookmark

Sort
- ago
#1
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.
0
Glitch8
 ( 12.10% )
- ago
#2
Click the indicator label. You can change the FRED plot to Histogram, for example.

0
- ago
#3
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.
0
Glitch8
 ( 12.10% )
- ago
#4
WL doesn't have the capability to show an indicator as a weekly OHLC bar chart. Interesting idea though!
0
- ago
#5
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.
0
Glitch8
 ( 12.10% )
- ago
#6
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.
0
Glitch8
 ( 12.10% )
- ago
#7
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); }


1
Best Answer

Reply

Bookmark

Sort