CooperHoang

Retracement Spotter

This employ the multi time frame analysis to give you the most accurate retracement signal.

The entries are fairly simple.

Buy = color turns green, then turn blank
Sell = color turns read, then turn blank
開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
study(title="Commodity Channel Index", shorttitle="CCI Retracement")
length = input(20, minval=1)
src = input(close, title="Source")
ma = sma(src, length)
length1 = input(60, minval=1)
ma1 = sma(src, length1)
length2 = input(240, minval=1)
ma2 = sma(src, length2)

cci = (src - ma) / (0.015 * dev(src, length))
cci1 = (src - ma1) / (0.015 * dev(src, length1))
cci2 = (src - ma2) / (0.015 * dev(src, length2))


bgUp    = (cci > 0 and cci1 > 0 and cci2 < 0) ? red : na
bgDown    = (cci < 0 and cci1 < 0 and cci2 > 0) ? green : na

bgcolor(bgUp, transp=50)
bgcolor(bgDown, transp=50)