RemoveLastBar()
<< Click to Display Table of Contents >> RemoveLastBar() |
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.
Notes:•In order to use this method, the IsRemoveLastBarSupported method must be true. •RemoveLastBar() CANNOT be used with TickReplay |
RemoveLastBar(Bars bars)
bars |
The Bars object of your bars type |
RemoveLastBar(bars); |