soru

LRC® auto

21
LRC® auto
オープンソーススクリプト

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

免責事項

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

チャートでこのスクリプトを利用したいですか?
study("LRC® auto",overlay=true)
h = isdaily or isweekly or ismonthly ? 250 : 360
z = h==2 and interval <= 240 ? 360 : h
Len=h
LR_offset=input(0)
z1=linreg(high,Len,LR_offset)
z2=linreg(low,Len,LR_offset)
z2s=-stdev(z2,Len)+z2
z1s=stdev(z1,Len)+z1


//n1=plot(z1s,color=gray,transp=100,style=areabr)
//n2=plot(z2s,color=gray,transp=100,style=areabr)
//fill(n1,n2,color=gray,transp=80)

m1=plot(linreg(high,Len,LR_offset),color=black,linewidth=2)
m2=plot(linreg(low,Len,LR_offset),color=black,linewidth=2)
m1q=plot(linreg(high,Len/2,LR_offset),color=black,linewidth=1)
m2q=plot(linreg(low,Len/2,LR_offset),color=black,linewidth=1)