COMMISSION

Top  Previous  Next

Keyword Description

Commission charged

Class

Expression

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

COMMISSION

 

Example

Sample code

COMMISSION = STORE[1] ' for futures different commission for different markets

OR

COMMISSION = 12.5     ' for futures same commission for all markets

OR

COMMISSION = .03      ' for stocks you might use percentage of the deal commission

OR

COMMISSION = 8        ' for stocks you might use flat (per transaction) commission

 

 

ThumbTack white

Commission can be set in code or it can be specified on Edit Page Properties in the Symbol Manager.  If both are used then the value assigned by this keyword takes precedence.

For futures, Mechanica charges full round turn, per contract, commission on entry day of a new trade or rollover trade so be sure to specify it as the round turn value. SLIPPAGE, on the other hand, is charged at full assigned value on entry and full assigned value on exit, including roll overs.

For stocks and mutual funds, if COMMISSION is assigned a value < 1 your system is charged a percentage of the deal amount based on the price and number of shares traded. If you set it to a value >= 1 your system is charged that flat amount per transaction.

Search on "Commission" to find other important information about how Mechanica handles the commission calculation.