InvestitoreComune

Golden Cross KAMA

The usage is very easy. When the line is green you can open long position, when the line is red you can open short position and when it's black just check by yourself.
Usually I use it with RSI and Bollinger Bands, in order to determine when the signal is strong or weak.

Just play with fastest and slowest SC to adjust the smoothness.
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
//@version=2
study("Golden Cross Kaufman's Adaptive Moving Average",shorttitle="GC KAMA",overlay=true)
price=input(close)
len1=input(defval=12,minval=1,title="Fast")
len2=input(defval=26,minval=1,title="Slow")
fast=input(defval=2,minval=1,title="Fastest SC")
slow=input(defval=30,minval=1,title="Slowest SC")
fastestSC=(2/(fast+1))
slowestSC=(2/(slow+1))
change1=abs(price-price[len1])
diff1=abs(price-price[1])
volatility1=sum(diff1,len1)
ER1=change1/volatility1
SC1=pow(ER1*(fastestSC-slowestSC)+slowestSC,2)
out1=nz(out1[1])+SC1*(price-nz(out1[1]))
change2=abs(price-price[len2])
diff2=abs(price-price[1])
volatility2=sum(diff2,len2)
ER2=change2/volatility2
SC2=pow(ER2*(fastestSC-slowestSC)+slowestSC,2)
out2=nz(out2[1])+SC2*(price-nz(out2[1]))
plot(out1,color=out1>out2?(price>out1?green:black):(out1>price?red:black),title="GC KAMA",linewidth=2)