SECTORLONGPOSITIONS

Top  Previous  Next

Keyword Description

Category-related.

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

 

 

 

l

 

 

Syntax

SECTORLONGPOSITIONS

       

Return Value

Returns the number of long positions currently held in the same (commodity or stock) SECTOR set as the trade being presented for initial sizing.

Example

Sample code

IF SECTORLONGPOSITIONS > 3 THEN NEWSHARES = MY_POSITION_SIZE