apozdnyakov

Three horizontal lines on condition

A script to plot few horizontal lines on some condition
Release Notes: in pine v4 these lines became much more simple, and less limited :)
Remove from Favorite Scripts Add to favorite indicators

Comments

Hello sir, how to put condition which apply for "particular day only" to draw horizontal lines.
+16 Reply
Hey! Is it possible to set alerts on those lines as well? I mean by using functions such as crossunder / crossover.
+10 Reply
can we fill color between these horizontal lines?
+2 Reply
is it possible for this indicator to only plot body to body and make more than 3 ?
+1 Reply
Sir, how to plot line when 30 min double bottom or double top with price variation of 0.01% ..
Reply
thank you so much for this!!!
Reply
Quick Question: How to get that the three closes on condition (crsi > 95) into three different floating point variables? In other words, how to get the three prices on condition (crsi > 95)?
Reply
apozdnyakov mansiinator
@mansiinator, last_crsi_close(_1|_2) is already series variable. And hline doesn't accept "series' only "float" which is constant float value. But plot+trackprice - does accept series.
Reply
How to get that close on condition (crsi > 95) into a floating point variable, say ‘last_crsi_close_price’? In other words, how to get the price on condition (crsi > 95)? Once that close is in a floating point variable, the following could be used

hline(last_crsi_close_price, title='OB_Resistance', color=red, linestyle=dotted, linewidth=2)
Reply
apozdnyakov mansiinator
@mansiinator, chznge three plots to

plot(max(max(last_crsi_close, last_crsi_close_2), last_crsi_close_3), style=cross, trackprice=true, linewidth=3, offset=-9000)
plot(close, color=#ffffffff)
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out