Code from QuickRef. 6 months 5 min backtest.
CODE:
public class MyStrategy : UserStrategyBase { public MyStrategy() : base() { StartIndex = 0; } public override void Initialize(BarHistory bars) { } public override void Execute(BarHistory bars, int idx) { if (CandleMethods.LongUpperShadow(bars, idx)) DrawBarAnnotation("L", idx, true, WLColor.Black, 10); if (CandleMethods.LongLowerShadow(bars, idx)) DrawBarAnnotation("L", idx, false, WLColor.Black, 10); if (CandleMethods.NoUpperShadow(bars, idx)) DrawBarAnnotation("N", idx, true, WLColor.Red, 10); if (CandleMethods.NoLowerShadow(bars, idx)) DrawBarAnnotation("N", idx, false, WLColor.Red, 10); } }
Rename
WL8 limits the number of drawn objects to 10,000 for efficiency sake.
Your Response
Post
Edit Post
Login is required