dime

% Median v1

This indicator shows the percentage amount the price is above or below the moving median value of the period.

This indicator is best used along with the moving median (set to the same period).

Based on the moving median developed with 4x4good

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

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

免責事項

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

チャートでこのスクリプトを利用したいですか?
//  % median v1.0
//  Created by dime &  4X4good - 09/04/2016
//  This indicator shows the % that the price is above or below the moving median value of the period.
//  

study(title="% median", shorttitle="% median")
length1 = input(50, minval=1,title="median length")

median = percentile_nearest_rank (close,length1,50)

PCTmedian = (close - median)/median *100
plot(PCTmedian, color=lime, linewidth=2, title="% median")

hline(0, title="Zero Line")