RicardoSantos

[RS]CyberPC Wr/CCI Alert Signal V0

Request for: CyberPC.
開源腳本

秉持真正的TradingView精神,該腳本的作者將其開源發佈,因此交易者可以理解和驗證它。為作者加油!您可以免費使用它,但是在發佈中重複使用此程式碼受網站規則的約束。您可以把它加入到常用以在圖表上使用它。

想在圖表上使用此腳本?
study(title='[RS]CyberPC Wr/CCI Alert Signal V0', shorttitle='C', overlay=false)
cci_src = input(title='CCI Source:', type=source, defval=close)
cci_length = input(title='CCI Length:', type=integer, defval=25)
wr_src = input(title='Williams % Source:', type=source, defval=close)
wr_length = input(title='Williams % Length:', type=integer, defval=14)

upper = highest(wr_length)
lower = lowest(wr_length)
wr = 100 * (wr_src - upper) / (upper - lower)
cci = cci(cci_src, cci_length)

alert_condition = wr > -30 and cci < 20 ? true : false

plot(title='AC', series=alert_condition, color=black, transp=0)
alertcondition(condition=alert_condition, title='WR and CCI Alert', message='WR and CCI Trigger')

評論

Hi, How does it work?
回覆