
이 전략의 주요 아이디어는 미래의 가격의 방향을 판단하기 위해 미래의 가격의 확장선을 그리고, 현재의 가격과 그 라인의 관계를 결합하는 것입니다. 가격이 확장선보다 높거나 낮을 때, 그에 따라 더 많이 또는 더 많이 할 수 있습니다.
미래 가격 연장선 (Future Lines of Demarcation, FLD) 은 미래의 특정 기간 동안의 중간 가격, 최고 가격 또는 최저 가격을 나타냅니다. 이 전략은 FLD를 사용하여 가격의 미래 움직임을 판단합니다.
이 전략의 주요 장점은 다음과 같습니다.
이 전략의 주요 위험은 다음과 같습니다.
이 전략은 다음과 같은 측면에서 최적화될 수 있습니다.
이 전략은 가격과 이동 후의 미래 가격 연장선을 비교하여 가격의 미래 움직임 방향을 판단하는 전형적인 트렌드 추적 전략에 속한다. 전체적으로 논리가 명확하고 이해하기 쉽고, 실행 위험은 낮다. 매개 변수 최적화 및 지표 조합을 통해 더 나은 전략 효과를 얻을 수 있다.
/*backtest
start: 2023-01-29 00:00:00
end: 2024-02-04 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
////////////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 15/02/2017
// An FLD is a line that is plotted on the same scale as the price and is in fact the
// price itself displaced to the right (into the future) by (approximately) half the
// wavelength of the cycle for which the FLD is plotted. There are three FLD's that can be
// plotted for each cycle:
// An FLD based on the median price.
// An FLD based on the high price.
// An FLD based on the low price.
///////////////////////////////////////////////////////////////////
strategy(title="FLD's - Future Lines of Demarcation", overlay=true)
Period = input(title="Period", defval=40)
src = input(title="Source", defval=hl2)
reverse = input(false, title="Trade reverse")
FLD = src
pos = iff(FLD[Period] < close , 1,
iff(FLD[Period] > close, -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(FLD, title="FLD", style=line, linewidth=1, color=black, offset = Period)