
テスラ超トレンド戦略は,テスラの株式または他の関連資産のための取引シグナルを生成するためのカスタマイズされた取引ビュー戦略スクリプトである. この戦略は,潜在的な多頭と空頭の機会を識別するために,複数の技術指標と条件を組み合わせている.
この戦略は以下の主要な指標に基づいています.
超トレンド指数:超トレンド指標は,価格データと平均真面目範囲を組み合わせて,価格トレンドの顕著な方向を識別する. 戦略は,デフォルトの長さ10の超トレンド指標を使用して,多頭または空頭トレンドを判断する.
RSI: 比較的強い指標で戦略は,異なる周期 (21,3,10,28) のRSI条件を用いて,市場の超買超売状態を評価する.これらのRSI条件は,潜在的な取引信号の強さを確認するのに役立ちます.
平均方向性指数 ((ADX):平均方向指数は,トレンドの強さを測定するために使用されます. ADX信号の滑らかさとDI長さを微調整するためにカスタマイズできるパラメータがあります.
トランザクションロジック:
観客は”いいね”と答えました.次の条件が同時に満たされると,多入場シグナルが生成される:
終了信号:任意の条件が満たされた場合,平仓は多頭探求する.
この戦略の利点は以下の通りです.
この戦略には以下のリスクもあります.
この戦略は,以下の点で最適化できます.
総じて,テスラの超トレンド戦略は,複数の指標の組み合わせで強い傾向を判断し,高品質の入場と退出点を特定することを目標としています.単一の指標と比較して,この戦略は,ノイズ信号をフィルターし,傾向が明確で強いときに取引します.しかし,戦略の最適化とリスク管理は,依然として慎重に行われ,歴史データパフォーマンスに盲目的に信頼することはできません.継続的なテストと調整により,この戦略は,トレンドのテスラまたは他の品種の有利なツールになる可能性があります.
/*backtest
start: 2023-09-29 00:00:00
end: 2023-10-29 00:00:00
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// © cjones0313
//@version=5
strategy("TSLA 1.8k Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// a measure of volatility, default 10 - measured over 10 bars
// modifying the value > 10 results in a smoother supertrend line, filter out noise but slower response to price changes
// modifying the value < 10 results in faster response in price changes, but may result in more false signals
atrPeriod = input(19, "ATR Length")
// sets factor for supertrend line made up of price and ATR, this determines how much weight is given to each, default 3.0
// increasing the value > 3.0 results in faster response in price changes, but may result in more false signals
// decreasing the value results in filtering out noise, but may miss smaller price movements
factor = input.float(3.0, "Factor", step = 0.01)
// direction = 1 bullish, -1 bearish
[_, direction] = ta.supertrend(factor, atrPeriod)
adxlen = input(7, title="ADX Smoothing")
dilen = input(7, title="DI Length")
dirmov(len) =>
up = ta.change(high)
down = -ta.change(low)
plusDM = na(up) ? na : (up > down and up > 0 ? up : 0)
minusDM = na(down) ? na : (down > up and down > 0 ? down : 0)
truerange = ta.rma(ta.tr, len)
plus = fixnan(100 * ta.rma(plusDM, len) / truerange)
minus = fixnan(100 * ta.rma(minusDM, len) / truerange)
[plus, minus]
adx(dilen, adxlen) =>
[plus, minus] = dirmov(dilen)
sum = plus + minus
adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen)
sig = adx(dilen, adxlen)
if ta.change(direction, 1) < 0 and ta.rsi(close, 21) < 75 and ta.rsi(close, 3) > 65 and ta.rsi(close, 28) > 49 and sig > 21
strategy.entry("Long Entry", strategy.long)
if ta.change(direction, 1) > 0 or ta.rsi(close, 10) < 42
strategy.close("Long Entry")