PROTECTED SOURCE SCRIPT
[Aegis]DCA grid Strategy for Crypto

### **Crypto Market Long-Only Strategy (DCA with Risk Mitigation)**
This strategy is a Long-only approach, often using a Dollar-Cost Averaging (DCA) method for staggered entries. It is designed to mitigate the risk of being unable to exit a position for a prolonged period, which typically occurs when a series of initial DCA entries result in a losing trade.
The strategy has the following characteristics:
#### **1. Markets**
* Trade in highly liquid Perpetual Futures markets for cryptocurrencies.
#### **2. Position Sizing**
The initial entry quantity is determined by setting the **Initial Entry Ratio** in the input values.
* If the **Subsequent Entry Multiplier** is 1, the maximum position size upon final entry is determined by:
$$\text{Initial Entry Quantity} \times \text{Number of Entries}$$
* If the **Subsequent Entry Multiplier** is $x$, the maximum position size is determined by the following cumulative sum:
$$\text{1st Entry Quantity} + (\text{1st Entry Quantity} \times x) + (\text{2nd Entry Quantity} \times x) + \dots + ((\text{n-1)th Entry Quantity} \times x)$$
#### **3. Entries**
* The **1st Entry** is determined by the **Entry Sensitivity**. The first entry is automatically calculated based on an oversold condition; setting a higher sensitivity value will trigger the 1st entry in a more significant oversold situation.
* Entries from the **2nd Entry onwards** are made sequentially based on the generated **Grid Spacing**.
* The **Grid Spacing** is calculated as an equal interval:
$$\text{Grid Spacing} = \frac{\text{Final Entry Distance}}{(\text{Number of Entries} - 1)}$$
#### **4. Exits**
This strategy **does not distinguish between Stop-Loss and Take-Profit**. All entered quantities are liquidated simultaneously upon mean reversion. This transaction may result in either a loss or a profit. Generally:
* If the price recovery is rapid, the trade finishes with a profit.
* If the price recovery is slow, the trade finishes with a loss.
Therefore, the **'resilience' or 'recovery speed'** of the underlying asset significantly influences the long-term performance of the strategy.
크립토 시장에 특화된 Long only전략입니다. DCA 방식의 분할 매수 전략이 대체로 이익 거래가 아닌 경우, 장기간 탈출하지 못할 리스크를 보완한 전략입니다.
이 전략은 다음과 같은 특징을 가지고 있습니다.
##### 1. 시장 (Markets)
• 유동성이 풍부한 코인 무기한 선물 시장에서 거래한다.
##### 2. 포지션 크기 (Position Sizing)
인풋 값에 최초진입비율을 설정함으로써 1차 진입의 수량이 결정됩니다.
- 추가 진입배수가 1일 때, 최대 진입 시 포지션 크기는 "1차 진입수량 * 진입횟수"에 의해 결정됩니다.
- 추가 진입배수가 x일때,
1차진입물량 + (1차진입 물량 * x) + (2차진입 물량 * x) ..... + (n-1)차 진입물량 * x 의 방식으로 최대 진입 시 포지션 크기가 결정 됩니다
##### 3. 진입 (Entries)
- 1차 진입은 진입 둔감도에 의해 결정됩니다. 1차 진입은 과매도 상황을 자동적으로 계산하여 결정되며, 둔감도를 높은 값으로 설정하면 더 큰 과매도 상황에서 1차 진입이 결정됩니다.
- 2차 이후의 진입은 생성된 그리드 간격에 의해 순차적으로 진입하게 됩니다.
- 그리드 간격은 최종 진입 간격 / (진입 횟수 - 1) 으로 등간격으로 이루어집니다.
##### 4. 청산 (Exits)
이 전략은 손절과 익절을 구분하지 않습니다. 평균 회귀를 하는 경우 진입한 모든 물량을 일시에 청산하며, 이 거래는 손실 거래일 수도, 이익 거래일 수도 있습니다. 일반적으로, 가격 회복이 빠르게 되는 경우 이익 거래로 마무리되고, 가격 회복이 느린 경우 손실 거래로 마무리되기 때문에, 장기적으로 종목의 '회복탄력성'이 전략의 성과에 영향을 줄 수 있습니다.
This strategy is a Long-only approach, often using a Dollar-Cost Averaging (DCA) method for staggered entries. It is designed to mitigate the risk of being unable to exit a position for a prolonged period, which typically occurs when a series of initial DCA entries result in a losing trade.
The strategy has the following characteristics:
#### **1. Markets**
* Trade in highly liquid Perpetual Futures markets for cryptocurrencies.
#### **2. Position Sizing**
The initial entry quantity is determined by setting the **Initial Entry Ratio** in the input values.
* If the **Subsequent Entry Multiplier** is 1, the maximum position size upon final entry is determined by:
$$\text{Initial Entry Quantity} \times \text{Number of Entries}$$
* If the **Subsequent Entry Multiplier** is $x$, the maximum position size is determined by the following cumulative sum:
$$\text{1st Entry Quantity} + (\text{1st Entry Quantity} \times x) + (\text{2nd Entry Quantity} \times x) + \dots + ((\text{n-1)th Entry Quantity} \times x)$$
#### **3. Entries**
* The **1st Entry** is determined by the **Entry Sensitivity**. The first entry is automatically calculated based on an oversold condition; setting a higher sensitivity value will trigger the 1st entry in a more significant oversold situation.
* Entries from the **2nd Entry onwards** are made sequentially based on the generated **Grid Spacing**.
* The **Grid Spacing** is calculated as an equal interval:
$$\text{Grid Spacing} = \frac{\text{Final Entry Distance}}{(\text{Number of Entries} - 1)}$$
#### **4. Exits**
This strategy **does not distinguish between Stop-Loss and Take-Profit**. All entered quantities are liquidated simultaneously upon mean reversion. This transaction may result in either a loss or a profit. Generally:
* If the price recovery is rapid, the trade finishes with a profit.
* If the price recovery is slow, the trade finishes with a loss.
Therefore, the **'resilience' or 'recovery speed'** of the underlying asset significantly influences the long-term performance of the strategy.
크립토 시장에 특화된 Long only전략입니다. DCA 방식의 분할 매수 전략이 대체로 이익 거래가 아닌 경우, 장기간 탈출하지 못할 리스크를 보완한 전략입니다.
이 전략은 다음과 같은 특징을 가지고 있습니다.
##### 1. 시장 (Markets)
• 유동성이 풍부한 코인 무기한 선물 시장에서 거래한다.
##### 2. 포지션 크기 (Position Sizing)
인풋 값에 최초진입비율을 설정함으로써 1차 진입의 수량이 결정됩니다.
- 추가 진입배수가 1일 때, 최대 진입 시 포지션 크기는 "1차 진입수량 * 진입횟수"에 의해 결정됩니다.
- 추가 진입배수가 x일때,
1차진입물량 + (1차진입 물량 * x) + (2차진입 물량 * x) ..... + (n-1)차 진입물량 * x 의 방식으로 최대 진입 시 포지션 크기가 결정 됩니다
##### 3. 진입 (Entries)
- 1차 진입은 진입 둔감도에 의해 결정됩니다. 1차 진입은 과매도 상황을 자동적으로 계산하여 결정되며, 둔감도를 높은 값으로 설정하면 더 큰 과매도 상황에서 1차 진입이 결정됩니다.
- 2차 이후의 진입은 생성된 그리드 간격에 의해 순차적으로 진입하게 됩니다.
- 그리드 간격은 최종 진입 간격 / (진입 횟수 - 1) 으로 등간격으로 이루어집니다.
##### 4. 청산 (Exits)
이 전략은 손절과 익절을 구분하지 않습니다. 평균 회귀를 하는 경우 진입한 모든 물량을 일시에 청산하며, 이 거래는 손실 거래일 수도, 이익 거래일 수도 있습니다. 일반적으로, 가격 회복이 빠르게 되는 경우 이익 거래로 마무리되고, 가격 회복이 느린 경우 손실 거래로 마무리되기 때문에, 장기적으로 종목의 '회복탄력성'이 전략의 성과에 영향을 줄 수 있습니다.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode usar ele livremente e sem nenhuma limitação – saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode usar ele livremente e sem nenhuma limitação – saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.