
“黄金ショートライン取引戦略”は,XAUUSD外貨通貨ペアに特化した1分間のショートライン取引戦略である.この戦略は,平均リアル波幅 (ATR) とインデックス移動平均 (EMA) の組み合わせを使用して,波動的な市場環境で価格変化を捉え,安定した利益を得るために,迅速な出入取引を実現する.戦略は,ストップ・ロー (SL) とストップ・ロー (TP) のレベルを動的に調整し,同時に,速い2つのEMAラインの交差信号を入場信号として使用し,リスクを制御しながら,収益を最大化することを目指す.
この戦略は以下の原則に基づいています.
策略はPine Scriptで書かれていて,主なロジックは以下の通りです.
全体として,この戦略は,技術指標の有機的な組み合わせにより,短期間に価格変動を捉え,高周波取引を追求する投資家に適しています.
“ゴールド・ショートライン・トレーディング・ストラテジー”はATRとEMAの指数に基づく1分間のショートライン・トレーディング・ストラテジーで,ゴールド (XAUUSD) の取引に適用される.このストラップ・ストップ・ストップとトレンド・トラッキングの原理を利用して,価格の変動を迅速に捉え,明確な取引シグナル表示と固定比率の資金管理でリスクを制御する.このストラテジーの優点は,ショートライン・トレード,ダイナミックな調整と直観的なプレゼンテーションに適応することにあるが,同時に,頻繁に取引,波動的な市場誤導とパラメータの失敗などのリスクにも直面する.将来,トレンドフィルター,ダイナミックなパラメータの最適化,多周期確認,リスク管理の最適化,組み合わせ取引などの策略を完善化して,より安定した長期間の取引パフォーマンスを得ることができる.
/*backtest
start: 2024-02-27 00:00:00
end: 2024-03-28 00:00:00
period: 3h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("XAUUSD Scalper 1m Revisi", overlay=true)
// Menggunakan ATR untuk SL dan TP dinamis
float atr = ta.atr(14)
float slMultiplier = 30
float tpMultiplier = 30
float slPrice = atr * slMultiplier
float tpPrice = atr * tpMultiplier
// Menggunakan EMA untuk respons yang lebih cepat
int shortEmaLength = 14
int longEmaLength = 28
emaShort = ta.ema(close, shortEmaLength)
emaLong = ta.ema(close, longEmaLength)
// Kondisi untuk entry
longCondition = ta.crossover(emaShort, emaLong)
shortCondition = ta.crossunder(emaShort, emaLong)
// Fungsi untuk menggambar garis stop loss dan take profit
drawLines(entryPrice, isLong) =>
slLevel = isLong ? entryPrice - slPrice : entryPrice + slPrice
tpLevel = isLong ? entryPrice + tpPrice : entryPrice - tpPrice
// line.new(bar_index, slLevel, bar_index + 1, slLevel, width=2, color=color.red)
// line.new(bar_index, tpLevel, bar_index + 1, tpLevel, width=2, color=color.green)
// Plot panah untuk entry dan menggambar garis SL dan TP
if (longCondition)
// label.new(bar_index, low, "⬆️", color=color.green, size=size.large, textcolor=color.white, style=label.style_label_up)
strategy.entry("Long", strategy.long)
strategy.exit("Exit Long", "Long", loss=slPrice, profit=tpPrice)
drawLines(close, true)
if (shortCondition)
// label.new(bar_index, high, "⬇️", color=color.red, size=size.large, textcolor=color.white, style=label.style_label_down)
strategy.entry("Short", strategy.short)
strategy.exit("Exit Short", "Short", loss=slPrice, profit=tpPrice)
drawLines(close, false)