Skip to content

Commit 208365a

Browse files
committed
improve docs
1 parent 1a66589 commit 208365a

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

contracts/active-delta-neutral/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Delta Neutral Contract
22

3+
This contract implements an actively managed delta-neutral strategy utilizing the credit manager. Its primary goal is to maintain a market-neutral position by dynamically balancing long and short exposures via spot assets and perpetual futures, minimizing risk from price movements while capturing yield.
4+
35

46
## Core Concepts
57

contracts/active-delta-neutral/docs/entry_exit_model.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Delta-Neutral Entry/Exit Model
22

3-
This document describes a simple entry/exit model for delta-neutral trading strategies. It provides guidance on when to enter or exit positions based on price impact, funding rates, and borrowing costs.
3+
This document describes a simple entry/exit model for delta-neutral trading strategies. It provides guidance on when to enter or exit positions based on price execution, funding rates, borrowing costs, supply rates.
44

55
## Key Concepts
66

77
- **Price PnL**: The price difference between the spot and perpetual (perp) markets.
88
- **Long Position**: Short perp - Long spot (positive when shorts are higher).
9-
- **Short Position**: Spot - Perp (positive when spot is higher).
9+
- **Short Position**: Short spot - long Perp (positive when spot is higher).
1010

1111
- **Net yield**: The net cost or yield after considering all funding rates and borrow/supply rates.
12-
- **`K`** A constant that controls the sensitivity of the entry/exit model. The higher the value of `K`,
12+
- **`K`** A constant that controls the sensitivity of the entry/exit model. The higher the value of `K`, the less sensitive the model is to price pnl. A higher `K` means that the .
1313

1414
## Entry and Exit Criteria
1515

@@ -63,11 +63,14 @@ In the following chart we can see how the model works. Everything above the line
6363

6464
Everything below the trend line when the yield rate is below 0 is a signal to short.
6565

66-
Note : there might be a better model to have the long and short side independent configurations, with a base that is not 0
6766

6867
![Example](./img/entry_exit_model.png)
6968

69+
Possible alternative model could have a base that is not 0, and have individual distinct models for long and short.
7070

71+
Again, for longs everything below the line is a signal to long. For the short size, everything above the line is a signal to short.
72+
73+
![Example](./img/long_only_model.png) ![Example](./img/short_only_model.png)
7174

7275
## Usage Notes
7376

Loading
Loading

0 commit comments

Comments
 (0)