I tried a very simple strategy like
protected override void OnStateChange(){
if (State == State.SetDefaults){
Description = @"Enter the description for your new custom Strategy here.";
Name = "MyCustomStrategy";
TrendStrength = 4;
}
else if (State == State.DataLoaded){
_candlestickPattern = CandlestickPattern(ChartPattern.BullishEngulfing, TrendStrength);
AddChartIndicator(_candlestickPattern);
_sma = SMA(10);
AddChartIndicator(_sma);
}
}
protected override void OnBarUpdate(){
Print(_candlestickPattern.PatternFound[0]);
I must be missing something too basic or what?

Comment