
この記事では,ラガエル・トランスフォーメーションに基づく相対的に強い指標 (RSI) の最適化策について詳しく見ていきます.この戦略は,RSIの感性を強化するために,ラガエル・トランスフォーメーションのを高度な数学ツールを使用して,市場価格の変化により迅速に反応します.
ラガエル変換RSI指標は,ラガエルフィルターを使用することで,より短いデータ長さで高効率の指標を作成できます. この戦略の核心は,ラガエル変換を使用して価格の配列を処理し,四つのレベルのラガエル線 ((xL0,xL1,xL2,xL3) を得ることです.gamma市場動向を分析するための計算を行う.
策略は,市場の強弱を判断するためにCU (累積上昇値) とCD (累積下降値) を使用する.CUとCDの計算は,ラゲル線の相対的な位置に基づいている.この方法は,RSI値が価格変化をより迅速に反映できるようにし,トレーダーに適切な取引信号を提供します.
取引シグナルは,RSI値とユーザが定義した買入と売却の境界 ((BuyBandとSellBand)) を比較して生成されます. RSI値が買入の境界を超えると,戦略は多めにすることをお勧めします.
gamma国境の買取と売却gamma価値と売買の限界全体的に見ると,ラガエル変数に基づくRSI最適化戦略は,革新的な高効率の取引ツールである.その主な利点は,市場の変化とパラメータの高度なカスタマイズ性に対する迅速な反応である.しかし,どの取引戦略と同様に,特に波動性の高い市場環境では,リスクも伴う.この戦略の効果を最大化するために,トレーダーは,他の技術分析ツールと細心のパラメータ調整を組み合わせて行うべきです.全体的に,この戦略は,短期および中期市場機会を探しているトレーダーに価値のあるツールを提供します.
/*backtest
start: 2022-11-15 00:00:00
end: 2023-11-21 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 01/09/2017
// This is RSI indicator which is more sesitive to price changes.
// It is based upon a modern math tool - Laguerre transform filter.
// With help of Laguerre filter one becomes able to create superior
// indicators using very short data lengths as well. The use of shorter
// data lengths means you can make the indicators more responsive to
// changes in the price.
//
// You can change long to short in the Input Settings
// WARNING:
// - For purpose educate only
// - This script to change bars colors.
////////////////////////////////////////////////////////////
strategy(title="Laguerre-based RSI", shorttitle="Laguerre-RSI")
gamma = input(0.5, minval=-0.1, maxval = 0.9)
BuyBand = input(0.8, step = 0.01)
SellBand = input(0.2, step = 0.01)
reverse = input(false, title="Trade reverse")
hline(BuyBand, color=green, linestyle=line)
hline(SellBand, color=red, linestyle=line)
xL0 = (1-gamma) * close + gamma * nz(xL0[1], 1)
xL1 = - gamma * xL0 + nz(xL0[1], 1) + gamma * nz(xL1[1], 1)
xL2 = - gamma * xL1 + nz(xL1[1], 1) + gamma * nz(xL2[1], 1)
xL3 = - gamma * xL2 + nz(xL2[1], 1) + gamma * nz(xL3[1], 1)
CU = (xL0 >= xL1 ? xL0 - xL1 : 0) + (xL1 >= xL2 ? xL1 - xL2 : 0) + (xL2 >= xL3 ? xL2 - xL3 : 0)
CD = (xL0 >= xL1 ? 0 : xL1 - xL0) + (xL1 >= xL2 ? 0 : xL2 - xL1) + (xL2 >= xL3 ? 0 : xL3 - xL2)
nRes = iff(CU + CD != 0, CU / (CU + CD), 0)
pos = iff(nRes > BuyBand, 1,
iff(nRes < SellBand, -1, nz(pos[1], 0)))
possig = iff(reverse and pos == 1, -1,
iff(reverse and pos == -1, 1, pos))
if (possig == 1)
strategy.entry("Long", strategy.long)
if (possig == -1)
strategy.entry("Short", strategy.short)
barcolor(possig == -1 ? red: possig == 1 ? green : blue )
plot(nRes, color=red, title="Laguerre-based RSI")