public class PriceMarketImpactLinear extends PriceMarketImpact
Constructor and Description |
---|
PriceMarketImpactLinear(AssetTransactionSettings ats,
double dblPermanentImpactFactor,
double dblTemporaryImpactFactor)
PriceMarketImpactLinear Constructor
|
Modifier and Type | Method and Description |
---|---|
static PriceMarketImpactLinear |
AlmgrenChriss(double dblPrice,
double dblDailyVolume,
double dblBidAskSpread)
Construct a Standard PriceMarketImpactLinear Instance
|
TransactionFunction |
permanentTransactionFunction()
Generate the Permanent Impact Transaction Function
|
TransactionFunction |
temporaryTransactionFunction()
Generate the Temporary Impact Transaction Function
|
ats, permanentImpactFactor, temporaryImpactFactor
public PriceMarketImpactLinear(AssetTransactionSettings ats, double dblPermanentImpactFactor, double dblTemporaryImpactFactor) throws java.lang.Exception
ats
- The Asset Transaction Settings InstancedblPermanentImpactFactor
- The Fraction of the Daily Volume that triggers One Bid-Ask of
Permanent Impact CostdblTemporaryImpactFactor
- The Fraction of the Daily Volume that triggers One Bid-Ask of
Temporary Impact Costjava.lang.Exception
- Thrown if the Inputs are Invalidpublic static final PriceMarketImpactLinear AlmgrenChriss(double dblPrice, double dblDailyVolume, double dblBidAskSpread)
dblPrice
- The Asset PricedblDailyVolume
- The Daily VolumedblBidAskSpread
- The Bid-Ask Spreadpublic TransactionFunction permanentTransactionFunction()
permanentTransactionFunction
in class PriceMarketImpact
public TransactionFunction temporaryTransactionFunction()
temporaryTransactionFunction
in class PriceMarketImpact