- ago
My histograms are appearing as lines. Do I need to do something different?
CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; using WealthLab.Indicators; using System.Collections.Generic; namespace WealthScript5 { public class MyStrategy : UserStrategyBase { //create indicators and other objects here, this is executed prior to the main trading loop public override void Initialize(BarHistory bars) {          PlotIndicator(new PBSlowOsc(bars,14,5,3), WLColor.FromArgb(255,255,0,0), PlotStyle.Histogram); } //execute the strategy rules here, this is executed once for each bar in the backtest history public override void Execute(BarHistory bars, int idx) { if (!HasOpenPosition(bars, PositionType.Long)) { //code your buy conditions here } else { //code your sell conditions here } } //declare private variables below } }
0
549
Solved
1 Replies

Reply

Bookmark

Sort
- ago
#1
This is to be corrected in upcoming build 4:
https://www.wealth-lab.com/Discussion/WL8-PlotTimeSeries-PlotStyle-always-plots-a-line-7816
0
Best Answer

Reply

Bookmark

Sort