RemoveLastBar()

View as Markdown

Definition

Removes the last data point for the Bars Type. There may be cases where your custom bar type may need to amend the last values added on a bar that has already closed. Calling RemoveLastBar() will remove the last points for that bar type and allow you to call AddBar() with the updated values.

Syntax

RemoveLastBar(Bars bars)

Parameters

ParameterDescription
barsThe Bars object of your bars type

Examples

1RemoveLastBar(bars);