repo32

High Low Yearly Support Resistance

Decided to repost to get clean chart up. This gives you lines showing the current years highs and lows along with the previous years high and lows.
Requested by "N"
סקריפט קוד פתוח

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

כתב ויתור

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

רוצה להשתמש בסקריפ זה בגרף?
// Written by Robert N.  031015

study("High Low Yearly", overlay=true)

hyl = input(true, title="High Yearly Line")
yhigh = security(tickerid, '12M', high) 
plot(hyl and yhigh ? yhigh :na , title="Yearly_High",style=circles, color=yellow, linewidth=3) 


lyl = input(true, title="Low Yearly Line")
ylow = security(tickerid, '12M', low) 
plot(lyl and ylow ? ylow :na , title="Yearly_Low",style=circles, color=blue, linewidth=3) 

hyl1 = input(true, title="High Yearly Line Previous")
yhigh1 = security(tickerid, '12M', high[1]) 
plot(hyl1 and yhigh1 ? yhigh1 :na , title="Yearly_High",style=circles, color=purple, linewidth=3) 


lyl1 = input(true, title="Low Yearly Line Previous")
ylow1 = security(tickerid, '12M', low[1]) 
plot(lyl1 and ylow1 ? ylow1 :na , title="Yearly_Low",style=circles, color=white, linewidth=3) 

רעיונות קשורים