ChrisMoody

CM_Gap_Indicator_Intra-Day_V1

CM_Gap_Indicator_Intra-Day_V1

This is a Simple Gap Indicator.

Version 1…Many Additional Features To Come.

***Designed for Intra-Day Charts.
***Great for Stocks…Forex and Futures Sunday Night Gaps.

***Plots Green Lines If Gap Up
***Plots Red Lines If Gap Down

Additional Filters Coming Soon:
***Minimum Gap% Filter
***Gap Mid Lines
***Color Coding On Filled Gaps

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
//Created By ChrisMoody on 1-15-2015
//Version 1...More Features Coming Soon...

study(title="CM_Gap_Indicator_Intra-Day_V1", shorttitle="CM_Gaps_Intra-Day_V1", overlay=true)

tdo = security(tickerid, 'D', open)
pdc = security(tickerid, 'D', close[1])
pdh = security(tickerid, 'D', high[1])
pdl = security(tickerid, 'D', low[1])

gapUp = tdo > pdc ? 1 : 0

plotGapUpLine = gapUp ? tdo : na
plotGapUpLowLine = gapUp ? pdc : na

gapDn = tdo < pdc ? 1 : 0

plotGapDnLine = gapDn ? tdo : na
plotGapDnPDC = gapDn ? pdc : na

plot(plotGapUpLine, title="Gap Up - Upper Gap Line, Todays Open", style=circles, linewidth=3, color=lime)
plot(plotGapUpLowLine, title="Gap Up - Lower Gap Line, Yesterdays Close", style=circles, linewidth=3, color=lime)

plot(plotGapDnLine, title="Gap Down - Lower Gap Line, Todays Open", style=circles, linewidth=3, color=red)
plot(plotGapDnPDC, title="Gap Down - Upper Gap Line, Yesterdays Close", style=circles, linewidth=3, color=red)