-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To make it explicit how to disable fess following other models with a "disable" section.
- Loading branch information
1 parent
2d83c4e
commit cfc2caa
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...hms/24 Reality Modeling/04 Transaction Fees/01 Key Concepts/05 Zero Transaction Fees.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<p>To model zero transaction fees, use the <a href='/docs/v2/writing-algorithms/reality-modeling/transaction-fees/supported-models'>ConstantFeeModel</a> with zero as <code>fee</code>.</p> | ||
|
||
<div class="section-example-container"> | ||
<pre class="csharp">public override Initialize() | ||
{ | ||
var security = AddEquity("SPY"); | ||
security.SetFeeModel(new ConstantFeeModel(fee: 0m)); | ||
}</pre> | ||
<pre class="python">def initialize(self): | ||
security = self.add_equity("SPY") | ||
security.set_fee_model(ConstantFeeModel(fee=0))</pre> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters