//version=3
study("Top Bottom ",overlay=true)
per=input(14)
loc= low<lowest(low[1],per) and low<=lowest(low[per],per)
bottom=barssince(loc)
per2=input(14)
loc2= high>highest(high[1],per2) and high>=highest(high[per2],per2)
top=barssince(loc2)
/////BUY-SELL/////
buy=top<bottom and top[1]>bottom[1]
sell=top>bottom and top[1]<bottom[1]
plotshape(buy, title= "Buy", location=location.belowbar, color=green, style=shape.arrowup, text="Buy")
plotshape(sell, title= "Sell",color=red, style=shape.arrowdown, text="Sell")
background = top < bottom ? blue : top > bottom ? red :
na
bgcolor(color=background, transp=85)
study("Top Bottom ",overlay=true)
per=input(14)
loc= low<lowest(low[1],per) and low<=lowest(low[per],per)
bottom=barssince(loc)
per2=input(14)
loc2= high>highest(high[1],per2) and high>=highest(high[per2],per2)
top=barssince(loc2)
/////BUY-SELL/////
buy=top<bottom and top[1]>bottom[1]
sell=top>bottom and top[1]<bottom[1]
plotshape(buy, title= "Buy", location=location.belowbar, color=green, style=shape.arrowup, text="Buy")
plotshape(sell, title= "Sell",color=red, style=shape.arrowdown, text="Sell")
background = top < bottom ? blue : top > bottom ? red :
na
bgcolor(color=background, transp=85)
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
