Statistics: Posted by lukgoku β Tue May 07, 2024 12:20 am β Replies 4079 β Views 1075791
Statistics: Posted by 1337br β Mon May 06, 2024 11:37 pm β Replies 15136 β Views 3750095
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)use_custom_period = input.bool(title='use_custom_period', defval=true, group=group0, inline='HLline')var withinSession = truevar WRBHG_upper = 0.0var WRBHG_lower = 0.0var fillColor = color.blackx_extend_count = input.int(title="x extend count", defval = 30)transp = input.int(title="Transparency", defval = 70)body = math.abs(open-close)wrb = body>body[1] and body>body[2] and body>body[3] ? math.avg(open,close) : nahg = (wrb[1] and (low>high[2] or high<low[2]))? wrb[1] : navar penetratedBox = falsevar boxEndTime = endDateif withinSession if hg 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.green, transp) else WRBHG_upper := low[2] WRBHG_lower := high fillColor := color.new(color.red, transp) box.new(time[2], WRBHG_upper, endDate, WRBHG_lower, border_color = na, xloc = xloc.bar_time, bgcolor = fillColor) s3 = ta.ema(ohlc4, 3)plot(s3, color=color.new(color.black,0))
Statistics: Posted by dgrl β Mon May 06, 2024 11:14 pm β Replies 0 β Views 40
Statistics: Posted by macd & rsi β Mon May 06, 2024 11:01 pm β Replies 1132 β Views 161728
Statistics: Posted by ICTradersBrasil β Mon May 06, 2024 10:57 pm β Replies 5 β Views 485
Statistics: Posted by Ogee β Mon May 06, 2024 10:46 pm β Replies 2814 β Views 166724
Statistics: Posted by Ogee β Mon May 06, 2024 10:22 pm β Replies 8 β Views 381
Statistics: Posted by Mickey Abi β Mon May 06, 2024 10:21 pm β Replies 704 β Views 266086
Statistics: Posted by EVGENIY86 β Mon May 06, 2024 9:24 pm β Replies 628 β Views 360908
Statistics: Posted by EVGENIY86 β Mon May 06, 2024 8:48 pm β Replies 3831 β Views 1020617
Statistics: Posted by ChuChu Rocket β Mon May 06, 2024 7:43 pm β Replies 512 β Views 236288
Statistics: Posted by Jimmy β Mon May 06, 2024 7:40 pm β Replies 1921 β Views 1644238
Statistics: Posted by guner β Mon May 06, 2024 7:37 pm β Replies 1059 β Views 83988
Statistics: Posted by macd & rsi β Mon May 06, 2024 6:31 pm β Replies 21 β Views 1795
Statistics: Posted by Cengiz β Mon May 06, 2024 5:56 pm β Replies 831 β Views 313735