I'm trying to write a simple script that identifies consecutive bars with highs of the same price value using the strategy wizard.
The code is as follows:
protectedoverridevoid OnBarUpdate()
{
// Condition set 1
if (High[0] == High[1])
{
DrawArrowDown("My down arrow" + CurrentBar, false, 0, High[0], Color.Red);
}
}
But I get the error:
'The name "CandleStickPattern" does not exist in the current context'
What am I doing wrong?

Comment