soru

soru H/L zones

232 0 23
shared on Delta's requst:)

hf
Remove from Favorite Scripts Add to Favorite Scripts
study("soru H/L zones", "soru H/L zones", overlay=true)

//inputs
h_left1 = input(title="H left 1", type=integer, defval=30)
h_left2 = input(title="H left 2", type=integer, defval=90)
h_left3 = input(title="H left 3", type=integer, defval=240)
h_left4 = input(title="H left 4", type=integer, defval=480)
show_channel1 = input(title="Show channel 1", type=bool, defval=true)
show_channel2 = input(title="Show channel 2", type=bool, defval=true)
show_channel3 = input(title="Show channel 3", type=bool, defval=true)
show_channel4 = input(title="Show channel 4", type=bool, defval=true)

h_left_low1 = lowest(h_left1)
h_left_low2 = lowest(h_left2)
h_left_low3 = lowest(h_left3)
h_left_low4 = lowest(h_left4)
h_left_high1 = highest(h_left1)
h_left_high2 = highest(h_left2)
h_left_high3 = highest(h_left3)
h_left_high4 = highest(h_left4)
newlow1 = low <= h_left_low1
newlow2 = low <= h_left_low2
newlow3 = low <= h_left_low3
newlow4 = low <= h_left_low4
newhigh1 = high >= h_left_high1
newhigh2 = high >= h_left_high2
newhigh3 = high >= h_left_high3
newhigh4 = high >= h_left_high4

channel_high1 = plot(show_channel1 ? h_left_low1 : 0, color=black)
channel_low1 = plot (show_channel1 ? h_left_high1 : 0, color=black)
//fill(channel_high, channel_low, color=gray, transp=70)
channel_high2 = plot(show_channel2 ? h_left_low2 : 0, color=black)
channel_low2 = plot (show_channel2 ? h_left_high2 : 0, color=black)
channel_high3 = plot(show_channel3 ? h_left_low3 : 0, color=black)
channel_low3 = plot (show_channel3 ? h_left_high3 : 0, color=black)
channel_high4 = plot(show_channel4 ? h_left_low4 : 0, color=black)
channel_low4 = plot (show_channel4 ? h_left_high4 : 0, color=black)
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体中文
繁體中文
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out