レンコ反転追跡戦略


作成日: 2023-09-15 15:53:40 最終変更日: 2023-09-15 16:28:21
コピー: 3 クリック数: 903
1
フォロー
1617
フォロワー

戦略概要

レンコ反転トラッキング戦略は,レンコグラフを使用して市場の反転を判断するショートライン戦略である.それは,隣接するレンコの色の変化をモニタリングすることによって,短期的な反転の機会を捉える.連続した同じ色のレンコの後に次のレンコの色が変わるとき,取引シグナルを生成する.

戦略原則

  1. レンコの修復には従来の方法を使わない.

  2. 隣接するレンコの色の変化を監視する.

  3. 現在1Renkoと前2Renkoの色は同じで,現在のRenkoの色が逆転すると,信号が生成される.

  4. 陽の2つに陽が1つ出てきて,陽が見えます.

  5. “空き信号”は,空き信号の2日後に,空き信号の1日後に,空き信号の1日後に,空き信号の1日後に,空き信号の1日後に,空き信号の1日後に,空き信号の1日後に,空き信号の1日後に,空き信号の1日後に.

  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)