I'm trying to make my first strategy. The main idea is current tick is higher than previous and previous is higher than tick before this. But but it doesn't work when I use Strategy Analyzer. The is no trades.
And some questions: For this strategy should I use in parameters window Type: Ticks, Value: 1, Min. bars required: 3, right? Stoploss and profittarget, is this value in ticks?
protected override void Initialize() { CalculateOnBarClose = false; } /// <summary> /// Called on each bar update event (incoming tick) /// </summary> protected override void OnBarUpdate() { if (Close[CurrentBar] < Close[CurrentBar-1]) return; if ((Close[CurrentBar] > Close[CurrentBar-1]) && (Close[CurrentBar-1] > Close[CurrentBar-2])) { EnterLong(); } }
Comment