I am trying to develop my first indicator and got stuck with simple task -> when the high of the current bar is higher then previous draw an arrow:
protected override void OnBarUpdate() {
if (High[1]<High[0]) {
DrawArrowUp("UpArrow" + CurrentBar, false, 0, Low[0] - 1, Color.DarkGreen);
}
}
protected override void OnBarUpdate() {
if (High[0]<High[-1]) {
DrawArrowUp("UpArrow" + CurrentBar, false, 0, Low[0] - 1, Color.DarkGreen);
}
}

Comment