repo32

Price above/below EMA

This script will give you red/green columns to indicate if price is above or below a certain EMA. With Candlestick charting, we are looking for price in relation to the 8 ema Trigger Line (T-Line). You can adjust this indicator to fit your need. Simple, but nice to quickly see.

Oops. Last line's title should be "Sell". Doesn't affect display though.
オープンソーススクリプト

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

免責事項

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

チャートでこのスクリプトを利用したいですか?
//Created by Robert Nance 060915
//This little script simply gives you a quick visual cue of where price is compared to a particular EMA.
// It is defaulted to the 8 EMA
study(title="Price above/below EMA", shorttitle="BuySellEMA", overlay=false)
len = input(8, minval=1, title="Length")
src = input(close, title="Source")
out = ema(src, len)
plot(close >= out, title="Buy", style=columns, color=lime)
plot(close < out, title="Buy", style=columns, color=red)