Table of Contents

Class FillToExtremeTransactionCosts

Namespace
Balsam.TransactionCosts
Assembly
Balsam.Backtester.dll

Calculates slippage for stop orders based on percent of fill price to extreme of the bar. Market orders have fixed slippage.

public class FillToExtremeTransactionCosts : TransactionCostModel, ICloneable
Inheritance
FillToExtremeTransactionCosts
Implements
Inherited Members
Extension Methods

Properties

Coefficient

Gets/sets the coefficient used for stop orders.

public double Coefficient { get; set; }

Property Value

double

Commission

Gets/sets the commission per share/contract in local currency terms.

public double Commission { get; set; }

Property Value

double

MinimumTicks

Gets/sets the minimum ticks of slippage stop orders should have.

public double MinimumTicks { get; set; }

Property Value

double

Ticks

Get/sets the number of ticks of slippage to apply to market orders.

public double Ticks { get; set; }

Property Value

double

Methods

OnCalculate(ITrade)

Sets slippage depending on order type.

protected override void OnCalculate(ITrade trade)

Parameters

trade ITrade