MINCONTRACTS

Top  Previous  Next

Keyword Description

Sets lower limit for reducing position sizes

Class

Directive

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

 

 

 

l

l

 

Syntax

MINCONTRACTS

 

Example

Sample code

MINCONTRACTS = 1 ' will override any attempt by code to resize to zero

 

ThumbTack white

When deciding upon a position size for a child account Mechanica performs a ratio calculation.

  a. if MINCONTRACTS = n is present AND n is greater than zero AND the parent trade is Not Rejected, n is the number of contracts that will be  assigned to the child.

  b. if MINCONTRACTS = n is present AND the parent trade is Rejected then the child trade is also rejected regardless of the value of mincontracts.

  c. if MINCONTRACTS = n is Not present OR it Is present and n is zero the ratioed position size (which can =zero) is assigned to the child.