apozdnyakov

Three horizontal lines on condition

A script to plot few horizontal lines on some condition
Notes de version: in pine v4 these lines became much more simple, and less limited :)
Supprimer des scripts favoris Ajouter aux scripts favoris

Commentaires

Hello sir, how to put condition which apply for "particular day only" to draw horizontal lines.
+13 Répondre
Hey! Is it possible to set alerts on those lines as well? I mean by using functions such as crossunder / crossover.
+8 Répondre
can we fill color between these horizontal lines?
+1 Répondre
is it possible for this indicator to only plot body to body and make more than 3 ?
+1 Répondre
Sir, how to plot line when 30 min double bottom or double top with price variation of 0.01% ..
Répondre
thank you so much for this!!!
Répondre
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)?
Répondre
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.
Répondre
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)
Répondre
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)
Répondre
Accueil Screener d'actions Screener Forex Screener Crypto Calendrier économique Comment ça marche Caractéristiques du graphique Prix Parrainer un ami Règles de conduite Centre d'aide Solutions site web & courtier Widgets Solutions de cartographie Bibliothèque de graphiques allégés Blog & News Twitter
Profil Paramètres du Profil Compte et Facturation Amis référés Coins Mes tickets au support Centre d'aide Idées Publiées Followers Suivi(e) Messages privés Chat Se Déconnecter