
この戦略は,暗号通貨のショートライン取引のためのシンプルで効率的なクライプ戦略であり,中長期トレンド取引にも使用できます.その主要構成要素は,価格の揺動指標,指標,および損失の止まりのリスク管理機構です.
この戦略の条件は以下の通りです.
上記の3つの条件が同時に満たされている場合,複数入学を行う.
この戦略の条件は以下の通りです.
この戦略は,価格の動向と突破信号を判断する価格振動指数と指数を組み合わせて,価格上昇段階を効果的に捉えることができ,以下の利点があります.
この戦略は全体的に安定しているものの,注意すべきいくつかのリスクがあります.
ポジション保持周期を調整し,より多くの指標のフィルター信号を組み合わせ,パラメータの設定を最適化することによって,上記のリスクを防ぎ,解消することができる.
この戦略は,以下の方向で最適化できます.
以上のような最適化により,戦略の勝利率,収益レベル,安定性をさらに向上させることができます.
この戦略は全体的に簡潔で効果的であり,価格の上昇段階を捉えることができ,暗号通貨で良い収益の潜在性を有している.さらなる最適化の余地があるが,量的な取引の入門戦略としてすでに優れている.全体的に,この戦略は,高頻度の収益を追求する暗号通貨のショートラインとミッドライントレーダーに適している.
/*backtest
start: 2024-01-04 00:00:00
end: 2024-02-03 00:00:00
period: 1h
basePeriod: 15m
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/
// © exlux99
//@version=4
strategy(title="Crypto Price Scalper", shorttitle="Scalper Crypto", overlay=true)
inputcc = input(60, title="Number of candles")
low9=lowest(low,inputcc)
high9=highest(high,inputcc)
plotlow = ((close - low9) / low9) * 100
plothigh = ((close - high9) / high9) * 100
plotg = (plotlow +plothigh)/2
center=0.0
period_ = input(14, title="Length VORTEX", minval=2)
VMP = sum( abs( high - low[1]), period_ )
VMM = sum( abs( low - high[1]), period_ )
STR = sum( atr(1), period_ )
VIP = VMP / STR
VIM = VMM / STR
long= crossover(plotg,center) and close > high[2] and crossover(VIP,VIM)
short= crossunder(plotg,center) and crossunder(VIP,VIM)
tplong=input(0.1, title="TP Long", step=0.01)
sllong=input(0.1, title="SL Long", step=0.01)
strategy.entry("long",1,when=long)
strategy.exit("closelong", "long" , profit = close * tplong / syminfo.mintick, loss = close * sllong / syminfo.mintick, alert_message = "closelong")
strategy.close("long",when=short)