TradingView
apozdnyakov
14 feb 2018 07:39

Three horizontal lines on condition 

Microsoft CorporationNASDAQ

Beskrivning

A script to plot few horizontal lines on some condition

Versionsinformation

in pine v4 these lines became much more simple, and less limited :)
Kommentarer
neillswap
Hello sir, how to put condition which apply for "particular day only" to draw horizontal lines.
mandmetskevin
Hey! Is it possible to set alerts on those lines as well? I mean by using functions such as crossunder / crossover.
anupamram
can we fill color between these horizontal lines?
sherrymafia
is it possible for this indicator to only plot body to body and make more than 3 ?
Arun_K_Bhaskar
Awesome, needed the most. How to show only the latest line? line.delete is not working. Thanks.
lonetechnicalanalyst
Sir, how to plot line when 30 min double bottom or double top with price variation of 0.01% ..
Lancelot_Augur
thank you so much for this!!!
mansiinator
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)?
apozdnyakov
@mansiinator, last_crsi_close(_1|_2) is already series[float] variable. And hline doesn't accept "series[float]' only "float" which is constant float value. But plot+trackprice - does accept series[float].
Mer