RANDOMPRICE

Top  Previous  Next

Keyword Description

Random price

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

RANDOMPRICE

 

Return Value

Returns a random value between the day's high and low inclusive.

Example

Sample code

IF CLOSE[1] < MIN[L, 10, 2] THEN SELLIMIT = RANDOMPRICE

 

ThumbTack white

Having your system take trades at a random price on the entry or exit day is a good way to avoid accidental curve fitting or to introduce the element of uncertainty into a system.

 

See also:

RANDOMTRADE, RANDOMNUMBER