Position

Abbreviation:
Category: Trading Strategy: Information
Input Parameters:

Name Range Default
Trading Strategy
# Postions Ago Int >= 0 0

 
Calculation:

For the current position (# positions ago = 0), the value of is 1 if the current position is long, 0 if no position exists, and -1 if the current position is short. For previous positions (# positions ago >= 1), the value of is 1 if the position was long and -1 if the position was short.

 
Discussion:

Indicates whether previous positions were long or short. Very useful when creating custom entry signals, trailing stops, and exit signals for a trading strategy.
 

Was this article helpful?

Related Articles