
この戦略は,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%)