
이 전략은 RSI와 EMA 지표를 사용하여 진입과 출구를 결정한다. 그것은 곰 시장에서 잘 작동하여 하위 반전 기회를 잡을 수 있다.
이 전략은 다음과 같은 구매 및 판매 조건에 기반합니다.
구매 조건:
판매 조건:
이런 식으로 하락시 구매하고, 반동시 높은 가격에 팔아, 하위 반동 기회를 잡을 수 있다.
이 전략은 다음과 같은 장점을 가지고 있습니다.
이 전략에는 다음과 같은 위험도 있습니다.
매개 변수 최적화 전략을 조정하거나, 다른 지표와 결합하여 다공간 구조를 판단할 수 있다.
이 전략은 다음과 같은 방향으로 최적화될 수 있습니다.
이 캡처 하위 전략은 전체적으로 논리적으로 명확하며, 불시장에서 더 잘 작동할 수 있다. 매개 변수를 조정하고 최적화하면 더 큰 공간이 있으며, 더 나은 재검토 지표를 얻을 수 있다. 그러나 실적 과정에서 위험도 주의해야 하며, 손실 상황을 완전히 피할 수 없다.
/*backtest
start: 2023-11-14 00:00:00
end: 2023-11-21 00:00:00
period: 1m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Coinrule
//@version=5
strategy("V3 - Catching the Bottom",
overlay=true)
showDate = input(defval=true, title='Show Date Range')
timePeriod = time >= timestamp(syminfo.timezone, 2022, 4, 1, 0, 0)
notInTrade = strategy.position_size <= 0
//==================================Buy Conditions============================================
//RSI
length = input(14)
vrsi = ta.rsi(close, length)
buyCondition1 = vrsi < 40
//RSI decrease
decrease = 3
buyCondition2 = (vrsi < vrsi[1] - decrease)
//sellCondition1 = request.security(syminfo.tickerid, "15", buyCondition2)
//EMAs
fastEMA = ta.sma(close, 50)
slowEMA = ta.sma(close, 100)
buyCondition3 = ta.crossunder(fastEMA, slowEMA)
//buyCondition2 = request.security(syminfo.tickerid, "15", buyCondition3)
if(buyCondition1 and buyCondition2 and buyCondition3 and timePeriod)
strategy.entry(id='Long', direction = strategy.long)
//==================================Sell Conditions============================================
sellCondition1 = vrsi > 65
EMA9 = ta.sma(close, 9)
EMA50 = ta.sma(close, 50)
sellCondition2 = ta.crossover(EMA9, EMA50)
if(sellCondition1 and sellCondition2 and timePeriod)
strategy.close(id='Long')
//Best on: ETH 5mins (7.59%), BNB 5mins (5.42%), MATIC 30mins (15.61%), XRP 45mins (10.14%) ---> EMA
//Best on: MATIC 2h (16.09%), XRP 15m (5.25%), SOL 15m (4.28%), AVAX 5m (3.19%)