SHORT

Top  Previous  Next

Keyword Description

Trade entry price or direction

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

l

 

l

Syntax

SHORT, SHORT[n]  

Where n is an integer representing the desired number of days ago. Argument is optional.

Return Value

Returns the value at which a short trade was executed, or the integer value -1 if used in a position sizing statement.

Example

Sample code

IF SHORT[2] > 0 THEN .....

' If we were short 2 days ago then do something.

Sample code

IF DIRECTION = SHORT THEN .....

' If the trade currently being presented to a 

' position sizing filter is short, then do something.

 

ThumbTack white

There are 2 uses for SHORT. Most commonly, it is used to return the fact that you are or were long by returning the price where a trade was executed. Also it can be used as a position sizing tool to determine whether a trade being presented to a filter is short.  (In this case any use of the bracketed integer n would be meaningless.)

If the bracketed integer is greater than the Current day then  "Too Soon"  will be displayed in the Status Bar. If you want to return a value for SHORT on the Resources Page use SHORT[n]

See also:

LONG, DIRECTION