ShoujiSuzuki

Revised Ichimoku Kinko Hyo (修正版 一目均衡表)

21064 views
4525
修正版一目均衡表
標準搭載の「Ichimoku Cloud」の遅行スパン・先行スパン1・先行スパン2のずれを修正
オープンソーススクリプト

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

チャートでこのスクリプトを利用したいですか?
//+------------------------------------------------------------------+
// | Revised Ichimoku Kinko Hyo                                      |
// | 修正版 一目均衡表                                               |
// | Ver.1.0 2016/06/30                                              |
// | Copyright 2016 Kojiro Koushi (http://kojirokousi.com/)          |
// | Copyright 2016 ShoujiSuzuki                                     |
//+------------------------------------------------------------------+
// 標準搭載のIchimokuの遅行スパン・先行スパン1・先行スパン2のずれを修正

study(title="Revised Ichimoku Kinko Hyo (修正版 一目均衡表)", shorttitle="RevIchimoku", overlay=true)

conversionPeriods = input(9, minval=1, title="転換線 (Tenkan-sen)(Conversion Line)"),
basePeriods = input(26, minval=1, title="基準線 (Kijun-sen))(Base Line)")
laggingSpan2Periods = input(52, minval=1, title="先行スパン2 (Senkou span 2)(Lagging Span 2)"),
displacement = input(26, minval=1)

donchian(len) => avg(lowest(len), highest(len))

conversionLine = donchian(conversionPeriods)
baseLine = donchian(basePeriods)
leadLine1 = avg(conversionLine, baseLine) 
leadLine2 = donchian(laggingSpan2Periods-1)

plot(conversionLine, color=blue, title="転換線 (Tenkan-sen)(Conversion Line)")
plot(baseLine, color=red, title="基準線 (Kijun-sen)(Base Line)")
plot(close, offset = -displacement+1, color=green, title="遅行スパン (Chikou span)(Lagging Span)")

p1 = plot(leadLine1, offset = displacement-1, color=green,
    title="先行スパン1 (Senkou span 1)(Leading Span 1)")
p2 = plot(leadLine2, offset = displacement-1, color=red, 
    title="先行スパン2 (Senkou span 2)(Leading Span 2)")
fill(p1, p2, color = leadLine1 > leadLine2 ? green : red, title="抵抗帯 (Kumo)(Cloud))")