Statistics: Posted by Banzai — Tue May 07, 2024 11:35 am — Replies 1528 — Views 170987
Statistics: Posted by guner — Tue May 07, 2024 10:10 am — Replies 1069 — Views 84463
Statistics: Posted by Jimmy — Tue May 07, 2024 8:52 am — Replies 37 — Views 1396
Statistics: Posted by DAMPro69 — Tue May 07, 2024 8:02 am — Replies 0 — Views 59
Statistics: Posted by JohnnyRy — Tue May 07, 2024 7:33 am — Replies 168 — Views 6520
Statistics: Posted by EVGENIY86 — Tue May 07, 2024 7:06 am — Replies 3833 — Views 1024199
Statistics: Posted by DaveTrader — Tue May 07, 2024 5:39 am — Replies 15141 — Views 3752909
Statistics: Posted by JohnnyRy — Tue May 07, 2024 5:38 am — Replies 3269 — Views 367580
Statistics: Posted by kudrpenk — Tue May 07, 2024 4:28 am — Replies 4088 — Views 1078360
Code: Select all
//@version=5indicator("v.0 WRBHG with Analysis", overlay = true, max_bars_back=5000, max_lines_count=4, max_labels_count=4, max_boxes_count = 4)group0 = 'Period under study'startDate = input.time(title='Start Date', defval=timestamp("2000-01-19 09:00:00 GMT+2"), group=group0)endDate = input.time(title='End Date', defval=timestamp('2099-09-01 09:00:00 GMT+2'), tooltip='Date & time to stop analysis', group=group0)group1 = 'Settings under study'x_extend_count = input.int(title="x extend count", defval = 30, group=group1)transp = input.int(title="Transparency", defval = 70, group=group1)var WRBHG_upper = 0.0var WRBHG_lower = 0.0var fillColor = color.black// Store index of candles that meet the conditionvar conditionMet = array.new_int(0)// Determin WRB and WRBHGbody = math.abs(open-close)wrb = body>body[1] and body>body[2] and body>body[3] ? math.avg(open,close) : nawrbhg = (wrb[1] and (low>high[2] or high<low[2]))? wrb[1] : na// Store left side price when the box is created and index of candles that meet the conditionif wrbhg if close[1] > open[1] and low > high[2] WRBHG_upper := low WRBHG_lower := high[2] fillColor := color.new(color.green, transp) else if close[1] < open[1] and low > high[2] WRBHG_upper := low WRBHG_lower := high[2] fillColor := color.new(color.yellow, transp) else WRBHG_upper := low[2] WRBHG_lower := high fillColor := color.new(color.red, transp) // Define the box box_id = box.new(time[2], WRBHG_upper, endDate, WRBHG_lower, border_color = na, xloc = xloc.bar_time, bgcolor = fillColor)
Statistics: Posted by dgrl — Tue May 07, 2024 4:00 am — Replies 1 — Views 132
Statistics: Posted by JohnnyRy — Tue May 07, 2024 3:52 am — Replies 6 — Views 3311
Statistics: Posted by Satish — Tue May 07, 2024 1:52 am — Replies 1546 — Views 499977
Statistics: Posted by mrtools — Tue May 07, 2024 1:23 am — Replies 705 — Views 266482
Statistics: Posted by macd & rsi — Mon May 06, 2024 11:01 pm — Replies 1132 — Views 161811
Statistics: Posted by ICTradersBrasil — Mon May 06, 2024 10:57 pm — Replies 5 — Views 508