
GBS 고저점 확인 전략은 가격의 고저점 변화에 기반하여 거래 기회를 포착하는 전략이다. 이 전략은 특정 고점과 저점 형태를 식별하여, 고점이 깨지면 더 많이 입점하고, 낮은 곳이 떨어지면 평점이다. 이 전략의 주요 아이디어는 가격의 변동 법칙을 이용하여, 상대적으로 높은 곳에서 입점하고, 상대적으로 낮은 곳에서 평점하고, 이를 통해 가격 차이의 이익을 얻는다.
이 전략의 핵심은 잠재적인 진입점과 진출점을 식별하는 것이다. 진입 조건은 현재 고점은 이전 고점보다 낮고, 이전 고점은 이전 두 고점보다 높다는 것이다.[1] and high[1] > high[2]) ᅳ 이 조건이 충족되면, 진입 최고점을 표시하고 그 수준에 녹색 선을 그립니다. 구매 조건은 기록된 진입 최고점이 ((entryHigh) 존재하며, 현재 최고점은 그 수준을 돌파하고 진입 최고점보다 낮은 오픈 가격입니다.
출구 조건은 입구 조건과 비슷하며, 현재 낮은 점은 이전 낮은 것보다 높고, 이전 낮은 점은 이전 두 개의 낮은 것보다 낮다.[1] and low[1] < low[2]) ᆞ 이 조건이 충족되면 출구 낮은 지점을 표시하고 이 수준에 빨간 선을 그립니다. 판매 조건은 기록된 출구 낮은 지점이 ((exitLow) 존재하며, 현재 낮은 지점은 이 수준보다 떨어지고 개시 가격은 출구 낮은 지점보다 높습니다.
GBS 고저점 확인 전략은 가격 고저점 형태를 기반으로 한 거래 전략으로, 특정 입출장 조건을 식별하여 가격 격차 기회를 포착한다. 이 전략의 장점은 그것의 단순성과 직관성에 있다. 그러나 동시에, 잘못된 신호와 위험 제어 조치의 부재와 같은 몇 가지 잠재적인 위험도 존재한다. 이 전략을 더 개선하기 위해, 다른 기술 지표와 결합하여 손실 중지 장치를 도입하는 것을 고려할 수 있으며, 매개 변수를 최적화한다.
/*backtest
start: 2023-04-22 00:00:00
end: 2024-04-27 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("GBS TOP BOTTOM Confirmed", overlay=true)
// Entry condition
var float entryHigh = na
var line entryLine = na
entryCondition = high < high[1] and high[1] > high[2]
if (entryCondition)
entryHigh := high[1]
// entryLine := line.new(bar_index - 1, entryHigh, bar_index + 10, entryHigh, color=color.green)
// Buy condition based on nearest entry
buyCondition = not na(entryHigh) and high > entryHigh and open < entryHigh
// Exit condition
var float exitLow = na
var line exitLine = na
exitCondition = low > low[1] and low[1] < low[2]
if (exitCondition)
exitLow := low[1]
// exitLine := line.new(bar_index - 1, exitLow, bar_index + 10, exitLow, color=color.red)
// Sell condition based on nearest exit
sellCondition = not na(exitLow) and low < exitLow and open > exitLow
// Strategy logic
strategy.entry("Buy", strategy.long, when = buyCondition)
strategy.close("Buy", when = sellCondition)
// Plot tiny dot above high[1] for entry condition
plotshape(series=entryCondition, title="Entry Dot", color=color.rgb(3, 99, 5), style=shape.circle, size=size.tiny, location=location.abovebar, offset=-1)
// Plot tiny dot below low[1] for exit condition
plotshape(series=exitCondition, title="Exit Dot", color=color.rgb(107, 3, 3), style=shape.circle, size=size.tiny, location=location.belowbar, offset=-1)
// Plot buy and sell signals
plotshape(series=buyCondition, title="Buy Signal", color=color.blue, style=shape.triangleup, size=size.small, location=location.abovebar, text="Buy")
plotshape(series=sellCondition, title="Sell Signal", color=color.orange, style=shape.triangledown, size=size.small, location=location.belowbar, text="Sell")