da420078
 ( 36.91% )
- ago
In V6, there was a "PlotSymbol" command that was useful to plot an external symbol in the current chart style, e.g. candlesticks.
How is this accomplished in V7?
Thank you for your time.
0
693
Solved
8 Replies

Reply

Bookmark

Sort
Glitch8
 ( 7.81% )
- ago
#1
Use GetHistory to get an external symbol history, and PlotBarHistory to plot it. Unlike in WL6, in WL7 you can even optionally specify a specific chart style to plot it in. Example:

CODE:
using WealthLab.Backtest; using WealthLab.Core; using System.Drawing; namespace WealthScript1 { public class MyStrategy : UserStrategyBase { //Initialize public override void Initialize(BarHistory bars) {          BarHistory qqq = GetHistory(bars, "QQQ");          PlotBarHistoryStyle(qqq, "Bars", "Heikin Ashi", Color.Navy); } //Execute public override void Execute(BarHistory bars, int idx) { } } }
0
Best Answer
da420078
 ( 36.91% )
- ago
#2
Thanks Glitch.
How do I get, say, moving averages to appear as overlays on that same plot?
Thanks again.
0
da420078
 ( 36.91% )
- ago
#3
I also need to be able to see the OHLC values when hovering over an external symbol bar. How does that work in 7?
0
- ago
#4
QUOTE:
How do I get, say, moving averages to appear as overlays on that same plot?

By specifying the paneTag for both calls:

CODE:
public virtual void PlotIndicator(IndicatorBase ib, Color color = default(Color), PlotStyles? plotStyle = null, bool suppressLabels = false, string paneTag = null))
0
da420078
 ( 36.91% )
- ago
#5
Thank you, Eugene.
Wish this was more intuitive, but as long as we get where we're trying to go is all that matters.

I also need to be able to see the OHLC values when hovering over an external symbol bar. How does that work in 7?
0
- ago
#6
You're able to see the Close value of the external symbol by hovering over a bar.
0
da420078
 ( 36.91% )
- ago
#7
Sure the Close is there, but also I need the OHL values, which don't appear as they did in V6 when hovering over a bar. This is for the external symbol pane, not the main pane.
0
Glitch8
 ( 7.81% )
- ago
#8
It’s currently not possible, but you can open a #FeatureRequest to get his feature on the development list.
0

Reply

Bookmark

Sort