TradingView
Mohamed3nan
12 wrz 2019 11:01

PSAR MTF Pane [Anan] 

Bitcoin / TetherUSBinance

Opis

Hello Friends,

My lovely pane now for built-in Parabolic SAR

Green : Bullish Parabolic SAR
Red : Bearish Parabolic SAR

No Green/No Red : The turning point

Informacje o Wersji

*Fix Logic when open a time frame > pane time frame

*Note that your current resolution must be <= pane frame pane otherwise the MTF pane will not plotting any data (Logic)
Komentarze
FaithonFire
Very Very cool / works like a dream! / thank you so much!!!!
ichimoku14642
tks
mentalAuthor84873
Mohamed3nan, I added this useful indicator to my fav. Thank you for your work and share. It will help me to enter in the market.
KTone
Hi, can you tell me what kind of indicator this is, that makes a horizontal bar graph in a pane? I'm trying to find out what it's called, so I can read about it. Any assistance would be helpful. I purchased some code from you a while back. If you care to actually share the code with me, that would be even better. I want to create an indicator that has this look and feel to it.
Mohamed3nan
@KTone, Hi,
It's just a line with linewidth=10 with a rule when close > or < PSAR
KTone
@Mohamed3nan, oh, haha... I see the code below. Thank you for sharing with us.

For some reason I can't get the labels section to work.
opdrahmetcelik
how can you set alarm for this indicator?
Deepthoughts
One more thing, can you send the labels and dots code? Thanks again.
Mohamed3nan
@Deepthoughts01Deepthoughts01,

lapos_x = timenow + round(change(time)*1)
lapos_y = highest(5)

draw_label(x,y,_text,_textcolor, _size)=>
var label Label = na
label.delete(Label)
Label := label.new(x, y, _text, color=color.new(color.white, 50), textcolor=_textcolor, style=label.style_none, yloc=yloc.price, xloc=xloc.bar_time, size=_size)

res_to_string(res)=>
str = iff(res == "1", "1m", iff(res == "5", "5m", iff(res == "3", "3m", iff(res == "15", "15m", iff(res == "30", "30m", iff(res == "45", "45m", iff(res == "60", "1h", iff(res == "120", "2h",
iff(res == "240", "4h",iff(res == "120", "2h", iff(res == "180", "3h", iff(res == "1D", "1D", iff(res == "1W", "1W", iff(res == "1M", "1M", ""))))))))))))))
str

draw_label(lapos_x, 0.8, res_to_string(res1), color.gray, size.tiny)
draw_label(lapos_x, 1.8, res_to_string(res2), color.gray, size.tiny)
draw_label(lapos_x, 2.8, res_to_string(res3), color.gray, size.tiny)
draw_label(lapos_x, 3.8, res_to_string(res4), color.gray, size.tiny)
draw_label(lapos_x, 4.8, res_to_string(res5), color.gray, size.tiny)
draw_label(lapos_x, 5.8, res_to_string(res6), color.gray, size.tiny)
Deepthoughts
@Mohamed3nan, Thank you so much. I am building my scripts and also willing to share. Will keep you posted.
Więcej