렌코 반전 추적 전략


생성 날짜: 2023-09-15 15:53:40 마지막으로 수정됨: 2023-09-15 16:28:21
복사: 3 클릭수: 903
avatar of ChaoZhang ChaoZhang
1
집중하다
1617
수행원

전략 개요

렌코 역전 추적 전략은 렌코 그래프를 사용하여 시장의 역전을 판단하는 단선 전략이다. 그것은 인접한 렌코 색상의 변화를 모니터링하여 단기 역전 기회를 포착한다. 연속적으로 동일한 색상의 렌코가 나타나면 거래 신호가 발생한다.

전략 원칙

  1. 레코를 고치지 않는 전통을 사용한다.

  2. 은 은 은 은 은

  3. 현재 1 렌코와 이전 2 렌코의 색이 동일하며, 현재 렌코 색이 반전되면 신호가 발생한다.

  4. “이봐, 이봐, 이봐, 이봐, 이봐”

  5. 이 신호는 두 번 은 후 한 번 은 후 하락하는 신호입니다.

  6. 입장은 시장 가격 또는 상쇄 가격으로 선택할 수 있다.

  7. 정지 스톱 손실 지점은 Renko의 크기의 일정한 배수로 설정한다.

이 전략의 핵심은 렌코 색상 반전이 초래하는 단기 회귀 기회를 잡기 위한 것이다. 연속적으로 같은 색상의 렌코를 대표하는 추세가 형성되고, 다음 렌코 색상 변이는 가능한 반전을 예고한다.

렌코 크기와 스톱 스톱 로드 인수는 전략 효과를 최적화하기 위해 조정할 수 있다.

전략적 이점

  • 렌코가 직접 반전 메시지를 표시합니다.

  • 규칙은 간단하고 명확하며 작동하기 쉽습니다.

  • 다공간 기회 대칭

  • 렌코의 크기를 조정할 수 있습니다.

  • 스탠프 스탠프 리스크를 엄격하게 통제합니다.

위험 경고

  • 신호를 형성하기 위해서는 몇 개의 연속적인 렌코가 필요합니다.

  • 렌코의 규모는 수익과 인출에 직접적인 영향을 미칩니다.

  • 트렌드가 얼마나 지속될지 판단할 수 없습니다.

  • 연쇄 상쇄 손실이 발생할 수 있습니다.

요약하다

렌코 역전 추적 전략은 전통적인 기술 지표에 대한 혁신적인 사용을 통해 직접 렌코 변색을 통해 단기 역전 기회를 판단한다. 이 전략은 간단하고 실용적이며, 매개 변수를 조정하여 안정적인 수익을 얻을 수 있으며, 재검토 검증 및 실장 최적화 후 적용할 가치가 있다.

전략 소스 코드
/*backtest
start: 2023-09-07 00:00:00
end: 2023-09-08 18:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=3
//Simple Renko strategy, very profitable. Thanks to vacalo69 for the idea.
//Rules when the strategy opens order at market as follows:
//- Buy when previous brick (-1) was bearish and previous brick (-2) was bearish too and actual brick close is bullish
//- Sell when previous brick (-1) was bullish and previous brick (-2) was bullish too and actual brick close is bearish
//Rules when the strategy send stop order are the same but this time a stop buy or stop sell is placed (better overall results).
//Note that strategy open an order only after that condition is met, at the beginning of next candle, so the actual close is not the actual price.
//Only input is the brick size multiplier for stop loss and take profit: SL and TP are placed at (brick size)x(multiplier) Or put it very high if you want startegy to close order on opposite signal.
//Adjust brick size considering: 
//- Strategy works well if there are three or more consecutive bricks of same "color"
//- Expected Profit
//- Drawdown
//- Time on trade
//
//Study with alerts, MT4 expert advisor and jforex automatic strategy are available at request.
//

strategy("Renko Strategy Open_Close", overlay=true, calc_on_every_tick=true, pyramiding=0,default_qty_type=strategy.percent_of_equity,default_qty_value=100,currency=currency.USD)

//INPUTS
Multiplier=input(1,minval=0, title='Brick size multiplier: use high value to avoid SL and TP')
UseStopOrders=input(true,title='Use stop orders instead of market orders')

//CALCULATIONS
BrickSize=abs(open[1]-close[1])
targetProfit = 0
targetSL = 0

//STRATEGY CONDITIONS
longCondition = open[1]>close[1] and close>open and open[1]<open[2]
shortCondition = open[1]<close[1] and close<open and open[1]>open[2]

//STRATEGY
if (longCondition and not UseStopOrders)
    strategy.entry("LongBrick", strategy.long)
    targetProfit=close+BrickSize*Multiplier
    targetSL=close-BrickSize
    strategy.exit("CloseLong","LongBrick", limit=targetProfit, stop=targetSL)
    
if (shortCondition and not UseStopOrders)
    strategy.entry("ShortBrick", strategy.short)
    targetProfit = close-BrickSize*Multiplier
    targetSL = close+BrickSize
    strategy.exit("CloseShort","ShortBrick", limit=targetProfit, stop=targetSL)

if (longCondition and UseStopOrders)
    strategy.entry("LongBrick_Stop", strategy.long, stop=open[2])
    targetProfit=close+BrickSize*Multiplier
    targetSL=close-BrickSize
    strategy.exit("CloseLong","LongBrick_Stop", limit=targetProfit, stop=targetSL)
    
if (shortCondition and UseStopOrders)
    strategy.entry("ShortBrick_Stop", strategy.short, stop=open[2])
    targetProfit = close-BrickSize*Multiplier
    targetSL = close+BrickSize
    strategy.exit("CloseShort","ShortBrick_Stop", limit=targetProfit, stop=targetSL)