Class AtrTransactionCosts
- Namespace
- Balsam.TransactionCosts
- Assembly
- Balsam.Backtester.dll
Calculates slippage for market and stop orders as a percent of average true range.
public class AtrTransactionCosts : TransactionCostModel, ICloneable
- Inheritance
-
AtrTransactionCosts
- Implements
- Inherited Members
- Extension Methods
Properties
AtrLength
Gets/sets the length of the atr calculation.
public int AtrLength { get; set; }
Property Value
Coefficient
Gets/sets the coefficient to multiplied by Atr.
public double Coefficient { get; set; }
Property Value
Commission
Gets/sets the commission per share/contract in local currency terms.
public double Commission { get; set; }
Property Value
MinimumTicks
Gets/sets the minimum number of ticks.
public double MinimumTicks { get; set; }
Property Value
Methods
OnCalculate(ITrade)
Sets slippage based on Atr.
protected override void OnCalculate(ITrade trade)
Parameters
trade
ITrade