レンコの逆転追跡戦略

作者: リン・ハーンチャオチャン, 日時: 2023-09-15 15:53:40
タグ:

戦略の概要

レンコ逆転追跡戦略は,市場逆転を特定するためにレンコブロックを使用する短期的取引戦略である.近隣のレンガ間の色の変化を監視することによって短期的な逆転機会を捕捉する.現在のレンガの色が連続した同じ色のレンガの後ろに転がるときに取引信号が生成される.

戦略の論理

  1. 塗り替えができない 伝統的なレンコブロックを使います

  2. 隣接したレンガの色の変化を監視する.

  3. 信号は現在のレンガの色が変わって 2つの前のレンガが同じ色になったときに発生します

  4. 長信号: 2つの下落のブロックの後,上昇したブロックが現れます.

  5. 短信号: 2つの上昇したブロックの後,下落のブロックが現れます.

  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)

もっと