RANDOMTRADE

Top  Previous  Next

Keyword Description

Execute a trade long or short at random

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

RANDOMTRADE

 

Return Value

Returns a random long or short trade at the specified price.

Example

Sample code

RANDOMTRADE = RANDOMPRICE

 

ThumbTack white

This could allow you to test an exit signal against a random entry.  It could also be used to test the robustness of a position sizing strategy.

 

See also:

RANDOMPRICE, RANDOMNUMBER