BarsSinceEntry

The Bars Since Entry function counts the number of bars since the entry signal was generated.

Example: Trade System with the entry signal BarsSinceEntry(@,0,All,ThisTradeOnly)

Bars Since Entry Parameters

Parameter

Description

Entry Offset

Allows you to specify which event starts the count:

Zero = Last Event

One = Second-to-Last Event

Two = Third-to-Last Event

Entry Type

Specifies the type of entry to apply the trade system function to. Choices include: All Entries, Open Entries, Closed Entries or Oldest Open Entry.

Which Trades

Specify which trades begin the count:

All Trades =  total of the corresponding values of all trade system’s trades

Long Trades =  total of the corresponding values for trades that are set to Use as Long

Short Trades =  total of the corresponding values for trades that are set to Use as Short

This Trade Only = this specific trade only

Specific trade name = a specific trade, identified by name