luigi.cola

String input - time frame's high and low

26
SUPPORTI
オープンソーススクリプト

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

免責事項

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

チャートでこのスクリプトを利用したいですか?
study(title="String input - time frame's high and low", overlay=true)

tf = input(title="Higher time frame", type=string, defval="360")
High_Close  =input(title="High_Close",type=bool,defval=false)
Low_Close   =input(title="Low_Close",type=bool,defval=false)
Close_Cande =input(title="Close_Candle",type=bool,defval=false)

//plot_High(b,tfh,col) =>
//    tfhf=tfh
//    colf=col
//   plot( series=tfh, color=col, linewidth=2)
   // isGrowing = s > s[1]
    //ud = isEqual ? 0 : isGrowing ? (nz(ud[1]) <= 0 ? 1 : nz(ud[1])+1) : (nz(ud[1]) >= 0 ? -1 : nz(ud[1])-1)
   // ud


tfHigh = security(tickerid, tf,high)
tfClose =security(tickerid,tf,close)
tfLow = security(tickerid, tf, low)
//DiffH=tfHigh-tfClose
hcolor=tfLow!= tfLow[1] ? na : blue
hcolor1=tfHigh!=tfHigh[1] ? na :red
hcolor2=tfHigh!=tfHigh[1] ? na :black
//h=High_Close
//plot(High_Close ? tfHigh:na)
//plot_High(High_Color,tfHigh,hcolor1)

plot( series=tfHigh, color=hcolor1, linewidth=2)
plot(series=tfClose,color=hcolor2,linewidth=2)
plot(series=tfLow, color=hcolor, linewidth=2)