ChrisMoody

CM Percent Move Upper V1

CM Percent Move Upper V1 .... Goes With the Lower Indicator
Created by ChrisMoody on 9/3/2014 by Request from vlad.adrian

**Plots A BackGround Highlight if % Move is Greater or Equal to User Input

** % Move is based on Close of Current Bar Compared to Close of Previous Bar

Skrip open-source

Dalam semangat TradingView, penulis dari skrip ini telah mempublikasikannya ke sumber-terbuka, maka trader dapat mengerti dan memverifikasinya. Semangat untuk penulis! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.

Inggin menggunakan skrip ini pada chart?
//Created by ChrisMoody on 9/3/2014 by Request from vlad.adrian
//Plots A BackGround Highlight if % Move is Greater or Equal to user input
// % Move is based on Close of Current Bar Compared to Close of Previous Bar
study("CM_Percent_Move_Upper", overlay=true)
sbh = input(true, title="Show Background Highlights?")
def = input(false, title="***Input Below is Multiplied by .1, 5 = .5%, 10 = 1%, 15 = 1.5% etc.***")
pctmve = input(15, minval=5, maxval=40, title="If % move is Greater or Equal to Input Plots BackGround Highlight")

//Percent Calculations
pctmove = pctmve * .1
diff = close-close[1]
pct = abs(diff/close)*100

//BackGround Color Definitions
pctPlot = pct >= pctmove ? 1 : 0

col = close < close[1] ? red : close > close[1] ? lime : yellow
//BackGround Color Plots
bgcolor(sbh and pctPlot ? col : na, transp=50)