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

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?
//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)