IsRemoveLastBarSupported

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Bars Type >

IsRemoveLastBarSupported

Previous page Return to chapter overview Next page

Definition

Determines if the bars type can use the RemoveLastBar() method when true, otherwise an exception will be thrown. Bar Types which use remove last bar concepts CANNOT be used with Tick Replay, and as a result Tick Replay will be disabled on the UI when IsRemoveLastBarSupported is set to true.

 

Note:  This property is read-only, but may be overridden in a custom bar type.

 

 

Syntax

IsRemoveLastBarSupported

 

Property value

A bool determining if the BarsType can remove the last; default value is false.

 

Examples

ns


// allows RemoveLastBar() to be called

public override bool IsRemoveLastBarSupported { get { return true; } }