
다중 공간 힘 전략은 알렉산더 엘더 박사가 개발한 것으로, 시장의 구매와 판매 압력을 엘더-레이 지표로 측정한다. 엘더-레이 지표는 일반적으로 3 화면 거래 시스템과 함께 사용되지만, 독립적으로도 사용할 수 있다.
알렉산더 엘더 박사는 13일 지수 이동 평균 ((EMA) 을 사용하여 시장 가치의 공감대를 나타냅니다. 다중 힘은 구매자가 가치 공감대보다 가격을 높일 수있는 능력을 나타냅니다. 공중 힘은 판매자가 평균 가치 공감대보다 가격을 낮출 수있는 능력을 나타냅니다.
다중력 (多頭力) 은 13일 EMA를 빼고 고점을 계산한다. 공중력 (空頭力) 은 13일 EMA를 빼고 저점을 계산한다.
이 전략은 공중력 지표를 계산하여 시장의 공중 상태를 판단한다.
다중 힘이 값보다 크면 다중 신호로, 공중 힘이 값보다 크면 공백 신호로. 반전 거래도 선택할 수 있다.
스톱로스를 설정하고, 이동 평균 주기를 최적화하고, 트렌드 지표와 결합하여 최적화할 수 있다.
다공간력 전략은 Elder-ray 지표를 통해 시장 다공간 상태를 판단하며, 간단하고 직관적이며, 파라미터가 구성할 수 있다. 그러나 잘못된 신호를 발생시키는 경향이 있으므로 추세 판단과 상쇄를 추가로 최적화해야 한다. 이 전략은 학습할 가치가 있지만, 직접 적용할 때는 신중해야 한다.
/*backtest
start: 2023-09-23 00:00:00
end: 2023-10-23 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version = 2
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 08/12/2016
// Developed by Dr Alexander Elder, the Elder-ray indicator measures buying
// and selling pressure in the market. The Elder-ray is often used as part
// of the Triple Screen trading system but may also be used on its own.
// Dr Elder uses a 13-day exponential moving average (EMA) to indicate the
// market consensus of value. Bull Power measures the ability of buyers to
// drive prices above the consensus of value. Bear Power reflects the ability
// of sellers to drive prices below the average consensus of value.
// Bull Power is calculated by subtracting the 13-day EMA from the day's High.
// Bear power subtracts the 13-day EMA from the day's Low.
//
// You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
// You can change long to short in the Input Settings
// Please, use it only for learning or paper trading. Do not for real trading.
////////////////////////////////////////////////////////////
strategy(title="Elder Ray (Bull Power) Strategy Backtest")
Length = input(13, minval=1)
Trigger = input(0)
reverse = input(false, title="Trade reverse")
hline(0, color=purple, linestyle=line)
xPrice = close
xMA = ema(xPrice,Length)
DayHigh = iff(dayofmonth != dayofmonth[1], high, max(high, nz(DayHigh[1])))
nRes = DayHigh - xMA
pos = iff(nRes > Trigger, 1,
iff(nRes < Trigger, -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=blue, title="Bull Power", style = histogram)