The support forum is built with (1) General and FAQ forums for common trading queries received from aspiring and experienced traders, and (2) forums for course video topics. How to Trade Price Action and How to Trade Forex Price Action videos are consolidated into common forums.
Brooks Trading Course social media communities
Notifications
Clear all
Topic starter
17/06/2023 11:21 am
These come with labels and a set of default values. Change them daily / weekly as they change.
//@version=5 indicator("Lines", overlay=true, max_lines_count = 500) defline = 4470 hoffset = 0 voffset = -0.4 counter = 0 //================= // Yesterday //================= YO = input(defline + 0, "Yesterday's open") line1 = line.new(bar_index, YO, na, YO, extend = extend.both, color = color.blue, style = line.style_solid, width = 1) line.delete(line1[1]) lab1 = label.new(bar_index + counter + hoffset, y = YO + voffset, text = "YO", color = color.black, style = label.style_none, size = size.small) label.delete(lab1[1]) counter := counter + 1 YH = input(defline + 1, "Yesterday's high") line2 = line.new(bar_index, YH, na, YH, extend = extend.both, color = color.blue, style = line.style_solid, width = 1) line.delete(line2[1]) lab2 = label.new(bar_index + counter + hoffset, y = YH + voffset, text = "YH", color = color.black, style = label.style_none, size = size.small) label.delete(lab2[1]) counter := counter + 1 YL = input(defline + 2, "Yesterday's low") line3 = line.new(bar_index, YL, na, YL, extend = extend.both, color = color.blue, style = line.style_solid, width = 1) line.delete(line3[1]) lab3 = label.new(bar_index + counter + hoffset, y = YL + voffset, text = "YL", color = color.black, style = label.style_none, size = size.small) label.delete(lab3[1]) counter := counter + 1 YC = input(defline + 3, "Yesterday's close") line4 = line.new(bar_index, YC, na, YC, extend = extend.both, color = color.blue, style = line.style_solid, width = 1) line.delete(line4[1]) lab4 = label.new(bar_index + counter + hoffset, y = YC + voffset, text = "YC", color = color.black, style = label.style_none, size = size.small) label.delete(lab4[1]) //================= // Day before yesterday //================= counter := counter + 2 DBYO = input(defline + 4, "Day before yesterday's open") line5 = line.new(bar_index, DBYO, na, DBYO, extend = extend.both, color = color.rgb(33, 229, 243), style = line.style_solid, width = 1) line.delete(line5[1]) lab5 = label.new(bar_index + counter + hoffset, y = DBYO + voffset, text = "DBYO", color = color.black, style = label.style_none, size = size.small) label.delete(lab5[1]) counter := counter + 2 DBYH = input(defline + 5, "Day before yesterday's high") line6 = line.new(bar_index, DBYH, na, DBYH, extend = extend.both, color = color.rgb(33, 229, 243), style = line.style_solid, width = 1) line.delete(line6[1]) lab6 = label.new(bar_index + counter + hoffset, y = DBYH + voffset, text = "DBYH", color = color.black, style = label.style_none, size = size.small) label.delete(lab6[1]) counter := counter + 2 DBYL = input(defline + 6, "Day before yesterday's low") line7 = line.new(bar_index, DBYL, na, DBYL, extend = extend.both, color = color.rgb(33, 229, 243), style = line.style_solid, width = 1) line.delete(line7[1]) lab7 = label.new(bar_index + counter + hoffset, y = DBYL + voffset, text = "DBYL", color = color.black, style = label.style_none, size = size.small) label.delete(lab7[1]) counter := counter + 2 DBYC = input(defline + 7, "Day before yesterday's close") line8 = line.new(bar_index, DBYC, na, DBYC, extend = extend.both, color = color.rgb(33, 229, 243), style = line.style_solid, width = 1) line.delete(line8[1]) lab8 = label.new(bar_index + counter + hoffset, y = DBYC + voffset, text = "DBYC", color = color.black, style = label.style_none, size = size.small) label.delete(lab8[1]) //================= // This week //================= counter := counter + 2 TWO = input(defline + 8, "This week's open") line9 = line.new(bar_index, TWO, na, TWO, extend = extend.both, color = color.rgb(45, 106, 47), style = line.style_solid, width = 1) line.delete(line9[1]) lab9 = label.new(bar_index + counter + hoffset, y = TWO + voffset, text = "TWO", color = color.black, style = label.style_none, size = size.small) label.delete(lab9[1]) counter := counter + 2 TWH = input(defline + 9, "This week's high") line10 = line.new(bar_index, TWH, na, TWH, extend = extend.both, color = color.rgb(45, 106, 47), style = line.style_solid, width = 1) line.delete(line10[1]) lab10 = label.new(bar_index + counter + hoffset, y = TWH + voffset, text = "TWH", color = color.black, style = label.style_none, size = size.small) label.delete(lab10[1]) counter := counter + 2 TWL = input(defline + 10, "This week's low") line11 = line.new(bar_index, TWL, na, TWL, extend = extend.both, color = color.rgb(45, 106, 47), style = line.style_solid, width = 1) line.delete(line11[1]) lab11 = label.new(bar_index + counter + hoffset, y = TWL + voffset, text = "TWL", color = color.black, style = label.style_none, size = size.small) label.delete(lab11[1]) //================= // Last week //================= counter := counter + 2 LWO = input(defline + 11, "Last week's open") line12 = line.new(bar_index, LWO, na, LWO, extend = extend.both, color = color.green, style = line.style_solid, width = 1) line.delete(line12[1]) lab12 = label.new(bar_index + counter + hoffset, y = LWO + voffset, text = "LWO", color = color.black, style = label.style_none, size = size.small) label.delete(lab12[1]) counter := counter + 2 LWH = input(defline + 12, "Last week's high") line13 = line.new(bar_index, LWH, na, LWH, extend = extend.both, color = color.green, style = line.style_solid, width = 1) line.delete(line13[1]) lab13 = label.new(bar_index + counter + hoffset, y = LWH + voffset, text = "LWH", color = color.black, style = label.style_none, size = size.small) label.delete(lab13[1]) counter := counter + 2 LWL = input(defline + 13, "Last week's low") line14 = line.new(bar_index, LWL, na, LWL, extend = extend.both, color = color.green, style = line.style_solid, width = 1) line.delete(line14[1]) lab14 = label.new(bar_index + counter + hoffset, y = LWL + voffset, text = "LWL", color = color.black, style = label.style_none, size = size.small) label.delete(lab14[1]) counter := counter + 2 LWC = input(defline + 14, "Last week's close") line15 = line.new(bar_index, LWC, na, LWC, extend = extend.both, color = color.green, style = line.style_solid, width = 1) line.delete(line15[1]) lab15 = label.new(bar_index + counter + hoffset, y = LWC + voffset, text = "LWC", color = color.black, style = label.style_none, size = size.small) label.delete(lab15[1]) //================= // Week before last //================= counter := counter + 2 WBLO = input(defline + 15, "Week before last's open") line16 = line.new(bar_index, WBLO, na, WBLO, extend = extend.both, color = color.rgb(96, 215, 100), style = line.style_solid, width = 1) line.delete(line16[1]) lab16 = label.new(bar_index + counter + hoffset, y = WBLO + voffset, text = "WBLO", color = color.black, style = label.style_none, size = size.small) label.delete(lab16[1]) counter := counter + 2 WBLH = input(defline + 16, "Week before last's high") line17 = line.new(bar_index, WBLH, na, WBLH, extend = extend.both, color = color.rgb(96, 215, 100), style = line.style_solid, width = 1) line.delete(line17[1]) lab17 = label.new(bar_index + counter + hoffset, y = WBLH + voffset, text = "WBLH", color = color.black, style = label.style_none, size = size.small) label.delete(lab17[1]) counter := counter + 2 WBLL = input(defline + 17, "Week before last's low") line18 = line.new(bar_index, WBLL, na, WBLL, extend = extend.both, color = color.rgb(96, 215, 100), style = line.style_solid, width = 1) line.delete(line18[1]) lab18 = label.new(bar_index + counter + hoffset, y = WBLL + voffset, text = "WBLL", color = color.black, style = label.style_none, size = size.small) label.delete(lab18[1]) counter := counter + 2 WBLC = input(defline + 18, "Week before last's close") line19 = line.new(bar_index, WBLC, na, WBLC, extend = extend.both, color = color.rgb(96, 215, 100), style = line.style_solid, width = 1) line.delete(line19[1]) lab19 = label.new(bar_index + counter + hoffset, y = WBLC + voffset, text = "WBLC", color = color.black, style = label.style_none, size = size.small) label.delete(lab19[1]) //================= // This month //================= counter := counter + 2 TMO = input(defline + 19, "This month's open") line20 = line.new(bar_index, TMO, na, TMO, extend = extend.both, color = color.rgb(149, 103, 35), style = line.style_solid, width = 1) line.delete(line20[1]) lab20 = label.new(bar_index + counter + hoffset, y = TMO + voffset, text = "TMO", color = color.black, style = label.style_none, size = size.small) label.delete(lab20[1]) counter := counter + 2 TMH = input(defline + 20, "This month's high") line21 = line.new(bar_index, TMH, na, TMH, extend = extend.both, color = color.rgb(149, 103, 35), style = line.style_solid, width = 1) line.delete(line21[1]) lab21 = label.new(bar_index + counter + hoffset, y = TMH + voffset, text = "TMH", color = color.black, style = label.style_none, size = size.small) label.delete(lab21[1]) counter := counter + 2 TML = input(defline + 21, "This month's low") line22 = line.new(bar_index, TML, na, TML, extend = extend.both, color = color.rgb(149, 103, 35), style = line.style_solid, width = 1) line.delete(line22[1]) lab22 = label.new(bar_index + counter + hoffset, y = TML + voffset, text = "TML", color = color.black, style = label.style_none, size = size.small) label.delete(lab22[1]) //================= // Last month //================= counter := counter + 2 LMO = input(defline + 22, "Last month's open") line23 = line.new(bar_index, LMO, na, LMO, extend = extend.both, color = color.orange, style = line.style_solid, width = 1) line.delete(line23[1]) lab23 = label.new(bar_index + counter + hoffset, y = LMO + voffset, text = "LMO", color = color.black, style = label.style_none, size = size.small) label.delete(lab23[1]) counter := counter + 2 LMH = input(defline + 23, "Last month's high") line24 = line.new(bar_index, LMH, na, LMH, extend = extend.both, color = color.orange, style = line.style_solid, width = 1) line.delete(line24[1]) lab24 = label.new(bar_index + counter + hoffset, y = LMH + voffset, text = "LMH", color = color.black, style = label.style_none, size = size.small) label.delete(lab24[1]) counter := counter + 2 LML = input(defline + 24, "Last month's low") line25 = line.new(bar_index, LML, na, LML, extend = extend.both, color = color.orange, style = line.style_solid, width = 1) line.delete(line25[1]) lab25 = label.new(bar_index + counter + hoffset, y = LML + voffset, text = "LML", color = color.black, style = label.style_none, size = size.small) label.delete(lab25[1]) counter := counter + 2 LMC = input(defline + 25, "Last month's close") line26 = line.new(bar_index, LMC, na, LMC, extend = extend.both, color = color.orange, style = line.style_solid, width = 1) line.delete(line26[1]) lab26 = label.new(bar_index + counter + hoffset, y = LMC + voffset, text = "LMC", color = color.black, style = label.style_none, size = size.small) label.delete(lab26[1]) //================= // Month before last //================= counter := counter + 2 MBLO = input(defline + 26, "Month before last's open") line27 = line.new(bar_index, MBLO, na, MBLO, extend = extend.both, color = color.yellow, style = line.style_solid, width = 1) line.delete(line27[1]) lab27 = label.new(bar_index + counter + hoffset, y = MBLO + voffset, text = "MBLO", color = color.black, style = label.style_none, size = size.small) label.delete(lab27[1]) counter := counter + 2 MBLH = input(defline + 27, "Month before last's high") line28 = line.new(bar_index, MBLH, na, MBLH, extend = extend.both, color = color.yellow, style = line.style_solid, width = 1) line.delete(line28[1]) lab28 = label.new(bar_index + counter + hoffset, y = MBLH + voffset, text = "MBLH", color = color.black, style = label.style_none, size = size.small) label.delete(lab28[1]) counter := counter + 2 MBLL = input(defline + 28, "Month before last's low") line29 = line.new(bar_index, MBLL, na, MBLL, extend = extend.both, color = color.yellow, style = line.style_solid, width = 1) line.delete(line29[1]) lab29 = label.new(bar_index + counter + hoffset, y = MBLL + voffset, text = "MBLL", color = color.black, style = label.style_none, size = size.small) label.delete(lab29[1]) counter := counter + 2 MBLC = input(defline + 29, "Month before last's close") line30 = line.new(bar_index, MBLC, na, MBLC, extend = extend.both, color = color.yellow, style = line.style_solid, width = 1) line.delete(line30[1]) lab30 = label.new(bar_index + counter + hoffset, y = MBLC + voffset, text = "MBLC", color = color.black, style = label.style_none, size = size.small) label.delete(lab30[1])