렌코 반전 추적 전략

저자:차오장, 날짜: 2023-09-15 15:53:40
태그:

전략 개요

렌코 반전 추적 전략 (Renko reversal tracking strategy) 은 렌코 벽돌을 사용하여 시장 반전을 식별하는 단기 거래 전략이다. 인접한 벽돌 사이의 색상의 변화를 모니터링하여 단기 반전 기회를 포착합니다. 거래 신호는 현재 벽돌의 색상이 연속적인 같은 색의 벽돌 후에 바뀔 때 생성됩니다.

전략 논리

  1. 전통적인 페인팅을 하지 않는 렌코 벽돌을 사용하세요.

  2. 이웃 벽돌 사이의 색상의 변화를 관찰합니다.

  3. 신호는 현재의 벽돌의 색이 바뀔 때 나타납니다. 이전 두 개의 벽돌이 같은 색을 가지고 있을 때요.

  4. 긴 신호: 두 개의 하향 벽돌 후에 상승 벽돌이 나타납니다.

  5. 짧은 신호: 두 개의 올림 벽돌 뒤에 하향 벽돌이 나타납니다.

  6. 진입 옵션: 시장 명령 또는 정지 명령

  7. 스톱 로스/프로피트 취득을 블록 사이즈에 곱한 계수로 설정합니다.

코어는 벽돌 색상 전환으로 인한 인회 기회를 활용합니다. 같은 색상의 벽돌이 연속적으로 트렌드 형성을 나타냅니다. 다음 벽돌 색상이 전환되면 잠재적 인 반전을 나타냅니다.

벽돌 크기와 스톱 손실/이익 합률은 최적화를 위해 조정할 수 있습니다.

전략 의 장점

  • 벽돌은 바로 역전 정보를 표시

  • 단순하고 명확한 논리, 실행하기 쉬운

  • 대칭적인 긴 기회와 짧은 기회

  • 유연한 벽돌 크기 조정

  • 스톱 로스/프로피트 취득으로 엄격한 리스크 관리

위험 경고

  • 신호를 형성하기 위해 일정 수의 연속 벽돌이 필요합니다.

  • 벽돌 크기는 수익/이용에 직접적인 영향을 미칩니다.

  • 트렌드 지속 기간을 결정하기가 어렵습니다.

  • 연속적인 스톱 손실이 발생할 수 있습니다.

결론

렌코 반전 추적 전략은 단기적 반전을 식별하기 위해 벽돌 색상 플립을 직접 사용하여 전통적인 기술 지표를 혁신적으로 적용합니다. 간단하고 실용적인 이 전략은 매개 변수 조정을 통해 안정적인 수익을 얻을 수 있으며 백테스트, 라이브 최적화 및 응용 가치가 있습니다.


/*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)

더 많은