name
stringlengths
1
64
url
stringlengths
44
135
author
stringlengths
3
30
author_url
stringlengths
34
61
likes_count
int64
0
33.2k
kind
stringclasses
3 values
pine_version
int64
1
5
license
stringclasses
3 values
source
stringlengths
177
279k
TTM Squeeze Pro
https://www.tradingview.com/script/0drMdHsO-TTM-Squeeze-Pro/
Beardy_Fred
https://www.tradingview.com/u/Beardy_Fred/
2,718
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Beardy_Fred //@version=5 indicator('Beardy Squeeze Pro', shorttitle='Squeeze', overlay=false, precision=2) length = input.int(20, "TTM Squeeze Length") //BOLLINGER BANDS BB_mult = input.float(2.0, "Bollinger Band STD Multiplier") BB_basis = ta.sma(close, length) dev = BB_mult * ta.stdev(close, length) BB_upper = BB_basis + dev BB_lower = BB_basis - dev //KELTNER CHANNELS KC_mult_high = input.float(1.0, "Keltner Channel #1") KC_mult_mid = input.float(1.5, "Keltner Channel #2") KC_mult_low = input.float(2.0, "Keltner Channel #3") KC_basis = ta.sma(close, length) devKC = ta.sma(ta.tr, length) KC_upper_high = KC_basis + devKC * KC_mult_high KC_lower_high = KC_basis - devKC * KC_mult_high KC_upper_mid = KC_basis + devKC * KC_mult_mid KC_lower_mid = KC_basis - devKC * KC_mult_mid KC_upper_low = KC_basis + devKC * KC_mult_low KC_lower_low = KC_basis - devKC * KC_mult_low //SQUEEZE CONDITIONS NoSqz = BB_lower < KC_lower_low or BB_upper > KC_upper_low //NO SQUEEZE: GREEN LowSqz = BB_lower >= KC_lower_low or BB_upper <= KC_upper_low //LOW COMPRESSION: BLACK MidSqz = BB_lower >= KC_lower_mid or BB_upper <= KC_upper_mid //MID COMPRESSION: RED HighSqz = BB_lower >= KC_lower_high or BB_upper <= KC_upper_high //HIGH COMPRESSION: ORANGE //MOMENTUM OSCILLATOR mom = ta.linreg(close - math.avg(math.avg(ta.highest(high, length), ta.lowest(low, length)), ta.sma(close, length)), length, 0) //MOMENTUM HISTOGRAM COLOR iff_1 = mom > nz(mom[1]) ? color.new(color.aqua, 0) : color.new(#2962ff, 0) iff_2 = mom < nz(mom[1]) ? color.new(color.red, 0) : color.new(color.yellow, 0) mom_color = mom > 0 ? iff_1 : iff_2 //SQUEEZE DOTS COLOR sq_color = HighSqz ? color.new(color.orange, 0) : MidSqz ? color.new(color.red, 0) : LowSqz ? color.new(color.black, 0) : color.new(color.green, 0) //ALERTS Detect_Sqz_Start = input.bool(true, "Alert Price Action Squeeze") Detect_Sqz_Fire = input.bool(true, "Alert Squeeze Firing") if Detect_Sqz_Start and NoSqz[1] and not NoSqz alert("Squeeze Started") else if Detect_Sqz_Fire and NoSqz and not NoSqz[1] alert("Squeeze Fired") //PLOTS plot(mom, title='MOM', color=mom_color, style=plot.style_columns, linewidth=2) plot(0, title='SQZ', color=sq_color, style=plot.style_circles, linewidth=3)
10X Bars - Directional Trends
https://www.tradingview.com/script/o1aDQVPI-10X-Bars-Directional-Trends/
Beardy_Fred
https://www.tradingview.com/u/Beardy_Fred/
350
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Beardy_Fred //@version=5 indicator(title="10X Bars", shorttitle="10X", overlay = true) //INPUTS len = input.int(14, "Directional Length") ADX_T = input.int(20, "ADX Length") vol_len = input.int(20, "Volume Length") vol_trigger = input.int(50, "Volume % Above Average Trigger", minval=5) //DMI CALCULATIONS - Tradingview Built-In DMI Indicator up = ta.change(high) down = -ta.change(low) plusDM = na(up) ? na : (up > down and up > 0 ? up : 0) minusDM = na(down) ? na : (down > up and down > 0 ? down : 0) trur = ta.rma(ta.tr, len) plus = fixnan(100 * ta.rma(plusDM, len) / trur) minus = fixnan(100 * ta.rma(minusDM, len) / trur) sum = plus + minus adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), len) //10X CALCULATIONS D_Up = (plus > minus) and (adx > ADX_T) D_Down = (minus > plus) and (adx > ADX_T) sideways = (adx < ADX_T) Bar_Color = sideways ? color.new(color.yellow, 0) : D_Up ? color.new(color.green, 0) : D_Down ? color.new(color.red, 0) : na //PLOT barcolor(color=Bar_Color) //SPIKES ABOVE AVERAGE VOLUME Avg_Vol = ta.sma(volume, vol_len) Vol_Spike = (1 + (vol_trigger / 100)) * Avg_Vol plotchar(volume > Vol_Spike, "Volume Spike", char = '◉', location = location.bottom, color = color.new(color.aqua, 0), size = size.tiny)
10X Market Direction
https://www.tradingview.com/script/zPaF1ChP-10X-Market-Direction/
Beardy_Fred
https://www.tradingview.com/u/Beardy_Fred/
230
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Beardy_Fred //@version=5 indicator(title="10X Market", overlay = false) //LENGTH INPUTS len = input(14, "Directional Length") ADX_T = input(20, "ADX Length") vol_len = input(20, "Volume Length") //TICKER INPUTS Ticker1= input.symbol(title="Symbol_1", defval="CME_MINI:ES1!") Ticker2= input.symbol(title="Symbol_2", defval="CME_MINI:NQ1!") Ticker3= input.symbol(title="Symbol_3", defval="AMEX:SPY") Ticker4= input.symbol(title="Symbol_4", defval="NASDAQ:QQQ") Ticker5= input.symbol(title="Symbol_5", defval="AMEX:IWM") Ticker6= input.symbol(title="Symbol_6", defval="AMEX:XLC") Ticker7= input.symbol(title="Symbol_7", defval="AMEX:XLY") Ticker8= input.symbol(title="Symbol_8", defval="AMEX:XLP") Ticker9= input.symbol(title="Symbol_9", defval="AMEX:XLE") Ticker10= input.symbol(title="Symbol_10", defval="AMEX:XLF") Ticker11= input.symbol(title="Symbol_11", defval="AMEX:XLV") Ticker12= input.symbol(title="Symbol_12", defval="AMEX:XLI") Ticker13= input.symbol(title="Symbol_13", defval="AMEX:XLB") Ticker14= input.symbol(title="Symbol_14", defval="AMEX:XLRE") Ticker15= input.symbol(title="Symbol_15", defval="AMEX:XLK") Ticker16= input.symbol(title="Symbol_16", defval="AMEX:XLU") // DMI CALCULATIONS up = ta.change(high) down = -ta.change(low) plusDM = na(up) ? na : (up > down and up > 0 ? up : 0) minusDM = na(down) ? na : (down > up and down > 0 ? down : 0) trur = ta.rma(ta.tr, len) plus = fixnan(100 * ta.rma(plusDM, len) / trur) minus = fixnan(100 * ta.rma(minusDM, len) / trur) sum = plus + minus adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), len) //10X CALCULATIONS D_Up = (plus > minus) and (adx > ADX_T) D_Down = (minus > plus) and (adx > ADX_T) uptrend = D_Up downtrend = D_Down sideways = (adx < ADX_T) Bar_Color = sideways ? color.yellow : uptrend ? color.green : downtrend ? color.red : na [SC_1] = request.security(Ticker1, timeframe.period, [Bar_Color]) [SC_2] = request.security(Ticker2, timeframe.period, [Bar_Color]) [SC_3] = request.security(Ticker3, timeframe.period, [Bar_Color]) [SC_4] = request.security(Ticker4, timeframe.period, [Bar_Color]) [SC_5] = request.security(Ticker5, timeframe.period, [Bar_Color]) [SC_6] = request.security(Ticker6, timeframe.period, [Bar_Color]) [SC_7] = request.security(Ticker7, timeframe.period, [Bar_Color]) [SC_8] = request.security(Ticker8, timeframe.period, [Bar_Color]) [SC_9] = request.security(Ticker9, timeframe.period, [Bar_Color]) [SC_10] = request.security(Ticker10, timeframe.period, [Bar_Color]) [SC_11] = request.security(Ticker11, timeframe.period, [Bar_Color]) [SC_12] = request.security(Ticker12, timeframe.period, [Bar_Color]) [SC_13] = request.security(Ticker13, timeframe.period, [Bar_Color]) [SC_14] = request.security(Ticker14, timeframe.period, [Bar_Color]) [SC_15] = request.security(Ticker15, timeframe.period, [Bar_Color]) [SC_16] = request.security(Ticker16, timeframe.period, [Bar_Color]) // PLOTS // l_width = 2 shape = plot.style_circles hline(19, color=color.gray, linestyle = hline.style_dotted) plot(18, color=SC_1, style=shape, linewidth=l_width) plot(17, color=SC_2, style=shape, linewidth=l_width) hline(16, color=color.gray, linestyle = hline.style_dotted) plot(15, color=SC_3, style=shape, linewidth=l_width) plot(14, color=SC_4, style=shape, linewidth=l_width) plot(13, color=SC_5, style=shape, linewidth=l_width) hline(12, color=color.gray, linestyle = hline.style_dotted) plot(11, color=SC_6, style=shape, linewidth=l_width) plot(10, color=SC_7, style=shape, linewidth=l_width) plot(9, color=SC_8, style=shape, linewidth=l_width) plot(8, color=SC_9, style=shape, linewidth=l_width) plot(7, color=SC_10, style=shape, linewidth=l_width) plot(6, color=SC_11, style=shape, linewidth=l_width) plot(5, color=SC_12, style=shape, linewidth=l_width) plot(4, color=SC_13, style=shape, linewidth=l_width) plot(3, color=SC_14, style=shape, linewidth=l_width) plot(2, color=SC_15, style=shape, linewidth=l_width) plot(1, color=SC_16, style=shape, linewidth=l_width) hline(0, color=color.gray, linestyle = hline.style_dotted) //TICKER LABELS// Tick_Style = label.style_none Tick_Color = color.new(color.white, 0) Tick_Size = size.small Tick_Pos = bar_index + 2 // distance label is from 1st dot getName(_str) => string[] _pair = str.split(_str, ":") string[] _chars = str.split(array.get(_pair, 1), "") int _len = array.size(_chars) - 0 string[] _substr = array.new_string(0) _substr := array.slice(_chars, 0, _len) string _return = array.join(_substr, "") L1= label.new(Tick_Pos, 17.75, text=getName(Ticker1), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L1[1]) L2= label.new(Tick_Pos, 16.75, text=getName(Ticker2), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L2[1]) L3= label.new(Tick_Pos, 14.75, text=getName(Ticker3), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L3[1]) L4= label.new(Tick_Pos, 13.75, text=getName(Ticker4), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L4[1]) L5= label.new(Tick_Pos, 12.75, text=getName(Ticker5), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L5[1]) L6= label.new(Tick_Pos, 10.75, text=getName(Ticker6), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L6[1]) L7= label.new(Tick_Pos, 9.75, text=getName(Ticker7), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L7[1]) L8= label.new(Tick_Pos, 8.75, text=getName(Ticker8), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L8[1]) L9= label.new(Tick_Pos, 7.75, text=getName(Ticker9), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L9[1]) L10= label.new(Tick_Pos, 6.75, text=getName(Ticker10), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L10[1]) L11= label.new(Tick_Pos, 5.75, text=getName(Ticker11), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L11[1]) L12= label.new(Tick_Pos, 4.75, text=getName(Ticker12), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L12[1]) L13= label.new(Tick_Pos, 3.75, text=getName(Ticker13), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L13[1]) L14= label.new(Tick_Pos, 2.75, text=getName(Ticker14), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L14[1]) L15= label.new(Tick_Pos, 1.75, text=getName(Ticker15), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L15[1]) L16= label.new(Tick_Pos, 0.75, text=getName(Ticker16), style=Tick_Style, textcolor=Tick_Color, size=Tick_Size) label.delete(L16[1])
Elder Force Index With ATR Channels [loxx]
https://www.tradingview.com/script/GNbQ24KL-Elder-Force-Index-With-ATR-Channels-loxx/
loxx
https://www.tradingview.com/u/loxx/
176
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © loxx //@version=5 indicator(title='Elder Force Index With ATR Channels [loxx]', shorttitle='EFIATR [loxx]', format=format.volume, timeframe="", timeframe_gaps=true, max_bars_back = 5000) RMA(x, t) => EMA1 = x EMA1 := na(EMA1[1]) ? x : (x - nz(EMA1[1])) * (1/t) + nz(EMA1[1]) EMA1 EMA(x, t) => EMA1 = x EMA1 := na(EMA1[1]) ? x : (x - nz(EMA1[1])) * (2 / (t + 1)) + nz(EMA1[1]) EMA1 _bpDom(len, bpw, mult) => HP = 0.0 BP = 0.0 Peak = 0.0 Real = 0.0 counter = 0.0 DC = 0.0 alpha2 = (math.cos(0.25 * bpw * 2 * math.pi / len) + math.sin(0.25 * bpw * 2 * math.pi / len) - 1) / math.cos(0.25 * bpw * 2 * math.pi / len) HP := (1 + alpha2 / 2) * (close - nz(close[1])) + (1 - alpha2) * nz(HP[1]) beta1 = math.cos(2 * math.pi / len) gamma1 = 1 / math.cos(2 * math.pi * bpw / len) alpha1 = gamma1 - math.sqrt(gamma1 * gamma1 - 1) BP := 0.5 * (1 - alpha1) * (HP - nz(HP[2])) + beta1 * (1 + alpha1) * nz(BP[1]) - alpha1 * nz(BP[2]) BP := bar_index == 1 or bar_index == 2 ? 0 : BP Peak := 0.991 * Peak Peak := math.abs(BP) > Peak ? math.abs(BP) : Peak Real := Peak != 0 ? BP / Peak : Real DC := nz(DC[1]) DC := DC < 6 ? 6 : DC counter := counter[1] + 1 if ta.crossover(Real, 0) or ta.crossunder(Real, 0) DC := 2 * counter if 2 * counter > 1.25 * nz(DC[1]) DC := 1.25 * DC[1] if 2 * counter < 0.8 * nz(DC[1]) DC := 0.8 * nz(DC[1]) counter := 0 temp_out = mult * DC temp_out //inputs src = input.source(close, title = "Source", group = "Basic Settings") calc_type = input.string("Fixed", title = "Calculation Type", options =["Fixed", "Band-pass Dominant Cycle"], group = "Basic Settings") len = input.int(13, title = "Fixed EFI Period", group = "Fixed Settings") slen = input.int(21, title='Fixed Signal Period', group = "Fixed Settings") atr_sm = input.int(21, title ="Fixed ATR Smoothing Length", group = "Fixed Settings") bp_period = input.int(13, "Band-pass Period", minval = 1, group = "Band-pass") bp_width = input.float(0.20, "Band-pass Width", step = 0.1, group = "Band-pass") cycle_len = input.float(100, "Signal and ATR Percent of Dominant Cycle (%)", step = 1.0, group = "Band-pass")/100 efi_reduction = input.float(75, "EFI Percent of Dominant Cycle (%) ", step = 1.0, group = "Band-pass")/100 len_out_fast = int(nz(_bpDom(bp_period, bp_width, efi_reduction), 1)) < 1 ? 1 : int(nz(_bpDom(bp_period, bp_width, efi_reduction), 1)) len_out_slow = int(nz(_bpDom(bp_period, bp_width, cycle_len), 1)) < 1 ? 1 : int(nz(_bpDom(bp_period, bp_width, cycle_len), 1)) atr_mult1 = input.int(1, title = "ATR Mult Level 1", group = "ATR Multipliers") atr_mult2 = input.int(2, title = "ATR Mult Level 2", group = "ATR Multipliers") atr_mult3 = input.int(3, title = "ATR Mult Level 3", group = "ATR Multipliers") trunc_atr = input.bool(true, title = "Truncate over ATR Mult Level 4?", group = "UI Options") //core calc efi = EMA(ta.change(close) * volume, calc_type == "Fixed" ? len : len_out_fast) sig = EMA(efi, calc_type == "Fixed" ? len : len_out_slow) atr_ema = math.abs(efi[1] - efi) atr_out = RMA(atr_ema, calc_type == "Fixed" ? len : len_out_slow) //atr channel calc atr_high1 = sig + atr_out * atr_mult1 atr_low1 = sig - atr_out * atr_mult1 atr_high2= sig + atr_out * atr_mult2 atr_low2 = sig - atr_out * atr_mult2 atr_high3 = sig + atr_out * atr_mult3 atr_low3 = sig - atr_out * atr_mult3 atr_obhigh = sig + atr_out * (atr_mult3 + 1) atr_oblow = sig - atr_out * (atr_mult3 + 1) efi_out = trunc_atr ? efi > atr_obhigh ? atr_high3 : efi < atr_oblow ? atr_low3 : efi : efi //plot atr channels plot(atr_high1, color = bar_index % 2 == 0 ? na : color.new(color.gray, 30), linewidth = 1, title = "ATR1 High") plot(atr_high2, color = bar_index % 4 == 0 ? na : color.new(color.gray, 30), linewidth = 1, title = "ATR2 High") plot(atr_high3, color = color.new(color.gray, 30), linewidth = 2, title = "ATR3 High") plot(atr_low1, color = bar_index % 2 == 0 ? na : color.new(color.gray, 30), linewidth = 1, title = "ATR1 Low") plot(atr_low2, color = bar_index % 4 == 0 ? na : color.new(color.gray, 30), linewidth = 1, title = "ATR2 Low") plot(atr_low3, color = color.new(color.gray, 30), linewidth = 2, title = "ATR3 Low") //plot main plot(0, color=color.gray, style = plot.style_circles, title='Zero Line', linewidth = 2) plot(sig, color=color.new(color.white, 0), title='Signal', linewidth = 2) plot(efi_out, color = #4f6cdf, title='EFI', linewidth = 2) //plot shapes plot(efi_out >= atr_high3 ? efi_out : na, style = plot.style_circles, linewidth = 3, color = #D2042D, title = "Over ATR4 High") plot(efi_out <= atr_low3 ? efi_out : na, style = plot.style_circles, linewidth = 3, color = #2DD204, title = "Over ATR4 Low")
RedK Auto-Stepping Ladder Trader
https://www.tradingview.com/script/jja8TYjc-RedK-Auto-Stepping-Ladder-Trader/
RedKTrader
https://www.tradingview.com/u/RedKTrader/
2,367
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © RedKTrader //@version=5 indicator(title='RedK Auto-Step Ladder Trader', shorttitle='Ladder_Trader v2.0', overlay=true, timeframe='', timeframe_gaps=false) // =================================================================================================================== // Functions Section // =================================================================================================================== // step function (version 2) // this function picks a step size based on the price range // it will then scale the step value up/down based on TF changes // change and personalize these ranges as needed f_step(x) => initstep = x < 2 ? 0.01 : x < 5 ? 0.02 : x < 10 ? 0.10 : x < 30 ? 0.20 : x < 100 ? 1.00 : x < 300 ? 2.00 : x < 500 ? 5.00 : x < 1000 ? 10.0 : x < 2000 ? 20.0 : x < 5000 ? 50.0 : x < 10000 ? 100.0 : x < 20000 ? 200.0 : x < 50000 ? 500. : 1000.0 //Adjust step value up or down for different timeframes adjstep = timeframe.isweekly ? initstep * 2 : timeframe.ismonthly ? initstep * 5 : timeframe.isintraday and timeframe.multiplier > 60 ? initstep / 2 : timeframe.isintraday and timeframe.multiplier <= 60 ? initstep / 5 : initstep // need to replace the 4's in weekly and minutes with 5's // cause we want to track the mental increments of traders - round values are more effective _incstr = str.tostring(adjstep) _newstr = str.replace_all(_incstr, '4', '5') str.tonumber(_newstr) // ============================================================================= // the rounding function chooses the type of step rounding to apply // we can use either a regular rounding up/down to nearest step (ex: for step size = 10, a value of 17 becomes 20 and a value of 13 becomes 10) // or an integer type, which considers only the "fully completed" step level (ex: for step size = 10, both values of 13 and 17 become 10) f_rounding(_value, _step, _option) => _option == 'Round up/down' ? math.round(_value / _step) * _step : int(_value / _step) * _step //============================================================================== // Compund Ratio Moving Average function f_CoraWave(_source, _length, _s) => numerator = 0.0, denom = 0.0 c_weight = 0.0, r_multi = 2.0 Start_Wt = 0.01 // Start Weight & r_multi are set to basic values here. End_Wt = _length // use length as initial End Weight to calculate base "r" r = math.pow(End_Wt / Start_Wt, 1 / (_length - 1)) - 1 base = 1 + r * r_multi for i = 0 to _length - 1 by 1 c_weight := Start_Wt * math.pow(base, _length - i) numerator += _source[i] * c_weight denom += c_weight denom cora_raw = numerator / denom cora_wave = ta.wma(cora_raw, _s) cora_wave // ======================================================================================================================================================== // inputs // ======================================================================================================================================================== avgtype = input.string (title='Ladder Line Type', defval='Donchian Midline', options=['CoRa_Wave', 'Donchian Midline'], inline='MA Type') length = input.int (title='  Length', defval=10, minval=1, inline='MA Type') price = input.source (title='(CoRa Only) Source', defval=hlc3, inline='Cora Only') smooth = input.int (title='Smoothing', defval=3, minval=1, inline='Cora Only') s_use = input.bool (title='', defval=true, inline='Step', group='Step') s_size = input.float (title='Step        Size [0 = Auto]', defval=0.0, minval=0, inline='Step', group='Step') r_option = input.string (title='Step Calculation', defval='Round up/down', options=['Round up/down', 'Whole Step'], group='Step') g_source = input.source (title='Source', defval=hlc3, inline='Signal', group='Signal') g_length = input.int (title='Length', defval=5, minval=2, inline='Signal', group='Signal') g_smooth = input.int (title='Smooth', defval=3, minval=1, inline='Signal', group='Signal') tr_show = input.bool (title='', defval=true, inline='ATR Envelope', group='Envelopes') tr_len = input.int (title='ATR Envelope   Length', defval=20, minval=0, step=1, inline='ATR Envelope', group='Envelopes') tr_multi = input.float (title='Multi', defval=1.25, minval=0, step=0.25, inline='ATR Envelope', group='Envelopes') e_show = input.bool (title='', defval=false, inline='Pct Envelope', group='Envelopes') e_pct = input.float (title='Pct Envelope           %', defval=2.0, minval=0, step=0.25, inline='Pct Envelope', group='Envelopes') // =================================================================================================================== // Calculation // =================================================================================================================== // Ladder Line calculation ladder = avgtype == 'CoRa_Wave' ? f_CoraWave(price, length, smooth) : (ta.highest(length) + ta.lowest(length)) / 2 //Apply Stepping to Ladder Line -- added condition that base price needs to be > 0.01, as micro prices will break this part //also removed cases with div/0 // -- may come back and fine tune the auto-step algo for micro prices s_apply = s_use and price > 0.01 s = s_apply ? s_size == 0.0 ? f_step(price) : s_size : 0.0 ladder_s = s_apply and s > 0.0 ? f_rounding(ladder, s, r_option) : ladder // Signal Calculation -- signal line is a CoRa_Wave with (default) fast speed and relatively large smoothness (5 & 3) - as a proxy for price Signal = f_CoraWave(g_source, g_length, g_smooth) // Calculate Envelopes e_upper = ladder_s * (1 + e_pct / 100) e_lower = ladder_s * (1 - e_pct / 100) // while the pct envelope is a static absolute value, the ATR will change with each bar // below we use a new ATR value only when the channel step changes - non-stepping/unrestricted ATR is still avaialble by disabling the stepping option ATR = ta.atr(tr_len) * tr_multi ATR_us = ATR ATR_ls = ATR ATR_us := ta.change(ladder_s) != 0 ? ATR : ATR_us[1] ATR_ls := ta.change(ladder_s) != 0 ? ATR : ATR_ls[1] ATR_upper = ladder_s + ATR_us ATR_lower = ladder_s - ATR_ls // =================================================================================================================== // Plot // =================================================================================================================== c_up = color.new(color.aqua, 0) c_dn = color.new(color.orange, 0) c_lad = Signal >= ladder_s ? c_up : c_dn c_env = color.new(color.silver, 50) c_ATR = color.new(color.yellow, 50) //v2.0 - Display the step size on the indicator status line & in the Data Window plotchar(s, title = "Step Size", char = "", location=location.top, color=color.white) //Signal plot is hidden by default - recommend to expose only when tweaking settings plot(Signal, title='Signal', color=color.white, display=display.none) PStyle = plot.style_line plot_ladder = plot(ladder_s, title='Ladder Line', style=PStyle, color=c_lad, linewidth=3) //PStyle1 = plot.style_stepline PStyle1 = plot.style_line //change default plot style to regular line for consistency plot(tr_show ? ATR_upper : na, 'Upper ATR Envelope', style=PStyle1, color=c_ATR) plot(tr_show ? ATR_lower : na, 'Lower ATR Envelope', style=PStyle1, color=c_ATR) plot(e_show ? e_upper : na, 'Upper Pct Envelope', style=PStyle1, color=c_env) plot(e_show ? e_lower : na, 'Lower Pct Envelope', style=PStyle1, color=c_env) // ======================================================================================================================== // v2.0 - Enable alerts for direction change up or down or either // ======================================================================================================================== // alertcondition() supports variable resolution AlertUp = ta.crossover(Signal, ladder_s) AlertDn = ta.crossunder(Signal, ladder_s) alertcondition(AlertUp, "Price Swing Up", "Ladder: Price Swing Up Detected!") // explicit swing up alertcondition(AlertDn, "Price Swing Down", "Ladder: Price Swing Down Detected!") // explicit swing down alertcondition(AlertUp or AlertDn, "Price Swing Up/Down", "Ladder: Price Swing Up/Down Detected!") // Any swing
Sessions & Days Of The Week
https://www.tradingview.com/script/Bgrb2AU8-Sessions-Days-Of-The-Week/
Nowtech
https://www.tradingview.com/u/Nowtech/
431
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Nowtech //@version=5 indicator("Sessions & Days Of The Week", overlay=true, scale=scale.none) //------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // Background Overlay show_frankfurt = input(title='Show Frankfurt', defval=false) frankfurt = input.session(title='Frankfurt Session', defval='0200-1100') show_london = input(title='Show London', defval=true) london = input.session(title='London Session', defval='0300-1200') show_ny = input(title='Show New York', defval=true) ny = input.session(title='New York Session', defval='0800-1700') show_sydney = input(title='Show Sydney', defval=false) sydney = input.session(title='Sydney Session', defval='1700-0200') show_tokyo = input(title='Show Tokyo', defval=true) tokyo = input.session(title='Tokyo Session', defval='1900-0400') ff_color = color.new(color.gray, 95) london_color = color.new(color.green, 95) ny_color = color.new(color.red, 95) sy_color = color.new(color.purple, 95) tokyo_color = color.new(color.blue, 95) is_session(session) => not na(time(timeframe.period, session)) is_frankfurt = is_session(frankfurt) is_london = is_session(london) is_ny = is_session(ny) is_sydney = is_session(sydney) is_tokyo = is_session(tokyo) bgcolor(show_frankfurt and is_frankfurt ? ff_color : na) bgcolor(show_london and is_london ? london_color : na) bgcolor(show_ny and is_ny ? ny_color : na) bgcolor(show_sydney and is_sydney ? sy_color : na) bgcolor(show_tokyo and is_tokyo ? tokyo_color : na) //------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // Days Of The Week bartimeoffset = time - time[1] plotchar(dayofweek == dayofweek.monday, char='M', title='Monday', location=location.bottom, color=color.new(color.purple, 0)) plotchar(dayofweek == dayofweek.tuesday, char='T', title='Tuesday', location=location.bottom, color=color.new(color.blue, 0)) plotchar(dayofweek == dayofweek.wednesday, char='W', title='Wednesday', location=location.bottom, color=color.new(color.green, 0)) plotchar(dayofweek == dayofweek.thursday, char='T', title='Thursday', location=location.bottom, color=color.new(color.orange, 0)) plotchar(dayofweek == dayofweek.friday, char='F', title='Friday', location=location.bottom, color=color.new(color.red, 0)) plotchar(dayofweek == dayofweek.saturday, char='S', title='Saturday', location=location.bottom, color=color.new(color.gray, 0)) plotchar(dayofweek == dayofweek.sunday, char='S', title='Sunday', location=location.bottom, color=color.new(#b2b5be, 0)) //------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // Monthly & Weekly Dividing Lines //Inputs - Weekly Time Break Line i_wb_show_intraday = input.bool(title='Show Intraday', defval=true, group='Week Break') i_wb_show_daily = input.bool(title='Show Daily', defval=false, group='Week Break') //Inputs - Monthly Time Break Line i_mb_show_intraday = input.bool(title='Show Intraday', defval=true, group='Month Break') i_mb_show_daily = input.bool(title='Show Daily', defval=true, group='Month Break') i_mb_show_weekly = input.bool(title='Show Weekly', defval=false, group='Month Break') //Logic show_month_break() => timeframe.isintraday and i_mb_show_intraday or timeframe.isdaily and i_mb_show_daily or timeframe.isweekly and i_mb_show_weekly show_week_break() => timeframe.isintraday and i_wb_show_intraday or timeframe.isdaily and i_wb_show_daily is_new(resolution) => t = time(resolution) not na(t) and (na(t[1]) or t > t[1]) is_new_month() => is_new('M') and show_month_break() is_new_week() => is_new('W') and show_week_break() //Plotting plot(is_new_month() ? 1 : na, style=plot.style_histogram, color=color.new(color.blue, 0), title='Month Breaks', linewidth=2) plot(is_new_week() ? 1 : na, style=plot.style_histogram, color=color.new(color.gray, 0), title='Week Breaks', linewidth=1)
ALMA Trendline
https://www.tradingview.com/script/YlymrRu7-ALMA-Trendline/
syamsularifinirpan
https://www.tradingview.com/u/syamsularifinirpan/
79
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © syamsularifinirpan //@version=5 indicator(title='ALMA Trendline', shorttitle='ALMA Trendline', overlay=true, format=format.price, precision=3) // Price Source with Kalman Filter //value1 = swma(p-p[1]) //value1 = Movement Uncertainty //0.8 = Kalman Gain 1 (The 'Kalman Gain' allows the user to choose how much error to let into the calculation. The smaller this number is the quicker the moving average will approach price action. setting from 0.01-1.1) //0.2 = Ratio of uncertainties 1 (The 'Ratio of Uncertainties' controls how adaptive the moving averages are, increasing this number will increase adaptivity and vice versa for decreasing. setting from 0.01 and above) //value2 = swma(tr) //value2 = Measurement Uncertainty //0.8 = Kalman Gain 2 (The 'Kalman Gain' allows the user to choose how much error to let into the calculation. The smaller this number is the quicker the moving average will approach price action. setting from 0.01-1.1) k_gain1 = input.float(title="k Gain 1", defval=0.8, minval = 0.01, step = 0.01) k_gain2 = input.float(title="k Gain 2", defval=0.8, minval = 0.01, step = 0.01) u_ratio1 = input.float(title="u Ratio 1", defval=0.2, minval = 0.01, step = 0.01) u_ratio2 = input.float(title="u Ratio 2", defval=0.1, minval = 0.01, step = 0.01) f_klmf(_src) => p = _src value1 = float(na) value1 := u_ratio1 * (p - p[1]) + k_gain1 * nz(value1[1]) value2 = float(na) value2 := u_ratio2 * ta.tr + k_gain2 * nz(value2[1]) lambda = math.abs(value1 / value2) alpha = (-math.pow(lambda, 2) + math.sqrt(math.pow(lambda, 4) + 16 * math.pow(lambda, 2)))/8 klmf = float(na) klmf := alpha * p + (1 - alpha) * nz(klmf[1]) klmf kalman_close =f_klmf(close) kalman_open =f_klmf(open) kalman_high =f_klmf(high) kalman_low =f_klmf(low) kalman_hl2 =f_klmf(hl2) kalman_hlc3 =f_klmf(hlc3) kalman_ohlc4 =f_klmf(ohlc4) // ALMA Trend //Using Fast, Slow and Trend ALMA. //Bullish momentum is identified when price is closing above the Dominant Momentum MA, and the Short-term MA is above the Dominant MA. Vice versa for bearish momemntum. //There are in-between points when a trend is not identified, and this is when price closes above or below the Trend ma, but the Short-term MA has not crossed it. //Quick-term ALMA ALMA2_src = close ALMA2_length = 6 ALMA2_offset = 0.85 ALMA2_sigma = 6 kalman_ALMA2 = f_klmf(ALMA2_src) ALMA2 = ta.alma(ALMA2_src, ALMA2_length, ALMA2_offset, ALMA2_sigma) //ALMA Trendline Short_TL_display = input(title='Show Traling Line (ALMA Trendline): On/Off', defval=true) _Short_TL_src = input.string(title=' >>ALMA Trendline Source: default=kalman_close)', defval='kalman_close', options=['Close', 'Open', 'High', 'Low', 'hl2', 'hlc3', 'ohlc4', 'kalman_close', 'kalman_open', 'kalman_low', 'kalman_high', 'kalman_hl2', 'kalman_hlc3', 'kalman_ohlc4']) Short_TL_src = _Short_TL_src=="Close"?close: _Short_TL_src=="Open"?open: _Short_TL_src=="High"?high: _Short_TL_src=="Low"?low: _Short_TL_src=="hl2"?hl2: _Short_TL_src=="hlc3"?hlc3: _Short_TL_src=="ohlc4"?ohlc4: _Short_TL_src=="kalman_close"?kalman_close: _Short_TL_src=="kalman_open"?kalman_open: _Short_TL_src=="kalman_low"?kalman_low: _Short_TL_src=="kalman_high"?kalman_high: _Short_TL_src=="kalman_hl2"?kalman_hl2: _Short_TL_src=="kalman_hlc3"?kalman_hlc3:kalman_ohlc4 Short_TL_length = input.int(title=" >>ALMA Trendline Length", defval=18, minval=7, maxval=200) Short_TL_offset = input.float(title=" >>ALMA Trendline Offset", defval=0.85, minval = 0.025, step = 0.025) Short_TL_sigma = input.float(title=" >>ALMA Trendline Sigma", defval=50, minval = 0.5, step = 0.5) Short_TL = ta.alma(Short_TL_src, Short_TL_length, Short_TL_offset, Short_TL_sigma) Short_TL_color = close[1] > Short_TL ? color.new(#66bb6a,50) : color.new(#ef5350,50) plot(Short_TL, color=Short_TL_color, linewidth=2, title="ALMA Trendline")
BTC Risk Metric
https://www.tradingview.com/script/K5YcHwKk-BTC-Risk-Metric/
Skywalking2874
https://www.tradingview.com/u/Skywalking2874/
861
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Skywalking2874 //@version=5 indicator("Risk", overlay = false, max_bars_back=5000) find_ath(_src) => // Returns a series of the ATH value var ath = 0.0 if _src > ath ath := _src ath find_atl(_src) => // Returns a series of the ATL value var atl = 2.5 if _src < atl atl := _src atl threeseventyfour = ta.sma(close, 374) average = (math.log(close) - math.log(threeseventyfour)) * math.pow(bar_index, 0.395) highest_value = find_ath(average) lowest_value = find_atl(average) average_normalized = (average - lowest_value) / (highest_value - lowest_value) price_zero = threeseventyfour * math.exp((0.0*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_one = threeseventyfour * math.exp((0.1*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_two = threeseventyfour * math.exp((0.2*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_three = threeseventyfour * math.exp((0.3*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_four = threeseventyfour * math.exp((0.4*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_five = threeseventyfour * math.exp((0.5*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_six = threeseventyfour * math.exp((0.6*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_seven = threeseventyfour * math.exp((0.7*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_eight = threeseventyfour * math.exp((0.8*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_point_nine = threeseventyfour * math.exp((0.9*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_one = threeseventyfour * math.exp((1.0*(highest_value-lowest_value)+lowest_value)/(math.pow(bar_index, 0.395))) price_zero_string = "" price_point_one_string = "" price_point_two_string = "" price_point_three_string = "" price_point_four_string = "" price_point_five_string = "" price_point_six_string = "" price_point_seven_string = "" price_point_eight_string = "" price_point_nine_string = "" price_one_string = "" risk_prices = input.bool(true, "Display the price corresponding with risk thresholds", "The price associated to each risk threshhold will be displayed when this is turned on") if barstate.islast and risk_prices price_zero_string := str.tostring(math.round(price_zero)) price_point_one_string := str.tostring(math.round(price_point_one)) price_point_two_string := str.tostring(math.round(price_point_two)) price_point_three_string := str.tostring(math.round(price_point_three)) price_point_four_string := str.tostring(math.round(price_point_four)) price_point_five_string := str.tostring(math.round(price_point_five)) price_point_six_string := str.tostring(math.round(price_point_six)) price_point_seven_string := str.tostring(math.round(price_point_seven)) price_point_eight_string := str.tostring(math.round(price_point_eight)) price_point_nine_string := str.tostring(math.round(price_point_nine)) price_one_string := str.tostring(math.round(price_one)) label.new(x=(bar_index+300), y = 0.0, textcolor=color.new(#00a2a2, 0), text="Risk = 0.0 ➔ Price = $"+price_zero_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.1, textcolor=color.new(#19abab, 0), text="Risk = 0.1 ➔ Price = $"+price_point_one_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.2, textcolor=color.new(#32b4b4, 0), text="Risk = 0.2 ➔ Price = $"+price_point_two_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.3, textcolor=color.new(#4cbdbd, 0), text="Risk = 0.3 ➔ Price = $"+price_point_three_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.4, textcolor=color.new(#66c7c7, 0), text="Risk = 0.4 ➔ Price = $"+price_point_four_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.5, textcolor=color.new(#7fd0d0, 0), text="Risk = 0.5 ➔ Price = $"+price_point_five_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.6, textcolor=color.new(#e76666, 0), text="Risk = 0.6 ➔ Price = $"+price_point_six_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.7, textcolor=color.new(#e34c4c, 0), text="Risk = 0.7 ➔ Price = $"+price_point_seven_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.8, textcolor=color.new(#df3232, 0), text="Risk = 0.8 ➔ Price = $"+price_point_eight_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 0.9, textcolor=color.new(#db1919, 0), text="Risk = 0.9 ➔ Price = $"+price_point_nine_string, style=label.style_none, size=size.large) label.new(x=(bar_index+300), y = 1.0, textcolor=color.new(#d80000, 0), text="Risk = 1.0 ➔ Price = $"+price_one_string, style=label.style_none, size=size.large) transparant = color.rgb(0, 0, 0, 100) bar_color = color.rgb(0, 128, 255) gradient0 = color.from_gradient(average_normalized, 0, 0.1, #0000ff, #000bff) gradient1 = color.from_gradient(average_normalized, 0.1, 0.2, #000bff, #0090ff) gradient2 = color.from_gradient(average_normalized, 0.2, 0.3, #0090ff, #00fbff) gradient3 = color.from_gradient(average_normalized, 0.3, 0.4, #00fbff, #00ff7e) gradient4 = color.from_gradient(average_normalized, 0.4, 0.5, #00ff7e, #00ff37) gradient5 = color.from_gradient(average_normalized, 0.5, 0.6, #00ff37, #94ff00) gradient6 = color.from_gradient(average_normalized, 0.6, 0.7, #94ff00, #ffff00) gradient7 = color.from_gradient(average_normalized, 0.7, 0.8, #ffff00, #ffb200) gradient8 = color.from_gradient(average_normalized, 0.8, 0.9, #ffb200, #ff8900) gradient9 = color.from_gradient(average_normalized, 0.9, 1.0, #ff8900, #ff0017) fill0 = color.new(#005555, 61) fill1 = color.new(#005555, 69) fill2 = color.new(#005555, 76) fill3 = color.new(#005555, 83) fill4 = color.new(#005555, 90) fill5 = color.new(#8b0000, 90) fill6 = color.new(#8b0000, 83) fill7 = color.new(#8b0000, 76) fill8 = color.new(#8b0000, 69) fill9 = color.new(#8b0000, 61) bar_color := average_normalized < 0.1 ? gradient0 : average_normalized < 0.2 ? gradient1 : average_normalized < 0.3 ? gradient2 : average_normalized < 0.4 ? gradient3 : average_normalized < 0.5 ? gradient4 : average_normalized < 0.6 ? gradient5 : average_normalized < 0.7 ? gradient6 : average_normalized < 0.8 ? gradient7 : average_normalized < 0.9 ? gradient8 : gradient9 buy0 = hline(0.0, color=transparant, linestyle=hline.style_solid) buy1 = hline(0.1, color=transparant, linestyle=hline.style_solid) buy2 = hline(0.2, color=transparant, linestyle=hline.style_solid) buy3 = hline(0.3, color=transparant, linestyle=hline.style_solid) buy4 = hline(0.4, color=transparant, linestyle=hline.style_solid) buy5 = hline(0.5, color=transparant, linestyle=hline.style_solid) sell0 = hline(0.6, color=transparant, linestyle=hline.style_solid) sell1 = hline(0.7, color=transparant, linestyle=hline.style_solid) sell2 = hline(0.8, color=transparant, linestyle=hline.style_solid) sell3 = hline(0.9, color=transparant, linestyle=hline.style_solid) sell4 = hline(1.0, color=transparant, linestyle=hline.style_solid) fill(buy0, buy1, fill0, "DCA 5x") fill(buy1, buy2, fill1, "DCA 4x") fill(buy2, buy3, fill2, "DCA 3x") fill(buy3, buy4, fill3, "DCA 2x") fill(buy4, buy5, fill4, "DCA 1x") fill(sell0, sell1, fill5, "DCA 1y") fill(sell1, sell2, fill6, "DCA 2y") fill(sell2, sell3, fill7, "DCA 3y") fill(sell3, sell4, fill8, "DCA 4y") plot(average_normalized, color=bar_color, title = "Risk")
ADX Heatmap & Di's + Fib Referencial by [JohnnySnow]
https://www.tradingview.com/script/iW7BvyWE-ADX-Heatmap-Di-s-Fib-Referencial-by-JohnnySnow/
jmgneves
https://www.tradingview.com/u/jmgneves/
135
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © jmgneves // The DMI indicators are generated by the built-in pinescript DMI with exactly the same default values. // For quicker and easier interpretation, ADX line is displayed in a heatmap style. The more absolute difference between both DIs, the more intense the color. // Because some people use 20 ADX reference and others use 25 ADX reference to confirm the trend, I just add both as reference lines:) // Additionally, reference lines were added with default values set to Fib levels // Enjoy //@version=5 indicator(title = "ADX Heatmap & Di's + fib referencial by [JohnnySnow]" , shorttitle = "ADX++", overlay = false) // # ========================================================================= # bgcolor(#000000, transp=30) // # =================== Directional Moving Index Inputs ===================== # di_lenght = input.int(defval = 14, title = "DI Length", minval = 1, inline = "01", group = "🟠 ADX 🟠") sigma_length = input.int(defval = 14, title = "ADX Smoothing", minval = 1, inline = "02", group = "🟠 ADX 🟠") // # =================== Directional Moving Index Inputs ===================== # // # =================== Reference Lines Inputs ===================== # adx_reversal_zone_up_limit = input(25, title = "ADX Reversal Zone (Upper limit)", group = "🟠 Reference Lines Configuration 🟠") adx_reversal_zone_bottom_limit = input(20, title = "ADX Reversal Zone (Lower limit)", group = "🟠 Reference Lines Configuration 🟠") adx_reversal_zone_color = color.new(#fbc02d, transp=50) adx_reference_lines_color = color.new(color.gray, transp=75) adx_reference_line_1 = input(0, title = "ADX reference line 1 x", group = "🟠 Reference Lines Configuration 🟠") adx_reference_line_2 = input(23.6, title = "ADX reference line 2 x", group = "🟠 Reference Lines Configuration 🟠") adx_reference_line_3 = input(38.2, title = "ADX reference line 3 x", group = "🟠 Reference Lines Configuration 🟠") adx_reference_line_4 = input(50, title = "ADX reference line 4 x", group = "🟠 Reference Lines Configuration 🟠") adx_reference_line_5 = input(61.8, title = "ADX reference line 5 x", group = "🟠 Reference Lines Configuration 🟠") adx_reference_line_6 = input(78.6, title = "ADX reference line 6 x", group = "🟠 Reference Lines Configuration 🟠") adx_reference_line_7 = input(100, title = "ADX reference line 7 x", group = "🟠 Reference Lines Configuration 🟠") // # =================== Reference Lines Inputs ===================== # // # ================ Directional Moving Index Calculation =================== # [d_plus,d_minus, adx] = ta.dmi(di_lenght, sigma_length) // # ================ Directional Moving Index Calculation =================== # // # =================== Color Palettes ===================== # green_palette = array.new_color() red_palette = array.new_color() array.push ( green_palette , #e8f5e9 ) array.push ( green_palette , #c8e6c9 ) array.push ( green_palette , #a5d6a7 ) array.push ( green_palette , #a5d6a7 ) array.push ( green_palette , #66bb6a ) array.push ( green_palette , #4caf50 ) array.push ( green_palette , #43a047 ) array.push ( green_palette , #388e3c ) array.push ( green_palette , #2e7d32 ) array.push ( green_palette , #1b5e20 ) array.push ( red_palette, #ffebee ) array.push ( red_palette, #ffcdd2 ) array.push ( red_palette, #ef9a9a ) array.push ( red_palette, #e57373 ) array.push ( red_palette, #ef5350 ) array.push ( red_palette, #f44336 ) array.push ( red_palette, #e53935 ) array.push ( red_palette, #d32f2f ) array.push ( red_palette, #c62828 ) array.push ( red_palette, #b71c1c ) // # =================== Color Palettes ===================== # // # =================== Coloring Methods ===================== # get_adx_color(x, y) => val = int(math.abs(x-y)) ar = (x > y) ? green_palette : red_palette to_return = val>=50 ? array.get(ar, 9) : array.get(ar, int(val/5)) to_return // # =================== Coloring Methods ===================== # // # ================== Directional Moving Index Plotting ==================== # adx_plot = plot(series = adx, color=get_adx_color(d_plus, d_minus), style = plot.style_circles, linewidth=2, title = "ADX") d_minus_plot = plot(series = d_minus, color = color.new(#ef9a9a, 80), title = "+DI") d_plus_plot = plot(series = d_plus, color = color.new(#a5d6a7,80), title = "-DI") fill(d_plus_plot, d_minus_plot, color=get_adx_color(d_plus, d_minus),transp=80) // # ================== Directional Moving Index Plotting ==================== # // # ================== Reversal and Referencial Zones display ==================== # trend_line_reversal_top = hline(adx_reversal_zone_up_limit, color=adx_reversal_zone_color, linestyle=hline.style_solid) trend_line_reversal_bottom = hline(adx_reversal_zone_bottom_limit, color=adx_reversal_zone_color, linestyle=hline.style_solid) fill(trend_line_reversal_top,trend_line_reversal_bottom,color=#fbc02d,transp=90) hline(adx_reference_line_1, color=adx_reference_lines_color, linestyle=hline.style_solid) hline(adx_reference_line_2, color=adx_reversal_zone_color, linestyle=hline.style_solid) hline(adx_reference_line_3, color=adx_reference_lines_color, linestyle=hline.style_solid) hline(adx_reference_line_4, color=adx_reference_lines_color, linestyle=hline.style_solid) hline(adx_reference_line_5, color=adx_reference_lines_color, linestyle=hline.style_solid) hline(adx_reference_line_6, color=adx_reference_lines_color, linestyle=hline.style_solid) hline(adx_reference_line_7, color=adx_reference_lines_color, linestyle=hline.style_solid) // # ================== Reversal and Referencial Zones display ==================== #
Silen's Financials Debt & Equity
https://www.tradingview.com/script/02n7xGkF-Silen-s-Financials-Debt-Equity/
The_Silen
https://www.tradingview.com/u/The_Silen/
50
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © The_Silen //@version=5 indicator("Silen's Financials Debt & Equity", overlay=true, scale = scale.left, format = format.volume) string str= (syminfo.prefix+":"+syminfo.ticker) equity_color = color.new(#BDE1A4,90) debt_color = color.new(#E1A7B7,90) income_color = color.new(#9BDCE1,80) revenue_color = color.new(#A0B4E1,90) Equity = request.financial (str, "TOTAL_EQUITY", "FQ") Debt = request.financial (str, "TOTAL_DEBT", "FQ") Net_Income = request.financial (str, "NET_INCOME", "FQ") Total_Revenue = request.financial (str, "TOTAL_REVENUE", "FQ") plot(Equity, title = "Equity", color = equity_color, style = plot.style_area) plot(Debt, title = "Debt", color = debt_color, style = plot.style_area) plot(Net_Income, title = "Net_Income", color = income_color, style = plot.style_area, display = display.none) plot(Total_Revenue, title = "Total_Revenue", color = revenue_color, style = plot.style_area, display = display.none)
Williams % + SMA
https://www.tradingview.com/script/zAyyWMtc-williams-sma/
olegfedunin
https://www.tradingview.com/u/olegfedunin/
33
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ //@version=5 indicator(title="Williams % + SMA",overlay=true) lwpr=input(14,"Период Williams %") lsma=input(30,"Период SMA") wpr=ta.wpr(lwpr) ssma=ta.sma(close,lsma) cr=ta.crossover(wpr,(-80)) cr1=ta.crossunder(wpr,(-20)) plotshape(cr and close<ssma ? low-(close/20) : 0,style=shape.arrowup,location=location.belowbar,color=color.green,text='BUY',size=size.small) plotshape(cr1 and close>ssma ? low+(close/20) : 0,style=shape.arrowdown,location=location.abovebar,color=color.red,text='SELL',size=size.small)
Smoothed Heiken Ashi - SamX
https://www.tradingview.com/script/1qDfPom0-Smoothed-Heiken-Ashi-SamX/
SamAccountX
https://www.tradingview.com/u/SamAccountX/
858
study
5
MPL-2.0
// This source code provided free and open-source as defined by the terms of the Mozilla Public License 2.0 (https://mozilla.org/MPL/2.0/) // with the following additional requirements: // // 1. Citations for sources and references must be maintained and updated when appropriate // 2. Links to strategy references included in indicator tooptips and/or alerts should be retained to give credit to the original source // while also providing a freely available source of information on proper use and interpretation // // Author: SamAccountX // // The intent of this indicator is to provide a more customizable and refined version of the Smoothed Heiken Ashi indicator. In addition // to converting to Pinescript v5, numerous additional enhancements have been made to improve user customization options, settings // clarity, and provide more meaningful context for user configuration options. // // References: // 1. Forked from "Modified Smoothed Heiken Ashi" by badshah_e_alam - https://www.tradingview.com/script/VCZ9jBC3 // Author above cited additional inspiration from The Secret Mindset channel on YouTube // 2. Indicator above is based on "Smoothed Heiken Ashi Candles v1" by jackvmk - https://www.tradingview.com/script/ROokknI2 // 3. Referernce paper on the original Smoothed HA formulas // https://www.researchgate.net/publication/328811639_SMOOTHED_HEIKIN-ASHI_ALGORITHMS_OPTIMIZED_FOR_AUTOMATED_TRADING_SYSTEMS#read // 4. Reference on the more common implementation formulas (using double-smoothing): // https://www.sierrachart.com/index.php?page=doc/StudiesReference.php&ID=314&Name=Heikin-Ashi_Smoothed // // @version=5 indicator(title='Smoothed Heiken Ashi - SamX', shorttitle='Smoothed HA', overlay=true) // Inputs // Inputs group 1 - Display & Timeframe Settings g_TimeframeSettings = 'Display & Timeframe Settings' time_frame = input.timeframe(title='Timeframe for HA candle calculation', defval='', group=g_TimeframeSettings, tooltip='Select the timeframe to use for calculating the smoothed ' + 'HA candles. The default value is to use the current chart timeframe, but altering this will allow you to have the indicator reflect a higher or lower timeframe. \n\n' + 'Note: Selecting a lower timeframe than the current chart timeframe may not result in more precise candles as the display will still be limited to the current timeframe resolution.') // I decided to add just a couple display-related settings here colorBullish = input.color(title='Color for bullish candle (Close > Open)', defval=color.rgb(255, 255, 255, 0), tooltip='Select the color to use to denote a bullish candle (where price closed above the open). \n\n' + 'Note: Any changes to the "Style" tab will override this setting. Actual doji candles (Open == Close) inherit the color of the previous candle.') colorBearish = input.color(title='Color for bearish candle (Close < Open)', defval=color.rgb(255, 0, 255, 0), tooltip='Select the color to use to denote a bearish candle (where price closed below the open). \n\n' + 'Note: Any changes to the "Style" tab will override this setting. Actual doji candles (Open == Close) inherit the color of the previous candle.') showWicks = input.bool(title="Show Wicks", defval=true, group=g_TimeframeSettings, tooltip='If checked (default), this indicator will paint wicks for the smoothed HA candles. \n\n' + 'This can be helpful with shorter smooting periods, but many people like to hide wicks for longer periods to de-clutter the chart a bit. \n\n' + 'Note: By default, wick color will match the candle body color. This can be overridden in the "Styles" tab.') // Inputs group 2 - Smoothed HA settings g_SmoothedHASettings = 'Smoothed HA Settings' smoothedHALength = input.int(title='HA Price Input Smoothing Length', minval=1, maxval=500, step=1, defval=10, group=g_SmoothedHASettings, tooltip='This input determines the number of time intervals (i.e. candles) ' + 'to use when calculating a single smoothed HA candle. Lower values will be more responsive to momentum shifts, while higher values will be better able to show sustained trends even ' + 'during a moderate pull-back. \n\n' + 'Note: A value of 1 (no matter the moving average type selected) will result in a standard HA candle, which may be desirable if you wish to see both regular and HA candles on the same ' + 'chart simultaneously (in which case you should un-check "Enable double-smoothing" below).') smoothedMAType = input.string(title='Moving Average Calculation', group=g_SmoothedHASettings, options=['Exponential', 'Simple', 'Smoothed', 'Weighted', 'Linear', 'Hull', 'Arnaud Legoux'], defval='Exponential', tooltip='Type of moving average calculation to use ' + 'for calculating the smoothed HA candles (default is Exponential (EMA)).') smoothedHAalmaSigma = input.float(title="ALMA Sigma", defval=6, minval=0, maxval=100, step=0.1, group=g_SmoothedHASettings, tooltip='Standard deviation applied to the ALMA MA. Higher values tend to make the line smoother. \n\n' + 'Only relevant when "Arnaud Legoux" is selected as the MA type above. Default: 6') smoothedHAalmaOffset = input.float(title="ALMA Offset", defval=0.85, minval=0, maxval=1, step=0.01, group=g_SmoothedHASettings, tooltip='Gaussian offset applied to the ALMA MA. Higher values tend to make the line smoother, while lower values make it more responsive. \n\n' + 'Only relevant when "Arnaud Legoux" is selected as the MA type above. Default: 0.85') // Inputs group 3 - Double-smooth settings g_DoubleSmoothingSettings = 'Double-smoothed HA Settings' doDoubleSmoothing = input.bool(title='Enable double-smoothing', defval=true, group=g_DoubleSmoothingSettings, tooltip='Check this box to apply a secondary moving average to further smooth ' + 'the smoothed HA candles. \n\n' + 'While this may seem counter-intuitive, most versions of this indicator do use double-smoothing, hence the default value is true/checked.') doubleSmoothedHALength = input.int(title='HA Second Smoothing Length', minval=1, maxval=500, step=1, defval=10, group=g_DoubleSmoothingSettings, tooltip='This input defines how many of the smoothed HA candle ' + 'price points to include for calculating a double-smoothed HA candle. \n\n' + 'Similar to how the comparable "Smoothed HA Settings" setting above use pure price data to calculate and construct a smoothed HA candle, this will use the output open, high, low, and close ' + 'of the above pre-smoothed candles and apply a second level of smoothing on top of them in a similar method (calculate a new average open, high, low, and close, then apply the HA formula ' + 'to those new values to determing what to print as the output). \n\n' + 'Also, a value of 1 for this setting will be the same as un-checking the "Enable double-smoothing" box.') doubleSmoothedMAType = input.string(title='Double-Smoothing Moving Average Calculation', group=g_DoubleSmoothingSettings, options=['Exponential', 'Simple', 'Smoothed', 'Weighted', 'Linear', 'Hull', 'Arnaud Legoux'], defval='Exponential', tooltip='Type of moving average calculation to use ' + 'for calculating the second smoothing applied to the smoothed HA candles (default is Exponential (EMA)).') doubleSmoothedHAalmaSigma = input.float(title="ALMA Sigma", defval=6, minval=0, maxval=100, step=0.1, group=g_DoubleSmoothingSettings, tooltip='Standard deviation applied to the ALMA MA above. Higher values tend to make the line smoother. \n\n' + 'Only relevant when "Arnaud Legoux" is selected as the MA type above. Default: 6') doubleSmoothedHAalmaOffset = input.float(title="ALMA Offset", defval=0.85, minval=0, maxval=1, step=0.01, group=g_DoubleSmoothingSettings, tooltip='Gaussian offset applied to the ALMA MA above. Higher values tend to make the line smoother, while lower values make it more responsive. \n\n' + 'Only relevant when "Arnaud Legoux" is selected as the MA type above. Default: 0.85') // Define a function for calculating the smoothed moving average, as there is no built-in function for this... smoothedMovingAvg(src, len) => smma = 0.0 // TV will complain about the use of the ta.sma function use inside a function saying that it should be called on each calculation, // but since we're only using it once to set the initial value for the smoothed MA (when the previous smma value is NaN - Not a Number) // and using the previous smma value for each subsequent iteration, this can be safely ignored smma := na(smma[1]) ? ta.sma(src, len) : (smma[1] * (len - 1) + src) / len smma // Define utility functions for calculating HA candle values // HA Open getHAOpen(prevOpen, prevClose) => haOpen = 0.0 haOpen := ((prevOpen + prevClose)/2) haOpen // HA High getHAHigh(o, h, c) => haHigh = 0.0 haHigh := math.max(h, o, c) haHigh // HA Low getHALow(o, l, c) => haLow = 0.0 haLow := math.min(o, l, c) haLow // HA Close getHAClose(o, h, l, c) => haClose = 0.0 haClose := ((o + h + l + c)/4) haClose // Some utility functions for working with the various price manipulations // Get the MA value for an input source and length... getMAValue(src, len, type, isDoubleSmooth) => maValue = 0.0 if (type == 'Exponential') maValue := ta.ema(source=src, length=len) else if (type == 'Simple') maValue := ta.sma(source=src, length=len) else if (type == 'Smoothed') maValue := smoothedMovingAvg(src=src, len=len) else if (type == 'Weighted') maValue := ta.wma(source=src, length=len) else if (type == 'Linear') maValue := ta.linreg(source=src, length=len, offset=0) else if (type == 'Hull') maValue := ta.hma(source=src, length=len) else if (type == 'Arnaud Legoux') maValue := ta.alma(series=src, length=len, offset=(isDoubleSmooth ? doubleSmoothedHAalmaOffset : smoothedHAalmaOffset), sigma=(isDoubleSmooth ? doubleSmoothedHAalmaSigma : smoothedHAalmaSigma)) else maValue := na maValue // Begin active processing code... // Explicitly define our ticker to help ensure that we're always getting ACTUAL price instead of relying on the input // ticker info and input vars (as they tend to inherit the type from what's displayed on the current chart) realPriceTicker = ticker.new(prefix=syminfo.prefix, ticker=syminfo.ticker) // This MAY be unnecessary, but in testing I've found some oddities when trying to use this on varying chart types // like on the HA chart, where the source referece for the MA calculations skews to the values for the current chart type // instead of the expected pure-price values. For example, the 'source=close' reference - 'close' would be actual price // close on a normal candlestick chart, but would be the HA close on the HA chart. actualOpen = request.security(symbol=realPriceTicker, timeframe=time_frame, expression=open, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off) actualHigh = request.security(symbol=realPriceTicker, timeframe=time_frame, expression=high, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off) actualLow = request.security(symbol=realPriceTicker, timeframe=time_frame, expression=low, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off) actualClose = request.security(symbol=realPriceTicker, timeframe=time_frame, expression=close, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off) // Get the MA values from actual price smoothedMA1open = getMAValue(actualOpen, smoothedHALength, smoothedMAType, false) smoothedMA1high = getMAValue(actualHigh, smoothedHALength, smoothedMAType, false) smoothedMA1low = getMAValue(actualLow, smoothedHALength, smoothedMAType, false) smoothedMA1close = getMAValue(actualClose, smoothedHALength, smoothedMAType, false) // Next up is to apply the Heiken Ashi transformation calculations using the above smoothed OHLC values. // This will result in the official "Smoothed Heiken Ashi Candle" // The formulas for the HA open, high, low, and close are noted below in comments, // along with the subsequent code to compute their current values... // // Close = Average of all 4 values for the current candle - open, high, low, and close // (open1MA + high1MA + low1MA + close1MA) / 4 smoothedHAClose = getHAClose(smoothedMA1open, smoothedMA1high, smoothedMA1low, smoothedMA1close) // Open = If the previous open or close resolves to 'NaN' (Not a Number), add the current // values of open1MA and close1MA and divide by 2 to get the average. Otherwise, add the open1MA and close1MA of the previous candle // and take the average value (by dividing by 2) as the HA open // // Since we need to self-reference previous values of this variable, we need to define it with an initial starting value, // then use the mutable operator to update the value if it can smoothedHAOpen = smoothedMA1open smoothedHAOpen := na(smoothedHAOpen[1]) ? smoothedMA1open : getHAOpen(smoothedHAOpen[1], smoothedHAClose[1]) // High = Highest value of the current candle's HA open, high, and HA close // smoothedHAHigh = getHAHigh(smoothedHAOpen, smoothedMA1high, smoothedMA1close) smoothedHAHigh = getHAHigh(smoothedHAOpen, smoothedMA1high, smoothedHAClose) // Low = Lowest value of the current candle's open, low, and close smoothedHALow = getHALow(smoothedHAOpen, smoothedMA1low, smoothedHAClose) // Now to have our fun with double-smoothing... Since we're making this optional, we'll first // start by pre-setting our plot variables to the single-smoothed values. Then check if the // doDoubleSmoothing option is selected. If it is, we'll execute the double-smoothing calculations // and update our plot variables. Otherwise, it'll skip that processing and go right to plotting... openToPlot = smoothedHAOpen closeToPlot = smoothedHAClose highToPlot = smoothedHAHigh lowToPlot = smoothedHALow // Now for the double-smoothing fun... if (doDoubleSmoothing) // So here we have to do the double-smoothing... Fortunately, this is going to be relatively easy // compared to the earlier fun we had with the initial smoothed HA candle calculations. The hard // work calculating the initial smoothed HA candles is done, the second smoothing is then applied // to the values of those smoothed HA candles. // // Double-smoothed Open openToPlot := getMAValue(smoothedHAOpen, doubleSmoothedHALength, doubleSmoothedMAType, true) closeToPlot := getMAValue(smoothedHAClose, doubleSmoothedHALength, doubleSmoothedMAType, true) highToPlot := getMAValue(smoothedHAHigh, doubleSmoothedHALength, doubleSmoothedMAType, true) lowToPlot := getMAValue(smoothedHALow, doubleSmoothedHALength, doubleSmoothedMAType, true) //na // Double-smoothing was disabled by the user, so do nothing else na // Since we will want to color the candle to distinguish between open > close (red) and open < close (green), // we will pre-define our candle color before plotting the actual candle to simplify the 'plotcandle' function's color input. // To help simplify this a bit, we're going to default the candle wick colors to match the candle body's color. Users // should be able to override these defaults in the "Style" configuration tab to their own liking. // // We'll even get fancy and if the current candle is an EXACT doji (open == close), use the previous candle's color // The logical ordering of this conditional goes like this... // First check if the close is greater than the open. If so, return green. // If not, check if the close is less than the open. If so, return red. // If not (which will only occur if the open and close are exactly equal), return the // color used on the previous candle. // // Note: Since we need to take into account the possibility that there is no previous candle, we'll defensively-code // this so that we pre-assign a color (Black and transparent) to our color variable to use as a fail-safe. // // While this is an extreme edge-case, we also want to try and account for the possibility that a pure doji is the // first candle to print. Since it's not easy to check a previous candle's actual color value, we'll work around // this by adding another conditional check to see if the previous candle had a value for 'smoothedHAOpen' // // Like Arty, I prefer colors that really pop, so that's what we're going to use... // Depending on how this looks in the config "Style" tab, I may define these as input variables. candleColor = color.rgb(0, 0, 0, 100) candleColor := (closeToPlot > openToPlot) ? colorBullish : (closeToPlot < openToPlot) ? colorBearish : candleColor[1] // Now we can do a plot of our smoothed HA candles... plotcandle(open=openToPlot, high=highToPlot, low=lowToPlot, close=closeToPlot, title="Smoothed HA", color=candleColor, wickcolor=(showWicks ? candleColor : na), bordercolor=candleColor) // Now for what everyone always loves... Alerts... // The only reasonable alert that comes to mind at present is a a color change alert // (e.g. previous candle printed as bearish color, next candle printed as bullish color, and vice versa). // // While I don't see any reason I'd personally intend to use this as an alert (this indicator is better used as a // trend identification/bias indicator to supplement more responsive signaling indicators), we'll make a couple anyways... // First, we'll define variables as our alert triggers... // For the bullish change, check if the previous candle closed lower than the open. If so, check if the current candle // closed above the open. If both checks are true, signal the alert. isBullishColorChange = ((closeToPlot[1] < openToPlot[1]) ? (closeToPlot > openToPlot ? true : false) : false) // And the inverse for bearish... isBearishColorChange = ((closeToPlot[1] > openToPlot[1]) ? (closeToPlot < openToPlot ? true : false) : false) // Important to note here is the addition of the 'barstate.isconfirmed' to the conditions... This built-in variable only evaluates to 'true' when // the current candle is having it's final calculation performed (it's in the act of closing, and the values calculated will be the final values for that candle) // // As Arty would say, "Wait for the damn candle to close!" - so that's exactly what we're going to do... We will call this a "confirmed" signal... isConfirmedBullishColorChange = isBullishColorChange and barstate.isconfirmed isConfirmedBearishColorChange = isBearishColorChange and barstate.isconfirmed // Now we have our trigger for alerts. Let's start with the older-style alertconditions... alertcondition(condition=isConfirmedBullishColorChange, title="Smoothed HA Bear -> Bull", message="Smoothed Heiken Ashi detected a change in candle direction from bearish to bullish.") alertcondition(condition=isConfirmedBearishColorChange, title="Smoothed HA Bull -> Bear", message="Smoothed Heiken Ashi detected a change in candle direction from bullish to bearish.") // And the newer style alert functions... if (isConfirmedBullishColorChange) alert(freq=alert.freq_once_per_bar_close, message="Smoothed Heiken Ashi detected a change in candle direction from bearish to bullish.") if (isConfirmedBearishColorChange) alert(freq=alert.freq_once_per_bar_close, message="Smoothed Heiken Ashi detected a change in candle direction from bullish to bearish.")
LankouSpreads ema 13 FTX
https://www.tradingview.com/script/4WWaQ8g2-LankouSpreads-ema-13-FTX/
lankou
https://www.tradingview.com/u/lankou/
202
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © lankou //@version=5 indicator('LankouSpreads ema 13 FTX', overlay=false) //detects binacne / ftx // mid = "" // if (syminfo.prefix == "FTX") // mid := "" // if (syminfo.prefix == "BINANCE") // mid := "USDT" ema_period = input(defval=13, title="EMA") // PERP from FTX the_string_perp = "FTX:" + str.replace_all(syminfo.ticker, "USDT", "") + "PERP" symOpen = request.security(the_string_perp, timeframe.period, open) col = color.rgb(255, 255, 255) if ta.ema(symOpen, 13) > ta.ema(open, ema_period) col := color.rgb(50, 195, 220) else col := color.rgb(185, 50, 100) //plot(ta.ema(symOpen - open, 13), color=col, style=plot.style_area) plot(ta.ema(symOpen - open, ema_period), color=col, style=plot.style_columns)
Maximum DrowDown
https://www.tradingview.com/script/CuGSoFBY-Maximum-DrowDown/
tmr0
https://www.tradingview.com/u/tmr0/
43
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © tmr0 //@version=5 indicator("tMDD", format=format.percent, precision=0) max = .0 max := max[1] > high ? max[1] : high dd = low/max - 1 mdd = .0 mdd := mdd[1] < dd ? mdd[1] : dd plot(dd*100, style=plot.style_area, transp=75, color=color.fuchsia) plot(mdd*100, style=plot.style_stepline_diamond, transp=25, color=color.aqua)
LankouSpreads ema 13
https://www.tradingview.com/script/yNtrXj2n-LankouSpreads-ema-13/
lankou
https://www.tradingview.com/u/lankou/
690
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © lankou // v2 //@version=5 indicator('LankouSpreads ema 13 BINANCE', overlay=false) // the_string_perp = syminfo.ticker + 'PERP' // syminfo.prefix // PERP from BINANCE // special shiba case // force underlying asset if perp in name // force binance the_string_perp = "BINANCE:" + str.replace( str.replace(syminfo.ticker, "PERP", "") , "SHIB", "1000SHIB") + "PERP" the_string_not_perp = "BINANCE:" + str.replace( str.replace(syminfo.ticker, "PERP", "") , "SHIB", "1000SHIB") //is a perp syminfo.root symOpen = request.security(the_string_perp, timeframe.period, open) symOpen_underlying = request.security(the_string_not_perp, timeframe.period, open) col = color.rgb(255, 255, 255) ema_period = input(defval=13, title="EMA") if ta.ema(symOpen, ema_period) > ta.ema(symOpen_underlying, ema_period) col := color.rgb(50, 155, 210) else col := color.rgb(185, 0, 100) //plot(ta.ema(symOpen - open, 13), color=col, style=plot.style_area) plot(ta.ema(symOpen - symOpen_underlying, ema_period), color=col, style=plot.style_columns) //debug f_print_source(source, _text) => // Create label on the first bar. var _label = label.new(bar_index, na, _text, xloc.bar_index, yloc.price, color(na), label.style_none, color.white, size.normal, text.align_left) // On next bars, update the label's x and y position, and the text it displays. label.set_xy(_label, bar_index, 0) label.set_text(_label, _text) // f_print_source(symOpen, the_string_perp)
Ranging Market Detector [AstrideUnicorn]
https://www.tradingview.com/script/D8XDWAuA-Ranging-Market-Detector-AstrideUnicorn/
AstrideUnicorn
https://www.tradingview.com/u/AstrideUnicorn/
737
study
5
CC-BY-NC-SA-4.0
// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/ // All rights reserved. // (c) AstrideUnicorn //@version=5 indicator('Ranging Market Detector', shorttitle='RMD') // input paraneters treshold_level = input.float(title='treshold', defval=-0.1, minval=-0.1, maxval=0.5, step=0.01) //Kalman filter calculation p = ohlc4 value1 = 0.0 value2 = 0.0 klmf = 0.0 value1 := 0.2 * (p - p[1]) + 0.8 * nz(value1[1]) value2 := 0.1 * (high - low) + 0.8 * nz(value2[1]) lambda = math.abs(value1 / value2) alpha = (-lambda * lambda + math.sqrt(lambda * lambda * lambda * lambda + 16 * lambda * lambda)) / 8 klmf := alpha * p + (1 - alpha) * nz(klmf[1]) // Calculateing the absolute value of the Kalman filter curve slope klmf_diff = math.abs(klmf - klmf[1]) // Long term average of the Kalman filter slope av_klmf_diff = 1.0 * ta.ema(klmf_diff, 200) // The Kalman filter slope minus the average slope (Decline from the average slope) // This slope decline is divided by the average slope value to normalize it normalized_slope_decline = (klmf_diff - av_klmf_diff) / av_klmf_diff // Condition that defines the trend regime // Slope declined from the average by not less than the given treshold value trend_condition = normalized_slope_decline >= treshold_level // Plot normalized slope decline as histogram plot plot(normalized_slope_decline, style=plot.style_histogram, color=color.new(color.blue, 0), linewidth=3) // Plot treshold level line plot(treshold_level, color=color.new(color.red, 0)) // If trend contition is satisfied color the backfround in blue (trending market regime highlighting), // if not color the background in red (ranging market regime highlighting) bgcol = barstate.isconfirmed ? trend_condition ? color.new(color.blue, 70) : color.new(color.red, 70) : na bgcolor(bgcol, transp=90)
TSI with histogram and MA - SamX
https://www.tradingview.com/script/lRu65vQc-TSI-with-histogram-and-MA-SamX/
SamAccountX
https://www.tradingview.com/u/SamAccountX/
369
study
5
MPL-2.0
// This source code provided free and open-source as defined by the terms of the Mozilla Public License 2.0 (https://mozilla.org/MPL/2.0/) // with the following additional requirements: // // 1. Citations for sources and references must be maintained and updated when appropriate // 2. Links to strategy references included in indicator tooptips and/or alerts should be retained to give credit to the original source // while also providing a freely available source of information on proper use and interpretation // // Author: SamAccountX // // I didn't like the poor way of setting alerts with the original version, nor the way the original settings were set up, // so I decided to make a copy and do some tweaks to help improve upon some of these gaps. // In addition to that, I added the ability to plot a customizable moving average of the TSI values. // // I also took this opportunity to update it to Pinescript v5, and updated the default input value to match the settings for Hawk's Strategy // Vid Ref: <Redacted> // // Original author: ZakariaBouguira // Source reference: https://www.tradingview.com/script/YlRZqh9x-True-Strength-Indicator-with-histogram // //@version=5 indicator('TSI with histogram and MA - SamX', shorttitle='TSI Hist & MA') g_TSISettings = 'TSI Settings' long = input.int(title='Long-Preiod Length', defval=13, group=g_TSISettings, tooltip='Original default: 25') short = input.int(title='Short-Period Length', defval=6, group=g_TSISettings, tooltip='Original default: 13') signal = input.int(title='Signal Preiod Length', defval=4, group=g_TSISettings, tooltip='Original default: 13') priceSource = input.source(title='Source for price', defval=close, group=g_TSISettings, tooltip='Source for price information. Default: Close') useRealPrice = input.bool(title='Force TSI calculations to use real price instead of chart price', defval=true, group=g_TSISettings, tooltip='If enabled (default), this option ' + 'will force the indicator to pull actual price data for the source indicated above. \n\n' + 'While the is not necessary for normal candlestick charts, it may be desirable for non-standard charts like Heiken Ashi, as the TV default behavior is ' + 'to use values from the current chart type for open, high, low, and close.') showHist = input.bool(title='Show TSI Histogram', defval=true, group=g_TSISettings, tooltip='Show the TSI Histogram along the 0 line. Default value: checked') showTSIFill = input.bool(title='Show TSI colored fill', defval=true, group=g_TSISettings, tooltip='Fill the area between the TSI and the TSI Signal. Default fill color will be ' + 'green if the TSI is above the signal line, and red if below the signal line. \n\n' + 'Default value: checked') g_MASettings = "TSI Moving Average Settings" showFloatingTSIMA = input.bool(title='Show floating TSI Moving Average', defval=true, group=g_MASettings, tooltip='Show a floating moving average line for the TSI value. ') maType = input.string(title='TSI Moving Average Calculation', group=g_MASettings, options=['Exponential', 'Simple', 'Smoothed', 'Weighted', 'Linear', 'Hull', 'Arnaud Legoux'], defval='Exponential', tooltip='Type of moving average calculation to use (default is Exponential (EMA)). \n\n' + 'Only relevant when "Show floating TSI Moving Average" above is enabled.') maLength = input.int(title="TSI MA Length", defval=50, minval=1, step=1, group=g_MASettings, tooltip="Number of historical TSI values to use for calculating the MA value. Lower numbers will react more quickly, while higher numbers will better depict longer trends.") g_ALMASettings = 'ALMA Additional Settings' almaSigma = input.float(title="Sigma", defval=6, minval=0, maxval=100, step=0.1, group=g_ALMASettings, tooltip='Standard deviation applied to the MA. Higher values tend to make the line smoother. Default: 6') almaOffset = input.float(title="Offset", defval=0.85, minval=0, maxval=1, step=0.01, group=g_ALMASettings, tooltip='Standard deviation applied to the MA. Higher values tend to make the line smoother, while lower values make it more responsive. Default: 0.85') g_OBOSSettings = 'Overbought/Oversold Settings' obLevel = input.int(title='Level', defval=50, minval=1, maxval=99, step=1, group=g_OBOSSettings, inline="obos") showOBOS = input.bool(title='Show OB/OS ', defval=true, group=g_OBOSSettings, inline="obos", tooltip='Show horizontal lines for over-bought and over-sold levels on the TSI. \n\n' + 'Select the desired levels for the lines on the left (the overbought line will be above the zero line, oversold will be below the zero line). \n\n' + 'The checkbox will enable/disable drawing the lines.') g_AlertSettings = "Alert Settings" useNewAlerts = input.bool(title='Use Indicator-native alerts', defval=true, group="Alert Settings", tooltip='If enabled (default), alerting will be handled natively by the indicator code instead of the general TradingView alerts. \n\n' + 'This is helpful for users with the free version of TradingView as it has a limition of a single traditional alert by allowing the user to configure a single alert in Tradingview ' + 'that will then be dynamically populated and evaluated by the indicator script itself. \n\n' + 'To configure the TV alert for this, go to Create Alert. In the Conditions section, select the name of the indicator for the first drop-down box, and in the second drop-down box you ' + 'will select "Any alert() function call"') doTSICrossingSignalAlert = input.bool(title='TSI Crossing Signal Line', group=g_AlertSettings, defval=true, tooltip='Select this to trigger alerts when the TSI crosses the Signal line. \n\n' + 'This is the most common alert for TSI.') doTSICrossingMAAlert = input.bool(title='TSI Crossing Moving Average', group=g_AlertSettings, defval=true, tooltip='Select this to trigger alerts when the TSI crosses the floating moving average line. \n\n' + 'Note: "Show floating TSI Moving Average" must be checked for this alert to trigger.') doTSICrossingOBOSAlert = input.bool(title='TSI Crossing OB/OS Lines', group=g_AlertSettings, defval=true, tooltip='Select this to trigger alerts when the TSI crosses the either the over-bought or over-sold line. \n\n' + 'Note: "Show OB/OS" must be checked for this alert to trigger.') unusedInput = input(title='Additional info on TSI and how it might be used: https://www.investopedia.com/terms/t/tsi.asp', defval=true, group="Other") // Function to calculate smoothed moving average... smoothedMovingAvg(src, len) => smma = 0.0 // TV will complain about the use of the ta.sma function use inside a function saying that it should be called on each calculation, // but since we're only using it once to set the initial value for the smoothed MA (when the previous smma value is NaN - Not a Number) // and using the previous smma value for each subsequent iteration, this can be safely ignored smma := na(smma[1]) ? ta.sma(src, len) : (smma[1] * (len - 1) + src) / len smma // Explicitly define our ticker to help ensure that we're always getting ACTUAL price instead of relying on the input // ticker info and input vars (as they tend to inherit the type from what's displayed on the current chart) realPriceTicker = ticker.new(prefix=syminfo.prefix, ticker=syminfo.ticker) // This MAY be unnecessary, but in testing I've found some oddities when trying to use this on varying chart types // like on the HA chart, where the source referece for the price skews to the values for the current chart type // instead of the expected pure-price values. For example, the 'source=close' reference - 'close' would be actual price // close on a normal candlestick chart, but would be the HA close on the HA chart. actualPrice = request.security(symbol=realPriceTicker, timeframe='', expression=priceSource, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off) //price = priceSource price = useRealPrice ? actualPrice : priceSource double_smooth(src, long, short) => fist_smooth = ta.ema(src, long) ta.ema(fist_smooth, short) pc = ta.change(price) double_smoothed_pc = double_smooth(pc, long, short) double_smoothed_abs_pc = double_smooth(math.abs(pc), long, short) tsi_value = 100 * (double_smoothed_pc / double_smoothed_abs_pc) signal_line = ta.ema(tsi_value, signal) hist = tsi_value - signal_line // Identify if TSI is above or below signal line tsiBullish = tsi_value > signal_line tsiBearish = tsi_value < signal_line // Plot the histogram first so it will be layered behind the TSI and TSI Signal lines plot(showHist == true ? hist : na, title='TSI Histogram', color=color.rgb(207, 80, 207, 70), style=plot.style_area) // mid-line hline(price=0, title='Zero (Mid Line)', color=color.rgb(127, 127, 127, 0), linestyle=hline.style_dashed) // Define the colors for the TSI so we can re-use them in the fill zone as well... tsiBullColor = color.rgb(0, 255, 0, 0) tsiBearColor = color.rgb(255, 0, 0, 0) // Plot the TSI and TSI Signal lines pSignal = plot(signal_line, title='TSI Signal Line', color=color.rgb(0, 127, 255, 0)) pTSI = plot(tsi_value, title='TSI', color=tsiBullish ? tsiBullColor : tsiBearish ? tsiBearColor : color.rgb(127, 127, 127, 0), display=display.all) // TSI MA fun floatingMA = maType == 'Exponential' ? ta.ema(tsi_value, maLength) : maType == 'Simple' ? ta.sma(tsi_value, maLength) : maType == 'Weighted' ? ta.wma(tsi_value, maLength) : maType == 'Linear' ? ta.linreg(tsi_value, maLength, 0) : maType == 'Hull' ? ta.hma(tsi_value, maLength) : maType == 'Smoothed' ? smoothedMovingAvg(tsi_value, maLength) : maType == 'Arnaud Legoux' ? ta.alma(tsi_value, maLength, almaOffset, almaSigma) : na pFloatingMA = plot(showFloatingTSIMA ? floatingMA : na, title="TSI Floating MA", color=color.rgb(255, 255, 0, 0)) // An added bonus - area fill between the TSI and the signal line, shaded to // indicate whether the TSI is above or below the signal line... // // Similar to the histogram, plot this first so that the lines end up on top of it... fillColor = tsiBullish ? color.new(tsiBullColor, 63) : tsiBearish ? color.new(tsiBearColor, 63) : na fill(pTSI, pSignal, color=showTSIFill ? fillColor : na, title='Fill Color') // Draw the OB/OS lines if enabled... osLevel = 0 - obLevel obLine = hline(price=showOBOS ? obLevel : na, title='OB Line', color=color.rgb(255, 0, 0, 15), linestyle=hline.style_dashed) osLine = hline(price=showOBOS ? osLevel : na, title='OS Line', color=color.rgb(0, 255, 0, 30), linestyle=hline.style_dashed) // Traditional AlertConditions // TSI crossing Signal Line isCrossAbove = tsiBearish[1] and tsiBullish isCrossBelow = tsiBullish[1] and tsiBearish alertcondition(isCrossAbove and barstate.isconfirmed, title='TSI Cross Above Signal Line', message='TSI Crossed Above Signal line') alertcondition(isCrossBelow and barstate.isconfirmed, title='TSI Cross Below Signal Line', message='TSI Crossed Below Signal line') // TSI crossing OB and OS lines // // Even though the OB and OS lines are fixed-values, we will be forward-looking to the potential of adding dynamic OB/OS levels based on the MA // line and some as-yet-unknown scaling factor (similar to bollinger bands on a price chart). To that end, we'll be consistent in our candle // references for all of the OB/OS comparisons for the crossover triggers so that we don't have to refactor them later should that enhancement // be made at some point in the future. // // While I could (and probably should) use the Pinescript 'crossover' and 'crossunder' built-in functions, it's generally better // to be consistent in how you code similar logic in a given script like this rather than playing with new toys (code/functions). // Since I manually calculated the TSI crossover/under, I'll just go ahead and do the same for the OB and OS crosses as I don't // feel like going back to refactor the TSI cross logic (developer's perogative in this case). // // TSI crossing OS line // Note: We need to be mindful of the impact of negative numbers in comparisons for these... // For example, -60 is less than -50, and -30 is greater than -40 // Cross-above isCrossIntoOS = (tsi_value < osLevel and tsi_value[1] > osLevel[1]) ? true : false alertcondition(isCrossIntoOS and showOBOS and barstate.isconfirmed, title='TSI Crossed Into Over-sold', message='TSI Crossed Into Over-sold') // Cross-below isCrossOutOfOS = (tsi_value > osLevel and tsi_value[1] < osLevel[1]) ? true : false alertcondition(isCrossOutOfOS and showOBOS and barstate.isconfirmed, title='TSI Crossed Out Of Over-sold', message='TSI Crossed Out Of Over-sold') // // TSI crossing OB line // Cross-above isCrossIntoOB = (tsi_value > obLevel and tsi_value[1] < obLevel[1]) ? true : false alertcondition(isCrossIntoOB and showOBOS and barstate.isconfirmed, title='TSI Crossed Into Over-bought', message='TSI Crossed Into Over-bought') // Cross-below isCrossOutOfOB = (tsi_value < obLevel and tsi_value[1] > obLevel[1]) ? true : false alertcondition(isCrossIntoOB and showOBOS and barstate.isconfirmed, title='TSI Crossed Out Of Over-bought', message='TSI Crossed Out Of Over-bought') // TSI crossing MA line. Even though it's possible for the floating MA value to be negative, // the relationship between the TSI and MA lines will always be consistent for these cases. // Cross Above isTSICrossAboveMA = (tsi_value > floatingMA and tsi_value[1] < floatingMA[1]) ? true : false alertcondition(isTSICrossAboveMA and showFloatingTSIMA and barstate.isconfirmed, title='TSI Crossed Above Moving Average', message='TSI Crossed Above Moving Average') // Cross Below isTSICrossBelowMA = (tsi_value < floatingMA and tsi_value[1] > floatingMA[1]) ? true : false alertcondition(isTSICrossBelowMA and showFloatingTSIMA and barstate.isconfirmed, title='TSI Crossed Below Moving Average', message='TSI Crossed Below Moving Average') if (useNewAlerts) // Get date/time for use in alert... // So there is unfortunately no way to resolve this to the user's display timezone, so nixing it to reduce confusion... // var now = timenow // var date = str.tostring(str.tostring(dayofmonth(now)) + '/' + str.tostring(month(now)) + '/' + str.tostring(year(now)) + ' - ' + str.tostring(hour(now))+ ':' + str.tostring(minute(now)) + ':' + str.tostring(second(now))) // // syminfo.tickerid works well for candlestick charts, but returns some odd additional data on other chart types like HA candles. Therefore, we're going to explicitly construct // the "standard" output format of "Exchange:Symbol" for use in the alerts // var sym = (syminfo.prefix + ':' + syminfo.ticker) // // Native alerts for TSI crossing signal line if (isCrossBelow and doTSICrossingSignalAlert and barstate.isconfirmed) var m = 'TSI Crossed Below Signal Line on ' + str.tostring(sym) + ', ' + timeframe.period + ' timeframe. Check for additional confluences like being above the mid line (overbought).' alert(str.tostring(m), alert.freq_once_per_bar_close) if (isCrossAbove and doTSICrossingSignalAlert and barstate.isconfirmed) var m = 'TSI Crossed Above Signal Line on ' + str.tostring(sym) + ', ' + timeframe.period + ' timeframe. Check for additional confluences like being below the mid line (oversold).' alert(str.tostring(m), alert.freq_once_per_bar_close) // // Native alerts for TSI crossing above then below the OS line if (isCrossIntoOS and showOBOS and doTSICrossingOBOSAlert and barstate.isconfirmed) var m = 'TSI Crossed Above (Into) Over-sold Line on ' + str.tostring(sym) + ', ' + timeframe.period + ' timeframe. \n\n' + 'This may indicate possible over-extension prior to a consolidation or reversal.' alert(str.tostring(m), alert.freq_once_per_bar_close) if (isCrossOutOfOS and showOBOS and doTSICrossingOBOSAlert and barstate.isconfirmed) var m = 'TSI Crossed Below (Out Of) Over-sold Line on ' + str.tostring(sym) + ', ' + timeframe.period + ' timeframe. \n\n' + 'This may indicate price correction starting after being over-extended.' alert(str.tostring(m), alert.freq_once_per_bar_close) // // Native alerts for TSI crossing above then below the OB line if (isCrossIntoOB and showOBOS and doTSICrossingOBOSAlert and barstate.isconfirmed) var m = 'TSI Crossed Above (Into) Over-bought Line on ' + str.tostring(sym) + ', ' + timeframe.period + ' timeframe. \n\n' + 'This may indicate possible over-extension prior to a consolidation or reversal.' alert(str.tostring(m), alert.freq_once_per_bar_close) if (isCrossOutOfOB and showOBOS and doTSICrossingOBOSAlert and barstate.isconfirmed) var m = 'TSI Crossed Below (Out Of) Over-bought Line on ' + str.tostring(sym) + ', ' + timeframe.period + ' timeframe. \n\n' + 'This may indicate price correction starting after being over-extended.' alert(str.tostring(m), alert.freq_once_per_bar_close) // // Native alerts for TSI crossing the TSI MA line if (isTSICrossAboveMA and showFloatingTSIMA and doTSICrossingMAAlert and barstate.isconfirmed) var m = 'TSI Crossed Above Floating MA Line on ' + str.tostring(sym) + ', ' + timeframe.period + ' timeframe. \n\n' + 'This may indicate a shift in market momentum into a bullish bias.' alert(str.tostring(m), alert.freq_once_per_bar_close) if (isTSICrossBelowMA and showFloatingTSIMA and doTSICrossingMAAlert and barstate.isconfirmed) var m = 'TSI Crossed Below Floating MA Line on ' + str.tostring(sym) + ', ' + timeframe.period + ' timeframe. \n\n' + 'This may indicate a shift in market momentum into a bearish bias.' // Testing... //plotshape(series=(isCrossIntoOS and showOBOS and doTSICrossingOBOSAlert and barstate.isconfirmed) ? 1 : na, title="Test Alert Conditions", style=shape.diamond, size=size.tiny, color=color.rgb(255, 255, 0, 0), location=location.absolute) //plotshape(series=(isCrossOutOfOS and showOBOS and doTSICrossingOBOSAlert and barstate.isconfirmed) ? 1 : na, title="Test Alert Conditions 2", style=shape.diamond, size=size.tiny, color=color.rgb(255, 0, 255, 0), location=location.absolute)
BANK NIFTY Constituents Technical Rating [tanayroy]
https://www.tradingview.com/script/bXrCRu9w-BANK-NIFTY-Constituents-Technical-Rating-tanayroy/
tanayroy
https://www.tradingview.com/u/tanayroy/
332
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © tanayroy //@version=5 indicator("BANK NIFTY Constituents Technical Rating [tanayroy]", shorttitle='BN Heatmap',overlay=true) //all 12 constuients of bank nifty gp='Bank Nifty Constituents' i_tricker_symbols_1=input.symbol('NSE:HDFCBANK',title='Symbol I',group=gp) i_tricker_symbols_2=input.symbol('NSE:ICICIBANK',title='Symbol II',group=gp) i_tricker_symbols_3=input.symbol('NSE:KOTAKBANK',title='Symbol III',group=gp) i_tricker_symbols_4=input.symbol('NSE:AXISBANK',title='Symbol IV',group=gp) i_tricker_symbols_5=input.symbol('NSE:INDUSINDBK',title='Symbol V',group=gp) i_tricker_symbols_6=input.symbol('NSE:BANDHANBNK',title='Symbol VI',group=gp) i_tricker_symbols_7=input.symbol('NSE:SBIN',title='Symbol VII',group=gp) i_tricker_symbols_8=input.symbol('NSE:FEDERALBNK',title='Symbol VIII',group=gp) i_tricker_symbols_9=input.symbol('NSE:PNB',title='Symbol IX',group=gp) i_tricker_symbols_10=input.symbol('NSE:IDFCFIRSTB',title='Symbol X',group=gp) i_tricker_symbols_11=input.symbol('NSE:AUBANK',title='Symbol XI',group=gp) i_tricker_symbols_12=input.symbol('NSE:RBLBANK',title='Symbol XII',group=gp) gp2='Timeframe' mtf2 = input.timeframe("1D", "", group=gp2) colBuy = input.color(#5b9cf6, "Buy       ", group="Color Settings", inline="Buy Colors") colStrongBuy = input.color(#2962ff, "", group="Color Settings", inline="Buy Colors") colNeutral = input.color(#a8adbc, "Neutral ", group="Color Settings", inline="Neutral") colSell = input.color(#ef9a9a, "Sell     ", group="Color Settings", inline="Sell Colors") colStrongSell = input.color(#f44336, "", group="Color Settings", inline="Sell Colors") tableTitleColor = input.color(#295b79, "Headers", group="Color Settings", inline="Headers") ratingSignal = "All" roc_length=1 //Technichal rating taken from @tradingview built in indicator // Awesome Oscillator AO() => ta.sma(hl2, 5) - ta.sma(hl2, 34) // Stochastic RSI StochRSI() => rsi1 = ta.rsi(close, 14) K = ta.sma(ta.stoch(rsi1, rsi1, rsi1, 14), 3) D = ta.sma(K, 3) [K, D] // Ultimate Oscillator tl() => close[1] < low ? close[1]: low uo(ShortLen, MiddlLen, LongLen) => Value1 = math.sum(ta.tr, ShortLen) Value2 = math.sum(ta.tr, MiddlLen) Value3 = math.sum(ta.tr, LongLen) Value4 = math.sum(close - tl(), ShortLen) Value5 = math.sum(close - tl(), MiddlLen) Value6 = math.sum(close - tl(), LongLen) float UO = na if Value1 != 0 and Value2 != 0 and Value3 != 0 var0 = LongLen / ShortLen var1 = LongLen / MiddlLen Value7 = (Value4 / Value1) * (var0) Value8 = (Value5 / Value2) * (var1) Value9 = (Value6 / Value3) UO := (Value7 + Value8 + Value9) / (var0 + var1 + 1) UO // Ichimoku Cloud donchian(len) => math.avg(ta.lowest(len), ta.highest(len)) ichimoku_cloud() => conversionLine = donchian(9) baseLine = donchian(26) leadLine1 = math.avg(conversionLine, baseLine) leadLine2 = donchian(52) [conversionLine, baseLine, leadLine1, leadLine2] calcRatingMA(ma, src) => na(ma) or na(src) ? na : (ma == src ? 0 : ( ma < src ? 1 : -1 )) calcRating(buy, sell) => buy ? 1 : ( sell ? -1 : 0 ) price_change_close(_src,_length)=> roc = 100 * (_src - _src[_length])/_src[_length] calcRatingAll() => //============== MA ================= SMA10 = ta.sma(close, 10) SMA20 = ta.sma(close, 20) SMA30 = ta.sma(close, 30) SMA50 = ta.sma(close, 50) SMA100 = ta.sma(close, 100) SMA200 = ta.sma(close, 200) EMA10 = ta.ema(close, 10) EMA20 = ta.ema(close, 20) EMA30 = ta.ema(close, 30) EMA50 = ta.ema(close, 50) EMA100 = ta.ema(close, 100) EMA200 = ta.ema(close, 200) HullMA9 = ta.hma(close, 9) // Volume Weighted Moving Average (VWMA) VWMA = ta.vwma(close, 20) [IC_CLine, IC_BLine, IC_Lead1, IC_Lead2] = ichimoku_cloud() // ======= Other ============= // Relative Strength Index, RSI RSI = ta.rsi(close,14) // Stochastic lengthStoch = 14 smoothKStoch = 3 smoothDStoch = 3 kStoch = ta.sma(ta.stoch(close, high, low, lengthStoch), smoothKStoch) dStoch = ta.sma(kStoch, smoothDStoch) // Commodity Channel Index, CCI CCI = ta.cci(close, 20) // Average Directional Index float adxValue = na, float adxPlus = na, float adxMinus = na [P, M, V] = ta.dmi(14, 14) adxValue := V adxPlus := P adxMinus := M // Awesome Oscillator ao = AO() // Momentum Mom = ta.mom(close, 10) // Moving Average Convergence/Divergence, MACD [macdMACD, signalMACD, _] =ta.macd(close, 12, 26, 9) // Stochastic RSI [Stoch_RSI_K, Stoch_RSI_D] = StochRSI() // Williams Percent Range WR = ta.wpr(14) // Bull / Bear Power BullPower = high - ta.ema(close, 13) BearPower = low - ta.ema(close, 13) // Ultimate Oscillator UO = uo(7,14,28) if not na(UO) UO := UO * 100 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// PriceAvg = ta.ema(close, 50) DownTrend = close < PriceAvg UpTrend = close > PriceAvg // calculate trading recommendation based on SMA/EMA float ratingMA = 0 float ratingMAC = 0 float ratingSMA10 = na if not na(SMA10) ratingSMA10 := calcRatingMA(SMA10, close) ratingMA := ratingMA + ratingSMA10 ratingMAC := ratingMAC + 1 float ratingSMA20 = na if not na(SMA20) ratingSMA20 := calcRatingMA(SMA20, close) ratingMA := ratingMA + ratingSMA20 ratingMAC := ratingMAC + 1 float ratingSMA30 = na if not na(SMA30) ratingSMA30 := calcRatingMA(SMA30, close) ratingMA := ratingMA + ratingSMA30 ratingMAC := ratingMAC + 1 float ratingSMA50 = na if not na(SMA50) ratingSMA50 := calcRatingMA(SMA50, close) ratingMA := ratingMA + ratingSMA50 ratingMAC := ratingMAC + 1 float ratingSMA100 = na if not na(SMA100) ratingSMA100 := calcRatingMA(SMA100, close) ratingMA := ratingMA + ratingSMA100 ratingMAC := ratingMAC + 1 float ratingSMA200 = na if not na(SMA200) ratingSMA200 := calcRatingMA(SMA200, close) ratingMA := ratingMA + ratingSMA200 ratingMAC := ratingMAC + 1 float ratingEMA10 = na if not na(EMA10) ratingEMA10 := calcRatingMA(EMA10, close) ratingMA := ratingMA + ratingEMA10 ratingMAC := ratingMAC + 1 float ratingEMA20 = na if not na(EMA20) ratingEMA20 := calcRatingMA(EMA20, close) ratingMA := ratingMA + ratingEMA20 ratingMAC := ratingMAC + 1 float ratingEMA30 = na if not na(EMA30) ratingEMA30 := calcRatingMA(EMA30, close) ratingMA := ratingMA + ratingEMA30 ratingMAC := ratingMAC + 1 float ratingEMA50 = na if not na(EMA50) ratingEMA50 := calcRatingMA(EMA50, close) ratingMA := ratingMA + ratingEMA50 ratingMAC := ratingMAC + 1 float ratingEMA100 = na if not na(EMA100) ratingEMA100 := calcRatingMA(EMA100, close) ratingMA := ratingMA + ratingEMA100 ratingMAC := ratingMAC + 1 float ratingEMA200 = na if not na(EMA200) ratingEMA200 := calcRatingMA(EMA200, close) ratingMA := ratingMA + ratingEMA200 ratingMAC := ratingMAC + 1 float ratingHMA = na if not na(HullMA9) ratingHMA := calcRatingMA(HullMA9, close) ratingMA := ratingMA + ratingHMA ratingMAC := ratingMAC + 1 float ratingVWMA = na if not na(VWMA) ratingVWMA := calcRatingMA(VWMA, close) ratingMA := ratingMA + ratingVWMA ratingMAC := ratingMAC + 1 float ratingIC = na if not (na(IC_Lead1) or na(IC_Lead2) or na(close) or na(close[1]) or na(IC_BLine) or na(IC_CLine)) ratingIC := calcRating( IC_Lead1 > IC_Lead2 and close > IC_Lead1 and close < IC_BLine and close[1] < IC_CLine and close > IC_CLine, IC_Lead2 > IC_Lead1 and close < IC_Lead2 and close > IC_BLine and close[1] > IC_CLine and close < IC_CLine) if not na(ratingIC) ratingMA := ratingMA + ratingIC ratingMAC := ratingMAC + 1 ratingMA := ratingMAC > 0 ? ratingMA / ratingMAC : na float ratingOther = 0 float ratingOtherC = 0 float ratingRSI = na if not(na(RSI) or na(RSI[1])) ratingRSI := calcRating(RSI < 30 and RSI[1] < RSI, RSI > 70 and RSI[1] > RSI) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingRSI float ratingStoch = na if not(na(kStoch) or na(dStoch) or na(kStoch[1]) or na(dStoch[1])) ratingStoch := calcRating(kStoch < 20 and dStoch < 20 and kStoch > dStoch and kStoch[1] < dStoch[1], kStoch > 80 and dStoch > 80 and kStoch < dStoch and kStoch[1] > dStoch[1]) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingStoch float ratingCCI = na if not(na(CCI) or na(CCI[1])) ratingCCI := calcRating(CCI < -100 and CCI > CCI[1], CCI > 100 and CCI < CCI[1]) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingCCI float ratingADX = na if not(na(adxValue) or na(adxPlus[1]) or na(adxMinus[1]) or na(adxPlus) or na(adxMinus)) ratingADX := calcRating(adxValue > 20 and adxPlus[1] < adxMinus[1] and adxPlus > adxMinus, adxValue > 20 and adxPlus[1] > adxMinus[1] and adxPlus < adxMinus) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingADX float ratingAO = na if not(na(ao) or na(ao[1])) ratingAO := calcRating(ta.crossover(ao,0) or (ao > 0 and ao[1] > 0 and ao > ao[1] and ao[2] > ao[1]), ta.crossunder(ao,0) or (ao < 0 and ao[1] < 0 and ao < ao[1] and ao[2] < ao[1])) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingAO float ratingMOM = na if not(na(Mom) or na(Mom[1])) ratingMOM := calcRating(Mom > Mom[1], Mom < Mom[1]) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingMOM float ratingMACD = na if not(na(macdMACD) or na(signalMACD)) ratingMACD := calcRating(macdMACD > signalMACD, macdMACD < signalMACD) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingMACD float ratingStoch_RSI = na if not(na(DownTrend) or na(UpTrend) or na(Stoch_RSI_K) or na(Stoch_RSI_D) or na(Stoch_RSI_K[1]) or na(Stoch_RSI_D[1])) ratingStoch_RSI := calcRating( DownTrend and Stoch_RSI_K < 20 and Stoch_RSI_D < 20 and Stoch_RSI_K > Stoch_RSI_D and Stoch_RSI_K[1] < Stoch_RSI_D[1], UpTrend and Stoch_RSI_K > 80 and Stoch_RSI_D > 80 and Stoch_RSI_K < Stoch_RSI_D and Stoch_RSI_K[1] > Stoch_RSI_D[1]) if not na(ratingStoch_RSI) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingStoch_RSI float ratingWR = na if not(na(WR) or na(WR[1])) ratingWR := calcRating(WR < -80 and WR > WR[1], WR > -20 and WR < WR[1]) if not na(ratingWR) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingWR float ratingBBPower = na if not(na(UpTrend) or na(DownTrend) or na(BearPower) or na(BearPower[1]) or na(BullPower) or na(BullPower[1])) ratingBBPower := calcRating( UpTrend and BearPower < 0 and BearPower > BearPower[1], DownTrend and BullPower > 0 and BullPower < BullPower[1]) if not na(ratingBBPower) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingBBPower float ratingUO = na if not(na(UO)) ratingUO := calcRating(UO > 70, UO < 30) if not na(ratingUO) ratingOtherC := ratingOtherC + 1 ratingOther := ratingOther + ratingUO ratingOther := ratingOtherC > 0 ? ratingOther / ratingOtherC : na float ratingTotal = 0 float ratingTotalC = 0 if not na(ratingMA) ratingTotal := ratingTotal + ratingMA ratingTotalC := ratingTotalC + 1 if not na(ratingOther) ratingTotal := ratingTotal + ratingOther ratingTotalC := ratingTotalC + 1 ratingTotal := ratingTotalC > 0 ? ratingTotal / ratingTotalC : na pcc=price_change_close(close,roc_length) [close,pcc,ratingTotal, ratingOther, ratingMA] StrongBound = 0.5 WeakBound = 0.1 calcRatingStatus(value) => if na(value) "-" else if -StrongBound > value "Strong\nSell" else if value < -WeakBound "Sell " else if value > StrongBound "Strong\nBuy " else if value > WeakBound "Buy " else "Neutral" f_cellBgColor(_signal) => _returnColor = tableTitleColor if _signal == "Sell " _returnColor := colSell else if _signal == "Strong\nSell" _returnColor := colStrongSell else if _signal == "Buy " _returnColor := colBuy else if _signal == "Strong\nBuy " _returnColor := colStrongBuy else if _signal == "Neutral" or _signal == "-" _returnColor := colNeutral _returnColor array_name=array.new_string(14) float_weigth=array.new_float(14) price_change_array=array.new_float(14) price_change_array_day=array.new_float(14) htf_mtf2_ratingTotal=array.new_string(14) htf_mtf2_ratingOther=array.new_string(14) htf_mtf2_ratingMA=array.new_string(14) array.set(array_name,0,i_tricker_symbols_1) array.set(array_name,1,i_tricker_symbols_2) array.set(array_name,2,i_tricker_symbols_3) array.set(array_name,3,i_tricker_symbols_4) array.set(array_name,4,i_tricker_symbols_5) array.set(array_name,5,i_tricker_symbols_6) array.set(array_name,6,i_tricker_symbols_7) array.set(array_name,7,i_tricker_symbols_8) array.set(array_name,8,i_tricker_symbols_9) array.set(array_name,9,i_tricker_symbols_10) array.set(array_name,10,i_tricker_symbols_11) array.set(array_name,11,i_tricker_symbols_12) array.set(array_name,12,'NSE:BANKNIFTY') array.set(array_name,13,'NSE:NIFTY') f_weightage_stock(sec,array_name_weigth,array_name_change,pca_d,_htf_mtf2_ratingTotal,_htf_mtf2_ratingOthe,_htf_mtf2_ratingMA,pos,_roc_length)=> f = request.financial(sec, "FLOAT_SHARES_OUTSTANDING", "FY") [c,price_change,ratingTotalCurrent, ratingOtherCurrent, ratingMACurrent]= request.security(sec,mtf2,calcRatingAll()) day_change=request.security(sec,'D',price_change_close(close,roc_length))//price_change_close(close,roc_length) weigth=f*c //price_change=((c-c[1])/c[1])*100 array.set(array_name_weigth,pos,weigth) array.set(array_name_change,pos,price_change) array.set(_htf_mtf2_ratingTotal,pos,calcRatingStatus(ratingTotalCurrent)) array.set(_htf_mtf2_ratingOthe,pos,calcRatingStatus(ratingOtherCurrent)) array.set(_htf_mtf2_ratingMA,pos,calcRatingStatus(ratingMACurrent)) array.set(pca_d,pos,day_change) f_weightage_indices(sec,array_name_weigth,array_name_change,pca_d,_htf_mtf2_ratingTotal,_htf_mtf2_ratingOthe,_htf_mtf2_ratingMA,pos,_roc_length)=> f =0 [c,price_change,ratingTotalCurrent, ratingOtherCurrent, ratingMACurrent]= request.security(sec,mtf2,calcRatingAll()) weigth=100 day_change=request.security(sec,'D',price_change_close(close,roc_length)) //price_change=((c-c[1])/c[1])*100 array.set(array_name_weigth,pos,weigth) array.set(array_name_change,pos,price_change) array.set(_htf_mtf2_ratingTotal,pos,calcRatingStatus(ratingTotalCurrent)) array.set(_htf_mtf2_ratingOthe,pos,calcRatingStatus(ratingOtherCurrent)) array.set(_htf_mtf2_ratingMA,pos,calcRatingStatus(ratingMACurrent)) array.set(pca_d,pos,day_change) //function to change background color f_background_color_choice(_v)=> var color _return = na if _v<0 _return:= color.red else _return:= #196F3D//#1848CC _return f_weightage_stock(i_tricker_symbols_1,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,0,roc_length) f_weightage_stock(i_tricker_symbols_2,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,1,roc_length) f_weightage_stock(i_tricker_symbols_3,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,2,roc_length) f_weightage_stock(i_tricker_symbols_4,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,3,roc_length) f_weightage_stock(i_tricker_symbols_5,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,4,roc_length) f_weightage_stock(i_tricker_symbols_6,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,5,roc_length) f_weightage_stock(i_tricker_symbols_7,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,6,roc_length) f_weightage_stock(i_tricker_symbols_8,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,7,roc_length) f_weightage_stock(i_tricker_symbols_9,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,8,roc_length) f_weightage_stock(i_tricker_symbols_10,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,9,roc_length) f_weightage_stock(i_tricker_symbols_11,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,10,roc_length) f_weightage_stock(i_tricker_symbols_12,float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,11,roc_length) f_weightage_indices('NSE:BANKNIFTY',float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,12,roc_length) f_weightage_indices('NSE:NIFTY',float_weigth,price_change_array,price_change_array_day,htf_mtf2_ratingTotal,htf_mtf2_ratingOther,htf_mtf2_ratingMA,13,roc_length) sum_of_w=array.sum(float_weigth) //Display table f_print_table(_table,_array_name,_float_weigth,_price_change_array)=> table.cell(_table,0,0,"Company",text_color=color.white,bgcolor=#1848CC) table.cell(_table,1,0,"weight",text_color=color.white,bgcolor=#1848CC) table.cell(_table,2,0,"D%",text_color=color.white,bgcolor=#1848CC) table.cell(_table,3,0,mtf2+" %",text_color=color.white,bgcolor=#1848CC) table.cell(_table,4,0,"MA "+mtf2,text_color=color.white,bgcolor=#1848CC) table.cell(_table,5,0,"OSC "+mtf2,text_color=color.white,bgcolor=#1848CC) table.cell(_table,6,0,"ALL "+mtf2,text_color=color.white,bgcolor=#1848CC) impact=0.0 total_w=0.0 for a=0 to 13 float_cap=(array.get(float_weigth,a)/sum_of_w)*100 change_pct=array.get(price_change_array,a) change_pct_d=array.get(price_change_array_day,a) total_w:=total_w+float_cap impact:=impact+(float_cap*change_pct) row=1 table.cell(_table,0,row+a,array.get(array_name,a),text_color=color.white,bgcolor=#1848CC) if a==12 table.cell(_table,1,row+a,'100.0',text_color=color.white,bgcolor=#1848CC) else table.cell(_table,1,row+a,str.tostring(float_cap,'.0'),text_color=color.white,bgcolor=#1848CC) table.cell(_table,2,row+a,str.tostring(change_pct_d,'.00'),text_color=color.white,bgcolor=f_background_color_choice(change_pct_d)) table.cell(_table,3,row+a,str.tostring(change_pct,'.00'),text_color=color.white, bgcolor=f_background_color_choice(change_pct)) table.cell(_table,4,row+a,array.get(htf_mtf2_ratingMA,a),text_color=color.white,bgcolor=f_cellBgColor(array.get(htf_mtf2_ratingMA,a))) table.cell(_table,5,row+a,array.get(htf_mtf2_ratingOther,a),text_color=color.white,bgcolor=f_cellBgColor(array.get(htf_mtf2_ratingOther,a))) table.cell(_table,6,row+a,array.get(htf_mtf2_ratingTotal,a),text_color=color.white,bgcolor=f_cellBgColor(array.get(htf_mtf2_ratingTotal,a))) // table.cell(_table,0,13,'Impact',text_color=color.white,bgcolor=#1848CC) // table.cell(_table,1,13,tostring(total_w,'.0'),text_color=color.white,bgcolor=#1848CC) // table.cell(_table,2,13,tostring(impact/total_w,'.00'),text_color=color.white, // bgcolor=f_background_color_choice(impact/total_w)) var table display = table.new(position.top_right, 7,15 , border_color=color.black,border_width = 2) if barstate.islast f_print_table(display,array_name,float_weigth,price_change_array)
NVT
https://www.tradingview.com/script/j6XsGQXD-NVT/
erfan_abedi
https://www.tradingview.com/u/erfan_abedi/
174
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © erfan_abedi //@version=5 indicator('NVT') chart = input.string(defval='NVT', options=['NVT', 'NVT Golden Cross']) type = input.string(defval='GLASSNODE', options=['GLASSNODE', 'CRYPTOCAP'],title='Source') ext = if type == 'GLASSNODE' '_TOTALVOLUMEUSD' else if type == 'CRYPTOCAP' '' pr = if type == 'GLASSNODE' close else if type == 'CRYPTOCAP' volume ext1 = if type == 'GLASSNODE' '_MARKETCAP' else if type == 'CRYPTOCAP' '' supply = request.security(type + ':' + syminfo.basecurrency + ext1, timeframe.period, close) vol = request.security(type + ':' + syminfo.basecurrency + ext, timeframe.period, pr) day = input(defval=1, title='volume time period') nvt = supply / ta.sma(vol, day) nvtd = supply / vol nvtdiff = ta.sma(nvtd, 10) - ta.sma(nvtd, 30) nvtgs = nvtdiff / ta.stdev(nvtdiff, 300) plot(chart == 'NVT' ? nvt : na, title='NVT', style=plot.style_line, color=color.new(color.white, 50)) h1 = hline(chart=='NVT'? 15:2.2 , color=color.red) h2 = hline( chart == 'NVT Golden Cross'? -1.6 : na, color=color.green) plot(chart == 'NVT Golden Cross' ? nvtgs : na, title='NVTgs', color=color.new(color.blue, 0)) fill(h1, h2, color= chart == 'NVT Golden Cross'? color.from_gradient(nvtgs, -1.6, 2.2, color.new(color.green,90), color.new(color.red, 90)) : na)
Dominion - Bitcoin Altcoin Dominance [mutantdog]
https://www.tradingview.com/script/aMetM5QK-Dominion-Bitcoin-Altcoin-Dominance-mutantdog/
mutantdog
https://www.tradingview.com/u/mutantdog/
77
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © mutantdog //@version=5 indicator ('Dominion v2', 'Dominion', false, precision=3, timeframe='', explicit_plot_zorder=true) // v2.2 string D_BTC = 'Bitcoin' string D_ETH = 'Ethereum' string D_USD = 'Stablecoins' string D_ALT = 'Full Degen' string D_DEFI = 'Total Defi' string D_FLIP = 'Flippening' string D_CRNT = 'Current Symbol' string D_CSTM = 'Custom Input' //INPUTS selector = input.string (D_BTC, 'Dominance:        ', [D_BTC, D_ETH, D_USD, D_ALT, D_DEFI, D_FLIP, D_CRNT, D_CSTM], inline='01', group='Source') filter = input.bool (false, 'Filter', inline='01', group='Source') custom = input.string ('', 'Custom (if available)', inline='03', group='Source') maActive_1 = input.bool (false, 'MA 1', inline='11', group='MA') maType_1 = input.string ('EMA', 'Type', ['SMA', 'EMA', 'WMA', 'RMA'], inline='11', group='MA') maLength_1 = input.int (8, 'Length', minval=1, inline='11', group='MA') maActive_2 = input.bool (false, 'MA 2', inline='12', group='MA') maType_2 = input.string ('EMA', 'Type', ['SMA', 'EMA', 'WMA', 'RMA'], inline='12', group='MA') maLength_2 = input.int (21, 'Length', minval=1, inline='12', group='MA') maActive_3 = input.bool (false, 'MA 3', inline='13', group='MA') maType_3 = input.string ('EMA', 'Type', ['SMA', 'EMA', 'WMA', 'RMA'], inline='13', group='MA') maLength_3 = input.int (55, 'Length', minval=1, inline='13', group='MA') btcColour = input.color (#ffa600, '', inline='21', group='Visuals') ethColour = input.color (#00b7ff, '', inline='21', group='Visuals') usdColour = input.color (#ff0095, '', inline='21', group='Visuals') altColour = input.color (#00ff55, '', inline='21', group='Visuals') defiColour = input.color (#dd8c84, '', inline='21', group='Visuals') flipColour = input.color (#9932cc, '', inline='21', group='Visuals') crntColour = input.color (#808080, '', inline='21', group='Visuals') cstmColour = input.color (#40e0d0, '', inline='21', group='Visuals') maColour_1 = input.color (#6cc941, '', inline='22', group='Visuals') maColour_2 = input.color (#e9dd37, '', inline='22', group='Visuals') maColour_3 = input.color (#b80718, '', inline='22', group='Visuals') domOpac = input.int (100, 'Opacity: Dom', minval=0, maxval=100, step=5, inline='25', group='Visuals') maOpac = input.int (60, 'MA', minval=0, maxval=100, step=5, inline='25', group='Visuals') // SOURCES currentCrop = str.endswith (syminfo.ticker, 'PERP') ? str.replace (syminfo.ticker, 'PERP', '', 0) : syminfo.ticker currentFix = str.replace (currentCrop, syminfo.currency, '.D', 0) customFix = str.endswith (custom, '.D') ? custom : str.format ('{0}.D', custom) btcIndex = request.security ('BTC.D', '', close, ignore_invalid_symbol=true) ethIndex = request.security ('ETH.D', '', close, ignore_invalid_symbol=true) defiIndex = request.security ('TOTALDEFI.D', '', close, ignore_invalid_symbol=true) usdtIndex = request.security ('USDT.D', '', close, ignore_invalid_symbol=true) usdcIndex = request.security ('USDC.D', '', close, ignore_invalid_symbol=true) cstmIndex = request.security (customFix, '', close, ignore_invalid_symbol=true) crntIndex = request.security (currentFix, '', close, ignore_invalid_symbol=true) // PROCESS domSwitch = switch selector D_BTC => btcIndex D_ETH => ethIndex D_DEFI => defiIndex D_USD => usdtIndex + usdcIndex D_FLIP => btcIndex - ethIndex D_CRNT => crntIndex D_CSTM => cstmIndex D_ALT => 100 - (btcIndex + ethIndex + usdtIndex + usdcIndex) // domType = filter ? ta.rma (domSwitch, 2) : domSwitch ma_1 = switch maType_1 'SMA' => ta.sma (domType, maLength_1) 'EMA' => ta.ema (domType, maLength_1) 'WMA' => ta.wma (domType, maLength_1) 'RMA' => ta.rma (domType, maLength_1) ma_2 = switch maType_2 'SMA' => ta.sma (domType, maLength_2) 'EMA' => ta.ema (domType, maLength_2) 'WMA' => ta.wma (domType, maLength_2) 'RMA' => ta.rma (domType, maLength_2) ma_3 = switch maType_3 'SMA' => ta.sma (domType, maLength_3) 'EMA' => ta.ema (domType, maLength_3) 'WMA' => ta.wma (domType, maLength_3) 'RMA' => ta.rma (domType, maLength_3) // // VISUALS domColour = switch selector D_BTC => btcColour D_ETH => ethColour D_DEFI => defiColour D_USD => usdColour D_FLIP => flipColour D_CRNT => crntColour D_CSTM => cstmColour D_ALT => altColour // maPlot_1 = plot (maActive_1 ? ma_1 : na, 'MA 1', color.new (maColour_1, 100 - maOpac), 1) maPlot_2 = plot (maActive_2 ? ma_2 : na, 'MA 2', color.new (maColour_2, 100 - maOpac), 1) maPlot_3 = plot (maActive_3 ? ma_3 : na, 'MA 3', color.new (maColour_3, 100 - maOpac), 1) domPlot = plot (domType, 'Dominance', color.new (domColour, 100 - domOpac), 3) // ALERTS maxx_12 = ta.cross (ma_1, ma_2) maxx_13 = ta.cross (ma_1, ma_3) maxo_12 = ta.crossover (ma_1, ma_2) maxo_13 = ta.crossover (ma_1, ma_3) maxu_12 = ta.crossunder (ma_1, ma_2) maxu_13 = ta.crossunder (ma_1, ma_3) alertcondition (maxx_12, 'MA1 cross MA2', 'Dominion: MA1 has crossed MA2') alertcondition (maxx_13, 'MA1 cross MA3', 'Dominion: MA1 has crossed MA3') alertcondition (maxo_12, 'MA1 crossover MA2', 'Dominion: MA1 has crossed above MA2') alertcondition (maxo_13, 'MA1 crossover MA3', 'Dominion: MA1 has crossed above MA3') alertcondition (maxu_12, 'MA1 crossunder MA2', 'Dominion: MA1 has crossed below MA2') alertcondition (maxu_13, 'MA1 crossunder MA3', 'Dominion: MA1 has crossed below MA3')
Pin Bar
https://www.tradingview.com/script/5r4joD9N-Pin-Bar/
MotiRakam
https://www.tradingview.com/u/MotiRakam/
157
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // //@version=4 //Pin Bar at the edge of BB //Conditions to check // 1. It must be a Pin Bar // 2. Price Above/Below 200 SMA // 3. Volume must be above 20 SMA // 4. Low/High of the Pin Bar must cut across the BB upper/lower band // 5. The very next candle closes above/below the high/low of the pin bar candle study(title="Pin Bar", overlay=true) var bool isBullishPinBar = false var bool isBearishPinBar = false var bool isBullishBar = false var bool isBearishBar = false var bool isSizeOK = false var bool isUptrend = false var bool isDowntrend = false var bool isVolume = false var bool isLongEntry = false var bool isShortEntry = false closeRange = input(title="Closing Range", type=input.integer, minval=1, maxval=40, defval=30) //Check conditons for a Pin Bar // 1. Body:Size=1:3 // 2. Close of the bar should be in the "closeRange" range of high/low. Recommended between 20-35% range // 3. Size of the bar should be greater than ATR //Check if it is a Bullish or Bearish bar, based on the difference between high/low and close if abs(high[1] - close[1]) < abs(low[1] - close[1]) isBullishBar := true if abs(high[1] - close[1]) > abs(low[1] - close[1]) isBearishBar := true //Capture bar details barBody = abs(close[1] - open[1]) barSize = abs(high[1] - low[1]) //Check ATR value //atrValue = atr(14) //Check the overall size of the bar against ATR and size:wick ratio if (barSize / barBody) >= 3 isSizeOK := true //Check if it is a Pin Bar if isBullishBar and isSizeOK and ((high[1] - close[1]) < ((closeRange * barSize) / 100)) isBullishPinBar := true if isBearishBar and isSizeOK and ((close[1] - low[1]) < ((closeRange * barSize) / 100)) isBearishPinBar := true //Check id the price is unptrend or downtrend. Use 200 SMA mvgAvg200 = sma(close, 200) if close > mvgAvg200 isUptrend := true if close < mvgAvg200 isDowntrend := true //Check if there is a volume spike i.e. Volume above 20SMA if volume[1] > sma(volume[1], 20) isVolume := true else isVolume := false //Captute BB details [mBB, uBB, lBB] = bb(close, 20, 2) //Check if there is a trade if isBullishPinBar and isUptrend and isVolume and (low[1] < lBB and close[1] > lBB) and (close > high[1]) isLongEntry := true if isBearishPinBar and isDowntrend and isVolume and (high[1] > uBB and close[1] < uBB) and (close < low[1]) isShortEntry := true //Print signal on the chart plotshape(isLongEntry, title="Buy", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small) plotshape(isShortEntry, title="Sell", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small) isBullishPinBar := false isBearishPinBar := false isBullishBar := false isBearishBar := false isSizeOK := false isUptrend := false isDowntrend := false isVolume := false isLongEntry := false isShortEntry := false
Hosoda N Wave and TPs {fmz}
https://www.tradingview.com/script/ry3mtxAa/
franzb0
https://www.tradingview.com/u/franzb0/
156
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // Thi script allows to identificate target points (E,N,V,NT) following Hosoda theory for N wave // © Francesco_Marzolo //@version=5 indicator("Hosoda N Wave and TPs {fmz}",shorttitle="Hosoda N-wave TP", overlay=true) HorizLinesOnTarget=input.bool(true,"Draw horizontal lines on target price") HorizLinesOnTargetTrim=input.bool(false,"Trim horizontal lines on target price at last price") VertLinesOnTarget=input.bool(true,"Draw vertical lines on target time") ShowBoxAroundTarget=input.bool(true,"Show a box around time & price targets") ShowTargetPriceLabel=input.bool(true,"Show Label on target price") AllColor=input.color(color.blue, "Labels, N wave, lines and TPs color") priceA = input.price(100, inline="PointA", confirm=true) timeA = input.time(timestamp("2022-02-20"), inline="PointA", confirm=true) //lblText1 = str.format("Price: {0, number}\nTime: {1, date} {1, time}", myPrice1, myTime1) //var l1 = label.new(myTime1, myPrice1, lblText1, xloc=xloc.bar_time) priceB = input.price(100, inline="PointB", confirm=true) timeB = input.time(timestamp("2022-02-20"), inline="PointB", confirm=true) priceC = input.price(100, inline="PointC", confirm=true) timeC = input.time(timestamp("2022-02-20"), inline="PointC", confirm=true) longShort= (priceB> priceA)? 1:-1 ABdiff=timeB-timeA BCdiff=timeC-timeB ACdiff=timeC-timeA //calculate high of target in price using ATR (half for side) AAtr=ta.atr(14)/2 if barstate.islast // bar distance in seconds between two bars secondsPerBar=time[0]-time[1] //draw ABC lines and lables line.new(timeA,priceA,timeB,priceB, xloc = xloc.bar_time,color=AllColor) line.new(timeB,priceB,timeC,priceC, xloc = xloc.bar_time,color=AllColor) label.new(timeA, priceA, "A", xloc=xloc.bar_time,yloc=(longShort>0)?yloc.belowbar:yloc.abovebar, style=label.style_none,color=AllColor) label.new(timeB, priceB, "B", xloc=xloc.bar_time,yloc=(longShort<0)?yloc.belowbar:yloc.abovebar, style=label.style_none,color=AllColor) label.new(timeC, priceC, "C", xloc=xloc.bar_time,yloc=(longShort>0)?yloc.belowbar:yloc.abovebar, style=label.style_none,color=AllColor) HosodaTpEprice=priceB + (longShort * math.abs(priceB-priceA)) HosodaTpEtime=timeB+ABdiff HosodaTpNprice=priceC + (longShort * math.abs(priceB-priceA)) HosodaTpNtime=timeC+ABdiff HosodaTpVprice=priceB + (longShort * math.abs(priceB-priceC)) HosodaTpVtime=timeC+BCdiff HosodaTpNTprice=priceC + (longShort * math.abs(priceC-priceA)) HosodaTpNTtime=timeC+ACdiff extendHorLines=extend.right StartxForHorLines=math.min(timeC,HosodaTpEtime,HosodaTpNtime,HosodaTpVtime,HosodaTpNTtime) EndxForHorLines=timeC+1 if HorizLinesOnTargetTrim EndxForHorLines:=math.max(HosodaTpEtime,HosodaTpNtime,HosodaTpVtime,HosodaTpNTtime) extendHorLines:=extend.none //E: if ShowBoxAroundTarget box.new(HosodaTpEtime-secondsPerBar*2,HosodaTpEprice+AAtr,HosodaTpEtime+secondsPerBar*2,HosodaTpEprice-AAtr,AllColor,1,line.style_solid,extend.none,xloc=xloc.bar_time,bgcolor=na) if VertLinesOnTarget line.new(HosodaTpEtime,priceC,HosodaTpEtime,HosodaTpEprice, xloc = xloc.bar_time,color=AllColor) if ShowTargetPriceLabel label.new(HosodaTpEtime, HosodaTpEprice+AAtr, "E=" +str.tostring(HosodaTpEprice) , xloc=xloc.bar_time,yloc=yloc.price, style=label.style_none,color=AllColor) if HorizLinesOnTarget line.new(StartxForHorLines,HosodaTpEprice,EndxForHorLines,HosodaTpEprice, xloc = xloc.bar_time,extend=extendHorLines,color=AllColor) //N: if ShowBoxAroundTarget box.new(HosodaTpNtime-secondsPerBar*2,HosodaTpNprice+AAtr,HosodaTpNtime+secondsPerBar*2,HosodaTpNprice-AAtr,AllColor,1,line.style_solid,extend.none,xloc=xloc.bar_time,bgcolor=na) if ShowTargetPriceLabel label.new(HosodaTpNtime, HosodaTpNprice+AAtr, "N=" +str.tostring(HosodaTpNprice) , xloc=xloc.bar_time,yloc=yloc.price, style=label.style_none,color=AllColor) if VertLinesOnTarget line.new(HosodaTpNtime,priceC,HosodaTpNtime,HosodaTpEprice, xloc = xloc.bar_time,color=AllColor) if HorizLinesOnTarget line.new(StartxForHorLines,HosodaTpNprice,EndxForHorLines,HosodaTpNprice, xloc = xloc.bar_time,extend=extendHorLines,color=AllColor) //V: if ShowBoxAroundTarget box.new(HosodaTpVtime-secondsPerBar*2,HosodaTpVprice+AAtr,HosodaTpVtime+secondsPerBar*2,HosodaTpVprice-AAtr,AllColor,1,line.style_solid,extend.none,xloc=xloc.bar_time,bgcolor=na) if ShowTargetPriceLabel label.new(HosodaTpVtime, HosodaTpVprice+AAtr, "V=" +str.tostring(HosodaTpVprice) , xloc=xloc.bar_time,yloc=yloc.price, style=label.style_none,color=AllColor) if VertLinesOnTarget line.new(HosodaTpVtime,priceC,HosodaTpVtime,HosodaTpEprice, xloc = xloc.bar_time,color=AllColor) if HorizLinesOnTarget line.new(StartxForHorLines,HosodaTpVprice,EndxForHorLines,HosodaTpVprice, xloc = xloc.bar_time,extend=extendHorLines,color=AllColor) //NT: if ShowBoxAroundTarget box.new(HosodaTpNTtime-secondsPerBar*2,HosodaTpNTprice+AAtr,HosodaTpNTtime+secondsPerBar*2,HosodaTpNTprice-AAtr,AllColor,1,line.style_solid,extend.none,xloc=xloc.bar_time,bgcolor=na) if ShowTargetPriceLabel label.new(HosodaTpNTtime, HosodaTpNTprice+AAtr, "NT=" +str.tostring(HosodaTpNTprice) , xloc=xloc.bar_time,yloc=yloc.price, style=label.style_none,color=AllColor) if VertLinesOnTarget line.new(HosodaTpNTtime,priceC,HosodaTpNTtime,HosodaTpEprice, xloc = xloc.bar_time,color=AllColor) if HorizLinesOnTarget line.new(StartxForHorLines,HosodaTpNTprice,EndxForHorLines,HosodaTpNTprice, xloc = xloc.bar_time,extend=extendHorLines,color=AllColor)
Monthly Options Expiration 2022
https://www.tradingview.com/script/Ym3om1Sv-Monthly-Options-Expiration-2022/
imzeeshan
https://www.tradingview.com/u/imzeeshan/
96
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © imzeeshan // Source: https://www.marketwatch.com/optionscenter/calendar/2022 //@version=5 indicator("Monthly Options Expiration 2022", overlay=true) expiry=year==2021 and month==11 and dayofmonth==19 and timeframe.isdaily c=input('F', title="Character") o=input(7, title="X bars before") jan=42 feb=jan+20+0 mar=feb+20-1 apr=mar+20-1 may=apr+20+5 jun=may+20-1 jul=jun+20-2 aug=jul+20+5 sep=aug+20-1 oct=sep+20+5 nov=oct+20+0 dec=nov+20-1 // Expirations plotchar(expiry, title="Jan", char=c, location = location.bottom, color=color.blue, offset=jan, editable=false) plotchar(expiry, title="Feb", char=c, location = location.bottom, color=color.blue, offset=feb, editable=false) plotchar(expiry, title="Mar", char=c, location = location.bottom, color=color.blue, offset=mar, editable=false) plotchar(expiry, title="Apr", char=c, location = location.bottom, color=color.blue, offset=apr, editable=false) plotchar(expiry, title="May", char=c, location = location.bottom, color=color.blue, offset=may, editable=false) plotchar(expiry, title="Jun", char=c, location = location.bottom, color=color.blue, offset=jun, editable=false) plotchar(expiry, title="Jul", char=c, location = location.bottom, color=color.blue, offset=jul, editable=false) plotchar(expiry, title="Aug", char=c, location = location.bottom, color=color.blue, offset=aug, editable=false) plotchar(expiry, title="Sep", char=c, location = location.bottom, color=color.blue, offset=sep, editable=false) plotchar(expiry, title="Oct", char=c, location = location.bottom, color=color.blue, offset=oct, editable=false) plotchar(expiry, title="Nov", char=c, location = location.bottom, color=color.blue, offset=nov, editable=false) plotchar(expiry, title="Dec", char=c, location = location.bottom, color=color.blue, offset=dec, editable=false) // Last week of expirations plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=jan-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=feb-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=mar-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=apr-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=may-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=jun-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=jul-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=aug-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=sep-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=oct-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=nov-o, editable=false) plotshape(expiry, style=shape.flag, location = location.bottom, color=color.blue, offset=dec-o, editable=false) // Start of month show_som=input(true, title="Start of month") som = show_som and year==2022 and month!=month[1] plotshape(som, style=shape.circle, location = location.bottom, color=color.blue, editable=false)
Stochastic Spread Analyzer
https://www.tradingview.com/script/tgOOdTMN-Stochastic-Spread-Analyzer/
ekrem6nel
https://www.tradingview.com/u/ekrem6nel/
63
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © ekrem6nel //@version=4 study("Stochastic Spread Analyzer") lengthSmall = input(20, minval=1) lengthMid = input(80, minval=1) lengthHigh = input(320, minval=1) htf1 = input(4) htf2 = input(16) htf3 = input(64) length = input(10) lenk = input(3) lend = input(3) macd_fast = input(12) macd_slow = input(26) macd_smooth = input(9) portfolio = input("SPY") stokCandle(c, h, l, length, lenk, lend) => k = sma(stoch(c, h, l, length), lenk) d = sma(k, lend) [k, d] stok(src, length, lenk, lend) => stokCandle(src, src, src, length, lenk, lend) signalColor(k, d, floorColor, ceilingColor, upColor, downColor) => k < 20 ? floorColor : (k > 80 ? ceilingColor : (change(d) > 0 ? upColor : downColor)) [fc, fo, fh, fl, fv]=security(portfolio, "", [close, open, high, low, obv]) calculateScore(src_c, src_low, src_high) => lower = lowest(src_low, lengthSmall) upper = highest(src_high, lengthSmall) lowerMid = lowest(src_low, lengthMid) upperMid = highest(src_high, lengthMid) lowerHigh = lowest(src_low, lengthHigh) upperHigh = highest(src_high, lengthHigh) basis = avg(upper, lower) up = src_c - lower dn = upper - src_c r = upper - lower p = up/r upMid = src_c - lowerMid dnMid = upperMid - src_c rMid = upperMid - lowerMid pMid = upMid/rMid upHigh = src_c - lowerHigh dnHigh = upperHigh - src_c rHigh = upperHigh - lowerHigh pHigh = upHigh/rHigh score = (p*pMid*pHigh)*100 scoreEma = ema(score, 200) [score, scoreEma] [score, scoreEma] = calculateScore(close/fc, low/fl, high/fh) [scoreObv, scoreObvEma] = calculateScore(obv/fv, obv/fv, obv/fv) [k, d] = stok(score, length, lenk, lend) [krsi, drsi] = stok(rsi(score, length), length, lenk, lend) [m, s, h] = macd(score, macd_fast, macd_slow, macd_smooth) [kh, dh] = stok(h, length, lenk, lend) [km, dm] = stok(m, length, lenk, lend) [kobv, dobv] = stok(scoreObv, length, lenk, lend) [krsiobv, drsiobv] = stok(rsi(scoreObv, length), length, lenk, lend) [mobv, sobv, hobv] = macd(scoreObv, macd_fast, macd_slow, macd_smooth) [khobv, dhobv] = stok(hobv, length, lenk, lend) [kmobv, dmobv] = stok(mobv, length, lenk, lend) floorColor = color.red ceilingColor = color.lime upColor = color.lime downColor = color.red floorColorObv = color.orange ceilingColorObv = color.blue upColorObv = color.blue downColorObv = color.orange powerColor = signalColor(kh, dh, floorColor, ceilingColor, upColor, downColor) trendColor = signalColor(score, scoreEma, floorColor, ceilingColor, upColor, downColor) segmentColor = signalColor(k, d, floorColor, ceilingColor, upColor, downColor) powerColorObv = signalColor(khobv, dhobv, floorColorObv, ceilingColorObv, upColorObv, downColorObv) trendColorObv = signalColor(scoreObv, scoreObvEma, floorColorObv, ceilingColorObv, upColorObv, downColorObv) segmentColorObv = signalColor(kobv, dobv, floorColorObv, ceilingColorObv, upColorObv, downColorObv) h80 = hline(20, "Upper Band", color=#606060) h20 = hline(80, "Lower Band", color=#606060) fill(h20, h80, color = color.purple, transp=80, title="Background") sobvp = plot(20 + kobv*0.6, color=powerColorObv, linewidth = 1, style = plot.style_columns, transp = 60, histbase = 20) //maobvp = plot(dmobv, color = segmentColorObv, linewidth = 1) sp = plot(k, color=powerColor, linewidth = 2) map = plot(d, color = color.orange, linewidth = 1) fill(sp, map, color = trendColor , transp=60, title="Fill")
Position size FX and Crypto
https://www.tradingview.com/script/8Q8XWRXV-Position-size-FX-and-Crypto/
meomeo105
https://www.tradingview.com/u/meomeo105/
144
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © meomeo105 //@version=5 indicator ('Position size [Limit]', "PS", overlay=true, max_bars_back=987) //Global textPS = "" textPSTip = "" textmanuPS = "" textmanuPSTip = "" // Input risk = input.int(500,"Risk $") showLabel = input.bool(true,"Show Label Price") inputentry = input.price(0,title ='Limit Entry Price',inline="Input Entry",confirm=true) mcolorentry = input.color(color.white,"",inline="Input Entry") priceSL = input.price(0,title ='Price SL',inline="priceSL",confirm=true) mcolor = input.color(color.yellow,"",inline="priceSL") priceTP = input.price(0,title ='Price TP',inline="TPMarket",confirm=true) mcolorTP = input.color(color.aqua,"",inline="TPMarket") RR = input.float(1,"Auto cal TP by RR",tooltip="You are set Price TP = 0, Script will automatically calculate the price TP.") comPerLot = input.float(3.5,"Commission",0,tooltip = "Commission size per lot(one-way). Use for fx,xau") groupOther = "Other" offset = input.int(3,"Offset Label",group = groupOther) sCryptC = input.string("USD,USDT,BUSD,USDC,DAI,TUSD,UST,DGX,USDTPERP,BUSDPERP,USDCPERP","Crypto Currency",tooltip = "Crypto Currency Pair. Config Currency Split by ','",group = groupOther) aCryptC = str.split(sCryptC,',') containCryptC(value) => bool result = false for i = 0 to array.size(aCryptC)-1 if(value == array.get(aCryptC,i)) result := true result getPriceStr(_price) => syminfo.mintick == 0.01 ? str.tostring(_price,'#.##') : syminfo.mintick == 0.001 ? str.tostring(_price,'#.###') : syminfo.mintick == 0.0001 ? str.tostring(_price,'#.####') : syminfo.mintick == 0.00001 ? str.tostring(_price,'#.#####') : syminfo.mintick == 0.000001 ? str.tostring(_price,'#.######') : syminfo.mintick == 0.0000001 ? str.tostring(_price,'#.#######') : syminfo.mintick == 0.00000001 ? str.tostring(_price,'#.########') : str.tostring(_price,'#') // 0 SL, 1 entry, 2 tp var arrayLine = array.new_line() var arrayLabel = array.new_label() if(array.size(arrayLine) == 0) array.push(arrayLine,line.new(x1=na, y1=na,x2=na, y2=na,color = mcolor,style = line.style_solid,width = 1,xloc = xloc.bar_time)) array.push(arrayLine,line.new(x1=na, y1=na,x2=na, y2=na,color = mcolorentry,style = line.style_dashed,width = 1,xloc = xloc.bar_time)) array.push(arrayLine,line.new(x1=na, y1=na,x2=na, y2=na,color = mcolorTP,style = line.style_dashed,width = 1,xloc = xloc.bar_time)) array.push(arrayLabel,label.new(x = na ,y = na,tooltip = "Stoploss",color=color.rgb(33, 47, 60), textcolor = mcolor,style=label.style_label_left, textalign = text.align_left,xloc = xloc.bar_time)) array.push(arrayLabel,label.new(x = na ,y = na,color=color.rgb(33, 47, 60), textcolor = mcolorentry,style=label.style_label_left, textalign = text.align_left,xloc = xloc.bar_time)) array.push(arrayLabel,label.new(x = na ,y = na,color=color.rgb(33, 47, 60), textcolor = mcolorTP,style=label.style_label_left, textalign = text.align_left,xloc = xloc.bar_time)) _pricemanuSL = math.abs(priceSL - inputentry) if(priceTP > 0) RR := nz(math.abs(priceTP - inputentry) / _pricemanuSL) if(syminfo.type == "forex" or syminfo.ticker == "XAUUSD") // Calculate stop loss and take profit unicost = syminfo.pointvalue if(syminfo.basecurrency == "USD" and syminfo.type == "forex") unicost := close / priceSL inputpositionSize = risk / (_pricemanuSL * unicost / syminfo.mintick + 2*comPerLot) pipMovement = syminfo.ticker == "XAUUSD" ? 10 : syminfo.mintick == 0.01 ? 10 : syminfo.mintick == 0.001 ? 100 : syminfo.mintick == 0.0001 ? 1000 : syminfo.mintick == 0.00001 ? 10000 : 1 inputstopLossPips = _pricemanuSL * pipMovement // Stop loss in pips textmanuPS := str.tostring(inputpositionSize,'#.##') + " - " + str.tostring(inputstopLossPips,'#.#') + " - " + str.tostring(RR,'#.##') textPSTip := "Lot - Pip - R:R" textmanuPSTip := "Lot - Pip - R:R" else if(syminfo.type == "crypto" and containCryptC(syminfo.currency)) textmanuPSTip := "PS - R:R" inputPS = risk/_pricemanuSL textmanuPS := str.tostring(inputPS,'#.##') + " - " + str.tostring(RR,'#.##') //Label SL time + (offetTrend*1000 * timeframe.in_seconds() bartime = ta.valuewhen(high >= priceSL and low <= priceSL, time, 0) if((str.length(textPS)>0 or str.length(textmanuPS)>0)) line.set_xy1(array.get(arrayLine,0),bartime,priceSL) line.set_xy2(array.get(arrayLine,0),time + offset*1000 * timeframe.in_seconds(),priceSL) if(showLabel) label.set_xy(array.get(arrayLabel,0),time + offset*1000 * timeframe.in_seconds(),priceSL) label.set_text(array.get(arrayLabel,0),getPriceStr(priceSL)) bartimemanu = ta.valuewhen(high >= inputentry and low <= inputentry, time, 0) pricemanuTP = priceSL > inputentry ? (inputentry - math.abs(priceSL - inputentry)*RR) : (inputentry + math.abs(priceSL - inputentry)*RR) bartimemanuTP = ta.valuewhen(high >= pricemanuTP and low <= pricemanuTP, time, 0) if (str.length(textmanuPS)>0) //Entry Manu line.set_xy1(array.get(arrayLine,1),bartimemanu ,inputentry) line.set_xy2(array.get(arrayLine,1),time + offset*1000 * timeframe.in_seconds(),inputentry) label.set_xy(array.get(arrayLabel,1),time + offset*1000 * timeframe.in_seconds(),inputentry) label.set_text(array.get(arrayLabel,1),textmanuPS) label.set_tooltip(array.get(arrayLabel,1),textmanuPSTip) line.set_xy1(array.get(arrayLine,2),bartimemanuTP,pricemanuTP) line.set_xy2(array.get(arrayLine,2),time + offset*1000 * timeframe.in_seconds(),pricemanuTP) if(showLabel) //Label TP Manu label.set_xy(array.get(arrayLabel,2),time + offset*1000 * timeframe.in_seconds(),pricemanuTP) label.set_text(array.get(arrayLabel,2),getPriceStr(pricemanuTP)) label.set_tooltip(array.get(arrayLabel,2),"TP with Entry Price : " + getPriceStr(inputentry))
RECON ATR Volatility Percentage
https://www.tradingview.com/script/Ngm5WN8B-RECON-ATR-Volatility-Percentage/
RECONTRADER
https://www.tradingview.com/u/RECONTRADER/
472
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © RECONTRADER //@version=5 //ATR Volatility Percentage with Adjustable Lookback Period indicator(title="RECON ATR Volatility Percentage", shorttitle="RECON ATR Percentage", overlay=false, precision=0) // Input ATRlength = input(30, title="ATR Length") PeriodLB = input(90, title="Period Look Back Length") // ATR Percentage Calculations atrpercent = ta.hma(ta.tr, ATRlength) PercentageRank = ta.percentrank(atrpercent, PeriodLB) // ATR Percentage Colors color = PercentageRank <= (25) ? color.red : PercentageRank > (25) and PercentageRank < (50) ? color.aqua : PercentageRank >= (50) and PercentageRank <= (75) ? color.yellow : PercentageRank >= (75) ? color.lime : color.silver // Plot plot(PercentageRank, title="ATR Percentage Columns", style = plot.style_columns, linewidth=3, color=color)
Faster Bands [AstrideUnicorn]
https://www.tradingview.com/script/VRl7etMD-Faster-Bands-AstrideUnicorn/
AstrideUnicorn
https://www.tradingview.com/u/AstrideUnicorn/
54
study
5
CC-BY-NC-SA-4.0
// This work is licensed under the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/ // (c) AstrideUnicorn. All rights reserved. //@version=5 indicator('Faster Bands', timeframe='', overlay=true) Length = input.int(title='Length', defval=20, tooltip='Averaging window length.') Multiplier = input.float(title='Multiplier', defval=2.0, tooltip='It is the number of deviations by which upper- and lower-band are away from the middle-line.') Uniformity = input.int(1, title='Uniformity', minval=1, maxval=7, step=1, tooltip='Uniformity of the bands width. Higher values correspond to a uniformer width.') Source = input.source(title='Source', defval=close, tooltip='Price time-series to be used for the indicator calculation.') MiddleLine = ta.ema(Source, Length) ExponentialMeanAbsoluteDeviation = ta.ema(math.abs(Source - MiddleLine), Uniformity * Length) UpperLine = MiddleLine + Multiplier * ExponentialMeanAbsoluteDeviation LowerLine = MiddleLine - Multiplier * ExponentialMeanAbsoluteDeviation LL = plot(LowerLine, color=color.new(#2962ff, 0)) UL = plot(UpperLine, color=color.new(#2962ff, 0)) fill(LL, UL, color.new(color.blue, 90)) plot(MiddleLine, color=color.new(color.orange, 0))
Best delta gridTrading
https://www.tradingview.com/script/1r1sr8qQ/
bitouns
https://www.tradingview.com/u/bitouns/
11
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © bitouns //@version=5 indicator(title="Best delta gridTrading", shorttitle="BDGT%", overlay=false) length = input(10, title="length") takerfees = input(0.0665, title="exchange taker fees in %") bestDeltaGridTrading = math.max(ta.sma(ta.tr*100/close[1], length)/2*close[1]/100,2*takerfees/100*close[1]) plot(bestDeltaGridTrading, color=color.red)
[DSPrated] Modified EMD for swing trade
https://www.tradingview.com/script/eXIYOFxI-DSPrated-Modified-EMD-for-swing-trade/
DSPrated
https://www.tradingview.com/u/DSPrated/
83
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © DSPrated //@version=5 // Modified Ehlers EMD for swing trade indicator("[DSPrated] Modified EMD for swing trade", shorttitle="EMD4swing", overlay=false) cyc1 = input.int(18, "Period 1", minval=2) cyc2 = input.int(22, "Period 2", minval=2) src = input.source(close, "Source") length = input.int(10, "Truncation length", minval=2) //------------------------------------------------------------------------------ // bpf function Butterworth bandpass with truncated version { bpf(source, P1, P2, type = "full", length = 10) => // Butterworth 2nd order Bandpass Filter var omega1 = math.tan(math.pi / P2) var omega2 = math.tan(math.pi / P1) var ww = omega1 * omega2 var W = omega2 - omega1 var a0 = 1 + W + ww var a1 = 2 * (ww - 1) var a2 = 1 - W + ww float out = 0 if type == "full" float bandPass = na, bandPass := (W * (source - source[2]) - a1 * nz(bandPass[1]) - a2 * nz(bandPass[2])) / a0 out := bandPass else trun = array.new_float(length+2, 0.0) for i = length - 1 to 0 array.set(trun, i, (W*(nz(source[i]) - nz(source[i + 2])) - a1*array.get(trun, i + 1) - a2*array.get(trun, i + 2)) / a0) out := array.get(trun, 0) out //} //------------------------------------------------------------------------------ // lpf function Butterworth lowpass with truncated version { lpf(source, P1, type = "full", length = 10) => // Butterworth 2nd order Lowpass Filter var C = math.tan(math.pi / P1) var D = 1 + math.sqrt(2) * C + C * C var a1 = 2 * (C * C - 1) / D var a2 = (1 - math.sqrt(2) * C + C * C) / D var b0 = C * C / D var b1 = 2 * b0 var b2 = b0 float out = 0 if type == "full" float lowPass = na, lowPass := b0 * source + b1 * source[1] + b2 * source[2] - a1 * nz(lowPass[1]) - a2 * nz(lowPass[2]) out := lowPass else trun = array.new_float(length+2, 0.0) for i = length - 1 to 0 array.set(trun, i, b0*(nz(source[i]) + b1 *nz(source[i + 1]) + b2 * nz(source[i + 2])) - a1*array.get(trun, i + 1) - a2 * array.get(trun, i + 2)) out := array.get(trun, 0) out //} //------------------------------------------------------------------------------ var fraction = 0.5 Peak = 0.0 Valley = 0.0 pos = 0 //------------------------------------------------------------------------------ bp_trunc = bpf(src, cyc1, cyc2, "trunc", length) //------emd--------------------------------------------------------------------- lp_trunc = lpf(bp_trunc, 2 * cyc2) Peak := (bp_trunc[1] > bp_trunc and bp_trunc[1] > bp_trunc[2]) ? bp_trunc[1] : nz(Peak[1]) Valley := (bp_trunc[1] < bp_trunc and bp_trunc[1] < bp_trunc[2]) ? bp_trunc[1] : nz(Valley[1]) lp_peak = fraction * lpf(Peak, 2.5 * cyc2) lp_vall = fraction * lpf(Valley, 2.5 * cyc2) pos := (lp_trunc > lp_peak) ? 1 : (lp_trunc < lp_vall) ? -1 : 0 colr = switch pos 1 => color.green 0 => color.black -1 => color.red // signals for swing trade bool buy = pos == 0 and ta.crossover( ta.change(bp_trunc),0) and bp_trunc < lp_vall bool sell = pos == 0 and ta.crossunder(ta.change(bp_trunc),0) and bp_trunc > lp_peak //------------------------------------------------------------------------------ psig = plot(bp_trunc, title='BandPass truncated filter', color=color.new(colr,30), linewidth=2) plot(lp_trunc, title='Trend ', color=color.new(color.aqua,30), linewidth=1) phi = plot(lp_peak, title='High Boundary', color=color.new(color.maroon,30), linewidth=1) plo = plot(lp_vall, title='Low Boundary', color=color.new(color.maroon,30), linewidth=1) fill(psig, plo, color.new(color.green, pos == 0 and bp_trunc < lp_vall ? 40 : 100) ) fill(psig, phi, color.new(color.red, pos == 0 and bp_trunc > lp_peak ? 40 : 100) ) // markers if sell label.new (bar_index, bp_trunc, "S", color=color.new(color.maroon,60), textcolor=color.white, style=label.style_label_down, yloc=yloc.price, size=size.tiny) if buy label.new (bar_index, bp_trunc, "B", color=color.new(color.lime,60), textcolor=color.white, style=label.style_label_up, yloc=yloc.price, size=size.tiny)
HASHRATE and MINER REVENUE
https://www.tradingview.com/script/soAl7zYP-HASHRATE-and-MINER-REVENUE/
Jomy
https://www.tradingview.com/u/Jomy/
75
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Jomy //@version=5 indicator('HASHRATE and MINER REVENUE', overlay=false) hrocs = input.float(-3.6, 'hash rate of change to short', step=.2) leverage = input.float(1, 'leverage', step=.1) enableshorts = input(true, 'enable shorting?') live_HR_raw = request.security('QUANDL:BCHAIN/HRATE', 'D', close, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_on) hist_HR_raw = request.security('QUANDL:BCHAIN/HRATE', 'D', close, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off) live_MR_raw = request.security('QUANDL:BCHAIN/MIREV', 'D', close, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_on) hist_MR_raw = request.security('QUANDL:BCHAIN/MIREV', 'D', close, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off) HR_raw = float(na) MR_raw = float(na) HR_raw := barstate.isrealtime ? live_HR_raw : hist_HR_raw MR_raw := barstate.isrealtime ? live_MR_raw : hist_MR_raw //plot(HR_raw) filt = HR_raw filt := 0.193463 * (HR_raw + HR_raw[1]) / 2 + 1.217833 * nz(filt[1]) + -0.411296 * nz(filt[2]) filt2 = MR_raw filt2 := 0.193463 * (MR_raw + MR_raw[1]) / 2 + 1.217833 * nz(filt2[1]) + -0.411296 * nz(filt2[2]) filt3 = (filt + filt2) / 2 plot(filt3,color=color.blue,linewidth=2) buy = filt3 > filt3[1] sell = filt3 < filt3[1] hashroc = (filt3 / filt3[1] - 1) * 100 plotshape(true, style=shape.square, location=location.bottom, size=size.tiny, color=buy ? color.rgb(0, 255, 0, 20) : sell and hashroc < hrocs ? color.rgb(255, 0, 0, 20) : color.rgb(0, 0, 0, 90)) bgcolor(buy ? color.rgb(0, 255, 0, 80) : sell and hashroc < hrocs ? color.rgb(255, 0, 0, 80) : na)
Position Size Calculator
https://www.tradingview.com/script/4uoWZsDC-Position-Size-Calculator/
cjcjesse
https://www.tradingview.com/u/cjcjesse/
19
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © cjcjesse //@version=4 study("Position Size Calculator","Calc", true) accbalance = input(5000.00, title="Account Balance") riskper = input(0.01, title="Risk Percentage") bufferfrac = input(5.0, title="Wiggle Room") prevhigh = high[1] + ((high[1] - low[1]) / bufferfrac) prevlow = low[1] - ((high[1] - low[1]) / bufferfrac) riskdiff = prevhigh - prevlow size = floor((accbalance * riskper) / riskdiff) cost = close * size var tbl = table.new(position.top_right, 4, 2) if (barstate.islast) table.cell(tbl, 0, 0, "Long", bgcolor = #aaaaaa, width = 7, height = 4) table.cell(tbl, 1, 0, "Short", bgcolor = #aaaaaa, width = 7, height = 4) table.cell(tbl, 2, 0, "Size", bgcolor = #aaaaaa, width = 7, height = 4) table.cell(tbl, 3, 0, "Cost", bgcolor = #aaaaaa, width = 7, height = 4) table.cell(tbl, 0, 1, tostring(prevhigh), bgcolor = color.green, width = 7, height = 4) table.cell(tbl, 1, 1, tostring(prevlow), bgcolor = color.red, width = 7, height = 4) table.cell(tbl, 2, 1, tostring(size), bgcolor = color.blue, width = 7, height = 4) table.cell(tbl, 3, 1, tostring(cost), bgcolor = color.yellow, width = 7, height = 4)
40 crypto screener [LUPOWN]
https://www.tradingview.com/script/U6zY1Hvu-40-crypto-screener-LUPOWN/
Lupown
https://www.tradingview.com/u/Lupown/
560
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Lupown //@version=4 study("40 crypto screener [LUPOWN]","40 crypto screener [LPWN]" , false) show_label = input(false,title="--------Show label-----------") show_tabla = input (true,title="--------Show Tables---------") show_tabla1 = input(true,title = "Show table 1") show_tabla2 = input(true,title = "Show table 2") // STEP 1. Make an input with drop-down menu sizeOption = input(title="Label Size", type=input.string, options=["Auto", "Huge", "Large", "Normal", "Small", "Tiny"], defval="Normal") // STEP 2. Convert the input to valid label sizes labelSize = (sizeOption == "Huge") ? size.huge : (sizeOption == "Large") ? size.large : (sizeOption == "Small") ? size.small : (sizeOption == "Tiny") ? size.tiny : (sizeOption == "Auto") ? size.auto : size.normal color colorN = input(color.new(color.black, 30), "Color") color colorT = input(color.white, "Color Texto") string type0 = input('precio',title = 'precio/cambio/rsi', options = ['precio','cambio','rsi']) string type1 = input('TL', title='Columna 1', options=["TL", "Momentum", "ADX", "Cipher", "LuxAlgo", "DivergenciaM","Whale","cambio"]) string type2 = input('Momentum', title='Columna 2', options=["TL", "Momentum", "ADX", "Cipher", "LuxAlgo", "DivergenciaM","Whale","cambio"]) string type3 = input('ADX', title='Columna 3', options=["TL", "Momentum", "ADX", "Cipher", "LuxAlgo", "DivergenciaM","Whale","cambio"]) string type4 = input('Cipher', title='Columna 4', options=["TL", "Momentum", "ADX", "Cipher", "LuxAlgo", "DivergenciaM","Whale","cambio"]) color colorA = input(color.new(#00FF00,20),"Color alcista") color colorRS = input(color.new(#4db6ac,20),"Color rango subida")// 800000 color colorRC = input(color.new(#ef9a9a,20),"Color rango caida") // 008000 color colorB = input(color.new(#FF0000,20),"Color bajista") color colorAdxP = input(color.new(color.white,40),"Color ADX positiva") color colorAdxN = input(color.new(color.gray,20),"Color ADX negativa") color colorsell = input (color.new(color.red,10),"Color Sell") color colorbuy = input (color.new(color.green,10),"Color Sell") // ————— Produces a string format usable with `tostring()` to restrict precision to ticks. ////////////////////////////////////////////////////////////////////////////////////////// // ///////////////////////////////////////////screeener ////////////////////////////////////////////////////////////////////////////////////////// //////////// // INPUTS // // Symbols // There is a limit of 40 security calls so only 40 symbols at the same time is possible // Symbols // There is a limit of 40 security calls so only 40 symbols at the same time is possible s01 = input('XRPUSDTPERP', type=input.symbol, group = "Symbols") s02 = input('BTCUSDTPERP', type=input.symbol, group = "Symbols") s03 = input('DOGEUSDTPERP', type=input.symbol, group = "Symbols") s04 = input('BNBUSDTPERP', type=input.symbol, group = "Symbols") s05 = input('ETHUSDTPERP', type=input.symbol, group = "Symbols") s06 = input('ADAUSDTPERP', type=input.symbol, group = "Symbols") s07 = input('BAKEUSDTPERP', type=input.symbol, group = "Symbols") s08 = input('SOLUSDTPERP', type=input.symbol, group = "Symbols") s09 = input('GTCUSDTPERP', type=input.symbol, group = "Symbols") s10 = input('ALGOUSDTPERP', type=input.symbol, group = "Symbols") s11 = input('FLMUSDTPERP', type=input.symbol, group = "Symbols") s12 = input('ICPUSDTPERP', type=input.symbol, group = "Symbols") s13 = input('VETUSDTPERP', type=input.symbol, group = "Symbols") s14 = input('1INCHUSDTPERP', type=input.symbol, group = "Symbols") s15 = input('TRXUSDTPERP', type=input.symbol, group = "Symbols") s16 = input('THETAUSDTPERP', type=input.symbol, group = "Symbols") s17 = input('EGLDUSDTPERP', type=input.symbol, group = "Symbols") s18 = input('LTCUSDTPERP', type=input.symbol, group = "Symbols") s19 = input('UNIUSDTPERP', type=input.symbol, group = "Symbols") s20 = input('SUSHIUSDTPERP', type=input.symbol, group = "Symbols") s21 = input('DOTUSDTPERP', type=input.symbol, group = "Symbols") s22 = input('XTZUSDTPERP', type=input.symbol, group = "Symbols") s23 = input('RENUSDTPERP', type=input.symbol, group = "Symbols") s24 = input('LINKUSDTPERP', type=input.symbol, group = "Symbols") s25 = input('FILUSDTPERP', type=input.symbol, group = "Symbols") s26 = input('KSMUSDTPERP', type=input.symbol, group = "Symbols") s27 = input('BCHUSDT', type=input.symbol, group = "Symbols") s28 = input('FTMUSDTPERP', type=input.symbol, group = "Symbols") s29 = input('AXSUSDTPERP', type=input.symbol, group = "Symbols") s30 = input('SANDUSDTPERP', type=input.symbol, group = "Symbols") s31 = input('ALICEUSDTPERP', type=input.symbol, group = "Symbols") s32 = input('COTIUSDTPERP', type=input.symbol, group = "Symbols") s33 = input('CHRUSDTPERP', type=input.symbol, group = "Symbols") s34 = input('LINAUSDTPERP', type=input.symbol, group = "Symbols") s35 = input('CHZUSDTPERP', type=input.symbol, group = "Symbols") s36 = input('MASKUSDTPERP', type=input.symbol, group = "Symbols") s37 = input('MATICUSDTPERP', type=input.symbol, group = "Symbols") s38 = input('EOSUSDTPERP', type=input.symbol, group = "Symbols") s39 = input('ROSEUSDT', type=input.symbol, group = "Symbols") s40 = input('TOMOUSDTPERP', type=input.symbol, group = "Symbols") ///RSI IMPUT rsiP = input(14,title = "RSI period") //SQUEEZE MOMOENUTM PARAMS //show_Momen = input(true, title="-----------Show squeeze momentum-------") int lengthM = input(20, title="MOM Length", minval=1, step=1) srcM = input(close, title="MOM Source", type=input.source) int length = input(20, title="SQZ Length", minval=1, step=1) src = input(close, title="SQZ Source", type=input.source) lbR = input(title="Pivot Lookback Right", defval=1) lbL = input(title="Pivot Lookback Left", defval=1) ///ADX PARAMS adxlen = input(14, title = "ADX Smoothing") dilen = input(14, title = "DI Length") keyLevel = input(23, title = "Key level for ADX") //CIPHER PARAMS //WT n1 = input(9, title = "Channel Length") n2 = input(12, title = "Average Length") smooth = input(3, title = "Smooth Factor") //////DIVERGENCIAS //lbR = input(title="Pivot Lookback Right", defval=5) //lbL = input(title="Pivot Lookback Left", defval=5) rangeUpper = input(title="Max of Lookback Range", defval=60) rangeLower = input(title="Min of Lookback Range", defval=5) // % cambio tf = input(title="Timeframe %", type=input.resolution, defval="1") //LuxAlgo n11 = input(10, "Channel Length") n22 = input(21, "Average Length") /////////////// // FUNCTIONS // // Rounding Function roundn(x, n) => mult = 1 if n != 0 for i = 1 to abs(n) mult := mult * 10 n >= 0 ? round(x * mult) / mult : round(x / mult) * mult //FUNCTION FOR CIPHER //wt CALC(n1, n2, smooth) => ap = hlc3 esa = ema(ap, n1) dw = ema(abs(ap - esa), n1) ci = (ap - esa) / (0.015 * dw) tci = ema(ci, n2) wt1 = tci wt2 = sma(wt1,smooth) wave = wt1 - wt2 wavecolor = wave >=0? color.lime : color.red [wave, wavecolor] // Function for ADX // ADX dirmov(len) => up = change(high) down = -change(low) truerange = rma(tr, len) plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, len) / truerange) minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, len) / truerange) [plus, minus] adx(dilen, adxlen) => [plus, minus] = dirmov(dilen) sum = plus + minus adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen) [adx, plus, minus] [adxValue, diplus, diminus] = adx(dilen, adxlen) //PIVOTES plFound(osc) => na(pivotlow(osc, lbL, lbR)) ? false : true phFound(osc) => na(pivothigh(osc, lbL, lbR)) ? false : true //DIVERGENCIAS ///////////////////////////////////////////// //////////////Whale detector by blackcat //////////////////////////////////// //functions xrf(values, length) => r_val = float(na) if length >= 1 for i = 0 to length by 1 if na(r_val) or not na(values[i]) r_val := values[i] r_val r_val xsa(src,len,wei) => sumf = 0.0 ma = 0.0 out = 0.0 sumf := nz(sumf[1]) - nz(src[len]) + src ma := na(src[len]) ? na : sumf/len out := na(out[1]) ? ma : (src*wei+out[1]*(len-wei))/len out //plotshape(whale and show_whale ?true :na,style=shape.triangleup,text="🐳",color=color.blue,location=location.belowbar) _inRange(cond) => bars = barssince(cond == true) rangeLower <= bars and bars <= rangeUpper _findDivRB(osc)=> // Osc: Higher Low oscHL = osc[lbR] > valuewhen(plFound(osc), osc[lbR], 1) and _inRange(plFound(osc)[1]) // Price: Lower Low priceLL = low[lbR] < valuewhen(plFound(osc), low[lbR], 1) bullCond = priceLL and oscHL and plFound(osc) //------------------------------------------------------------------------------ // Hidden Bullish // Osc: Lower Low oscLL = osc[lbR] < valuewhen(plFound(osc), osc[lbR], 1) and _inRange(plFound(osc)[1]) // Price: Higher Low priceHL = low[lbR] > valuewhen(plFound(osc), low[lbR], 1) hiddenBullCond = priceHL and oscLL and plFound(osc) //------------------------------------------------------------------------------ // Regular Bearish // Osc: Lower High oscLH = osc[lbR] < valuewhen(phFound(osc), osc[lbR], 1) and _inRange(phFound(osc)[1]) // Price: Higher High priceHH = high[lbR] > valuewhen(phFound(osc), high[lbR], 1) bearCond = priceHH and oscLH and phFound(osc) //------------------------------------------------------------------------------ // Hidden Bearish // Osc: Higher High oscHH = osc[lbR] > valuewhen(phFound(osc), osc[lbR], 1) and _inRange(phFound(osc)[1]) // Price: Lower High priceLH = high[lbR] < valuewhen(phFound(osc), high[lbR], 1) hiddenBearCond = priceLH and oscHH and phFound(osc) [bullCond,hiddenBullCond,bearCond,hiddenBearCond] eleccion(type_1,value)=> t='' c=color.gray if type_1 == "TL" t := value==1 ? '\t|SELL|\t' : value==2 ? '\tBUY\t' : '\t| |\t' c := value==1 ? colorsell : value==2 ? colorbuy : color.gray else if type_1 == "Momentum" t := value==1 ? '\t|Direccionalidad ALCISTA|' : value==2 ? '| RANGO O CAIDA |' : value==3 ? '\t|Direccionalidad BAJISTA|' : value==4 ? '| RANGO O SUBIDA |' : '-' c := value==1 ? colorA : value==2 ? colorRC : value==3 ? colorB : value==4 ? colorRS : color.gray else if type_1 == "ADX" t := value==1 ? '\t|Pendiente POSITIVA ↑ 23|' : value==2 ? '\t|Pendiente NEGATIVA ↑ 23|' : value==3 ? '\t|Pendiente NEGATIVA ↓ 23 |' : value==4? '\t|Pendiente POSITIVA ↓ 23|' : '-' c := value==1 ? colorAdxP : value==2 ? colorAdxN : value==3 ? colorAdxN : value==4? colorAdxP : color.gray else if type_1 == "Cipher" t := value==1 ? '\t|SELL|\t' : value==2 ? '\tBUY\t' : '| |' c := value==1 ? colorsell : value==2 ? colorbuy : color.gray else if type_1 == "LuxAlgo" t := value==1 ? '\t|SELL|\t' : value==2 ? '\tBUY\t' : '| |' c := value==1 ? colorsell : value==2 ? colorbuy : color.gray else if type_1 == "DivergenciaM" t := value==1 ? '\t|DIVERGENCIA oculta ↓|' : value==2 ? '| DIVERGENCIA ↓ |' : value==3 ? '\t|DIVERGENCIA oculta ↑|' : value==4 ? '| DIVERGENCIA ↑ |' : '-' c := value==1 ? colorRC : value==2 ? colorB: value==3 ? colorRS: value==4 ? colorA : color.gray else if type_1 == "cambio" t := tostring(roundn(value,2)) c := value > 0 ? colorbuy : value < 0 ? colorsell : color.gray else if type_1 == "Whale" t := value == 1 ? '🐳' : '-' c := value == 1 ? #CCF6FD : color.gray [t,c] ///// numeber to string function and color convert(bsf,mf,af,cf)=> [tbs,cbs] = eleccion(type1,bsf) [tm,cm] = eleccion(type2,mf) [ta,ca] = eleccion (type3,af) [tcond,ccond] = eleccion (type4,cf) [tbs,tm,ta,cbs,cm,ca,tcond,ccond] // RSI Screener Function (overbought / orvesold) // Function outputs only 2 values // * Value - Numeric value you want to display in screener // * Cindition - True/False variable that shows if current symbol should be displayed in the screener screenerFunc() => //TRADING LATINO sz = linreg(srcM - avg(avg(highest(high, lengthM), lowest(low, lengthM)), sma(close, lengthM)), lengthM, 0) [adxValue, diplus, diminus] = adx(dilen, adxlen) ///////c CONDICIONES a1=adxValue >= 23 a2=adxValue < 23 a3=adxValue >= adxValue[1] a4=adxValue < adxValue[1] sc1 = sz >= 0 sc2 = sz < 0 sc3 = sz >= sz[1] sc4 = sz < sz[1] buy_cond1= plFound(sz) and adxValue < adxValue[1] ? true : false buy_cond2= phFound(adxValue) and sz >= sz[1] and sz<0 ? true : false sell_cond1=phFound(sz) and adxValue < adxValue[1] ? true : false sell_cond2=phFound(adxValue) and sz < sz[1] and sz>0? true : false bs = sell_cond1 or sell_cond2 ? 1 : buy_cond1 or buy_cond2 ? 2 : na // buysell= sell_cond1 or sell_cond2 ? 'Sell' : buy_cond1 or buy_cond2 ? 'Buy' : na ORIGINAL //bs = sell_cond1 or sell_cond2 ? 1 : buy_cond1 or buy_cond2 ? 2 : na //[bs1]=eleccion(type1,sz,adxValue) //bs=bs1 //ADX //iAdx = a1 and a3 ? '\tPendiente positiva ↑ 23' : a1 and a4 ? '\tPendiente negativa ↑ 23' : //a2 and a4 ? '\tPendiente negativa ↓ 23' : a2 and a3 ? '\tPendiente positiva ↓ 23' : '-' //ORIGINAL a = a1 and a3 ? 1 : a1 and a4 ? 2 : a2 and a4 ? 3 : a2 and a3 ? 4 : na //MOMENTUM //iMom = sc1 and sc3 ? 'Direccionalidad alcista' : sc1 and sc4 ? 'Direccionalidad bajista' : //sc2 and sc4 ? 'Direccionalidad bajista' : sc2 and sc3 ? 'Direccinalidad alcista' : '-' //ORIGNAL m = sc1 and sc3 ? 1 : sc1 and sc4 ? 2 : sc2 and sc4 ? 3 : sc2 and sc3 ? 4 : na price=close //CIPHERR [wave, wavecolor] = CALC(n1, n2, smooth) middle = 0 cond = crossover(wave,middle) ? 2 : crossunder(wave,middle) ? 1 : na // Divergencias [sz_bullCond,sz_hiddenBullCond,sz_bearCond,sz_hiddenBearCond]=_findDivRB(sz) dv= sz_bullCond ? 4 : sz_hiddenBullCond ? 3 : sz_bearCond ? 2 : sz_hiddenBearCond ? 1 : na // % cambio //((price - price[input_barsback]) * 100)/ xPrice[input_barsback]) maybe ch=((price-price[1])*100)/price //LUX ALGO (LAZY BEAR) ap = hlc3 esa = ema(ap, n11) d = ema(abs(ap - esa), n11) ci = (ap - esa) / (0.015 * d) tci = ema(ci, n22) wt1 = tci wt2 = sma(wt1,4) la = crossover(wt1,wt2) ? 2 : crossunder(wt1,wt2) ? 1 : na //trend follower algorithm var2 = xrf(low,1) var3 = xsa(abs(low-var2),3,1)/xsa(max(low-var2,0),3,1)*100 var4 = ema(iff(close*1.2,var3*10,var3/10),3) var5 = lowest(low,30) var6 = highest(var4,30) var7 = iff(lowest(low,58),1,0) var8 = ema(iff(low<=var5,(var4+var6*2)/2,0),3)/618*var7 //whale pump detector whale = phFound(var8) ? 1 : 0 rsi = rsi(close,rsiP) // cond adx m bs c1 = type1 == "TL" ? bs: type1 == "Momentum" ? m : type1 == "ADX" ? a : type1 == "Cipher" ? cond : type1 == "LuxAlgo" ? la : type1 == "DivergenciaM" ? dv : type1 == "cambio" ? ch : type1 == "Whale" ? whale : na c2 = type2 == "TL" ? bs: type2 == "Momentum" ? m : type2 == "ADX" ? a : type2 == "Cipher" ? cond : type2 == "LuxAlgo" ? la : type2 == "DivergenciaM" ? dv : type2 == "cambio" ? ch : type2 == "Whale" ? whale : na c3 = type3 == "TL" ? bs: type3 == "Momentum" ? m : type3 == "ADX" ? a : type3 == "Cipher" ? cond : type3 == "LuxAlgo" ? la : type3 == "DivergenciaM" ? dv : type3 == "cambio" ? ch : type3 == "Whale" ? whale : na c4 = type4 == "TL" ? bs: type4 == "Momentum" ? m : type4 == "ADX" ? a : type4 == "Cipher" ? cond : type4 == "LuxAlgo" ? la : type4 == "DivergenciaM" ? dv : type4 == "cambio" ? ch : type4 == "Whale" ? whale : na val = type0 == 'precio' ? price : type0 == 'cambio' ? ch : type0 == 'rsi' ? rsi : na [val , c4 , c3, c2, c1] aS=array.new_string(41) array.set( aS, 0 , s01 ) array.set( aS, 1 , s02 ) array.set( aS, 2 , s03 ) array.set( aS, 3 , s04 ) array.set( aS, 4 , s05 ) array.set( aS, 5 , s06 ) array.set( aS, 6 , s07 ) array.set( aS, 7 , s08 ) array.set( aS, 8 , s09 ) array.set( aS, 9 , s10 ) array.set( aS, 10 , s11 ) array.set( aS, 11 , s12 ) array.set( aS, 12 , s13 ) array.set( aS, 13 , s14 ) array.set( aS, 14 , s15 ) array.set( aS, 15 , s16 ) array.set( aS, 16 , s17 ) array.set( aS, 17 , s18 ) array.set( aS, 18 , s19 ) array.set( aS, 19 , s20 ) array.set( aS, 20 , s21 ) array.set( aS, 21 , s22 ) array.set( aS, 22 , s23 ) array.set( aS, 23 , s24 ) array.set( aS, 24 , s25 ) array.set( aS, 25 , s26 ) array.set( aS, 26 , s27 ) array.set( aS, 27 , s28 ) array.set( aS, 28 , s29 ) array.set( aS, 29 , s30 ) array.set( aS, 30 , s31 ) array.set( aS, 31 , s32 ) array.set( aS, 32 , s33 ) array.set( aS, 33 , s34 ) array.set( aS, 34 , s35 ) array.set( aS, 35 , s36 ) array.set( aS, 36 , s37 ) array.set( aS, 37 , s38 ) array.set( aS, 38 , s39 ) array.set( aS, 39 , s40 ) aPrice = array.new_float(41) aCond= array.new_float(41) aA = array.new_float(41) aM = array.new_float(41) aBs = array.new_float(41) /////////////////////////////////////// // Running Functions for all sybmols // [v01, c01,a01,m01,bs01] = security(s01, timeframe.period, screenerFunc()) [v02, c02,a02,m02,bs02] = security(s02, timeframe.period, screenerFunc()) [v03, c03,a03,m03,bs03] = security(s03, timeframe.period, screenerFunc()) [v04, c04,a04,m04,bs04] = security(s04, timeframe.period, screenerFunc()) [v05, c05,a05,m05,bs05] = security(s05, timeframe.period, screenerFunc()) [v06, c06,a06,m06,bs06] = security(s06, timeframe.period, screenerFunc()) [v07, c07,a07,m07,bs07] = security(s07, timeframe.period, screenerFunc()) [v08, c08,a08,m08,bs08] = security(s08, timeframe.period, screenerFunc()) [v09, c09,a09,m09,bs09] = security(s09, timeframe.period, screenerFunc()) [v10, c10,a10,m10,bs10] = security(s10, timeframe.period, screenerFunc()) [v11, c11,a11,m11,bs11] = security(s11, timeframe.period, screenerFunc()) [v12, c12,a12,m12,bs12] = security(s12, timeframe.period, screenerFunc()) [v13, c13,a13,m13,bs13] = security(s13, timeframe.period, screenerFunc()) [v14, c14,a14,m14,bs14] = security(s14, timeframe.period, screenerFunc()) [v15, c15,a15,m15,bs15] = security(s15, timeframe.period, screenerFunc()) [v16, c16,a16,m16,bs16] = security(s16, timeframe.period, screenerFunc()) [v17, c17,a17,m17,bs17] = security(s17, timeframe.period, screenerFunc()) [v18, c18,a18,m18,bs18] = security(s18, timeframe.period, screenerFunc()) [v19, c19,a19,m19,bs19] = security(s19, timeframe.period, screenerFunc()) [v20, c20,a20,m20,bs20] = security(s20, timeframe.period, screenerFunc()) [v21, c21,a21,m21,bs21] = security(s21, timeframe.period, screenerFunc()) [v22, c22,a22,m22,bs22] = security(s22, timeframe.period, screenerFunc()) [v23, c23,a23,m23,bs23] = security(s23, timeframe.period, screenerFunc()) [v24, c24,a24,m24,bs24] = security(s24, timeframe.period, screenerFunc()) [v25, c25,a25,m25,bs25] = security(s25, timeframe.period, screenerFunc()) [v26, c26,a26,m26,bs26] = security(s26, timeframe.period, screenerFunc()) [v27, c27,a27,m27,bs27] = security(s27, timeframe.period, screenerFunc()) [v28, c28,a28,m28,bs28] = security(s28, timeframe.period, screenerFunc()) [v29, c29,a29,m29,bs29] = security(s29, timeframe.period, screenerFunc()) [v30, c30,a30,m30,bs30] = security(s30, timeframe.period, screenerFunc()) [v31, c31,a31,m31,bs31] = security(s31, timeframe.period, screenerFunc()) [v32, c32,a32,m32,bs32] = security(s32, timeframe.period, screenerFunc()) [v33, c33,a33,m33,bs33] = security(s33, timeframe.period, screenerFunc()) [v34, c34,a34,m34,bs34] = security(s34, timeframe.period, screenerFunc()) [v35, c35,a35,m35,bs35] = security(s35, timeframe.period, screenerFunc()) [v36, c36,a36,m36,bs36] = security(s36, timeframe.period, screenerFunc()) [v37, c37,a37,m37,bs37] = security(s37, timeframe.period, screenerFunc()) [v38, c38,a38,m38,bs38] = security(s38, timeframe.period, screenerFunc()) [v39, c39,a39,m39,bs39] = security(s39, timeframe.period, screenerFunc()) [v40, c40,a40,m40,bs40] = security(s40, timeframe.period, screenerFunc()) /////////////////////////////VALORES A ARRAY array.set( aPrice, 0 , v01 ) array.set( aPrice, 1 , v02 ) array.set( aPrice, 2 , v03 ) array.set( aPrice, 3 , v04 ) array.set( aPrice, 4 , v05 ) array.set( aPrice, 5 , v06 ) array.set( aPrice, 6 , v07 ) array.set( aPrice, 7 , v08 ) array.set( aPrice, 8 , v09 ) array.set( aPrice, 9 , v10 ) array.set( aPrice, 10 , v11 ) array.set( aPrice, 11 , v12 ) array.set( aPrice, 12 , v13 ) array.set( aPrice, 13 , v14 ) array.set( aPrice, 14 , v15 ) array.set( aPrice, 15 , v16 ) array.set( aPrice, 16 , v17 ) array.set( aPrice, 17 , v18 ) array.set( aPrice, 18 , v19 ) array.set( aPrice, 19 , v20 ) array.set( aPrice, 20 , v21 ) array.set( aPrice, 21 , v22 ) array.set( aPrice, 22 , v23 ) array.set( aPrice, 23 , v24 ) array.set( aPrice, 24 , v25 ) array.set( aPrice, 25 , v26 ) array.set( aPrice, 26 , v27 ) array.set( aPrice, 27 , v28 ) array.set( aPrice, 28 , v29 ) array.set( aPrice, 29 , v30 ) array.set( aPrice, 30 , v31 ) array.set( aPrice, 31 , v32 ) array.set( aPrice, 32 , v33 ) array.set( aPrice, 33 , v34 ) array.set( aPrice, 34 , v35 ) array.set( aPrice, 35 , v36 ) array.set( aPrice, 36 , v37 ) array.set( aPrice, 37 , v38 ) array.set( aPrice, 38 , v39 ) array.set( aPrice, 39 , v40 ) /// To STRING asA = array.new_string(41) asM = array.new_string(41) asBs = array.new_string(41) asCond = array.new_string(41) ////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// [ tbs01 , tm01 , ta01 , cbs01 , cm01 , ca01 , tcond01 , ccond01 ] = convert( bs01 , m01 , a01 , c01 ) [ tbs02 , tm02 , ta02 , cbs02 , cm02 , ca02 , tcond02 , ccond02 ] = convert( bs02 , m02 , a02 , c02 ) [ tbs03 , tm03 , ta03 , cbs03 , cm03 , ca03 , tcond03 , ccond03 ] = convert( bs03 , m03 , a03 , c03 ) [ tbs04 , tm04 , ta04 , cbs04 , cm04 , ca04 , tcond04 , ccond04 ] = convert( bs04 , m04 , a04 , c04 ) [ tbs05 , tm05 , ta05 , cbs05 , cm05 , ca05 , tcond05 , ccond05 ] = convert( bs05 , m05 , a05 , c05 ) [ tbs06 , tm06 , ta06 , cbs06 , cm06 , ca06 , tcond06 , ccond06 ] = convert( bs06 , m06 , a06 , c06 ) [ tbs07 , tm07 , ta07 , cbs07 , cm07 , ca07 , tcond07 , ccond07 ] = convert( bs07 , m07 , a07 , c07 ) [ tbs08 , tm08 , ta08 , cbs08 , cm08 , ca08 , tcond08 , ccond08 ] = convert( bs08 , m08 , a08 , c08 ) [ tbs09 , tm09 , ta09 , cbs09 , cm09 , ca09 , tcond09 , ccond09 ] = convert( bs09 , m09 , a09 , c09 ) [ tbs10 , tm10 , ta10 , cbs10 , cm10 , ca10 , tcond10 , ccond10 ] = convert( bs10 , m10 , a10 , c10 ) [ tbs11 , tm11 , ta11 , cbs11 , cm11 , ca11 , tcond11 , ccond11 ] = convert( bs11 , m11 , a11 , c11 ) [ tbs12 , tm12 , ta12 , cbs12 , cm12 , ca12 , tcond12 , ccond12 ] = convert( bs12 , m12 , a12 , c12 ) [ tbs13 , tm13 , ta13 , cbs13 , cm13 , ca13 , tcond13 , ccond13 ] = convert( bs13 , m13 , a13 , c13 ) [ tbs14 , tm14 , ta14 , cbs14 , cm14 , ca14 , tcond14 , ccond14 ] = convert( bs14 , m14 , a14 , c14 ) [ tbs15 , tm15 , ta15 , cbs15 , cm15 , ca15 , tcond15 , ccond15 ] = convert( bs15 , m15 , a15 , c15 ) [ tbs16 , tm16 , ta16 , cbs16 , cm16 , ca16 , tcond16 , ccond16 ] = convert( bs16 , m16 , a16 , c16 ) [ tbs17 , tm17 , ta17 , cbs17 , cm17 , ca17 , tcond17 , ccond17 ] = convert( bs17 , m17 , a17 , c17 ) [ tbs18 , tm18 , ta18 , cbs18 , cm18 , ca18 , tcond18 , ccond18 ] = convert( bs18 , m18 , a18 , c18 ) [ tbs19 , tm19 , ta19 , cbs19 , cm19 , ca19 , tcond19 , ccond19 ] = convert( bs19 , m19 , a19 , c19 ) [ tbs20 , tm20 , ta20 , cbs20 , cm20 , ca20 , tcond20 , ccond20 ] = convert( bs20 , m20 , a20 , c20 ) [ tbs21 , tm21 , ta21 , cbs21 , cm21 , ca21 , tcond21 , ccond21 ] = convert( bs21 , m21 , a21 , c21 ) [ tbs22 , tm22 , ta22 , cbs22 , cm22 , ca22 , tcond22 , ccond22 ] = convert( bs22 , m22 , a22 , c22 ) [ tbs23 , tm23 , ta23 , cbs23 , cm23 , ca23 , tcond23 , ccond23 ] = convert( bs23 , m23 , a23 , c23 ) [ tbs24 , tm24 , ta24 , cbs24 , cm24 , ca24 , tcond24 , ccond24 ] = convert( bs24 , m24 , a24 , c24 ) [ tbs25 , tm25 , ta25 , cbs25 , cm25 , ca25 , tcond25 , ccond25 ] = convert( bs25 , m25 , a25 , c25 ) [ tbs26 , tm26 , ta26 , cbs26 , cm26 , ca26 , tcond26 , ccond26 ] = convert( bs26 , m26 , a26 , c26 ) [ tbs27 , tm27 , ta27 , cbs27 , cm27 , ca27 , tcond27 , ccond27 ] = convert( bs27 , m27 , a27 , c27 ) [ tbs28 , tm28 , ta28 , cbs28 , cm28 , ca28 , tcond28 , ccond28 ] = convert( bs28 , m28 , a28 , c28 ) [ tbs29 , tm29 , ta29 , cbs29 , cm29 , ca29 , tcond29 , ccond29 ] = convert( bs29 , m29 , a29 , c29 ) [ tbs30 , tm30 , ta30 , cbs30 , cm30 , ca30 , tcond30 , ccond30 ] = convert( bs30 , m30 , a30 , c30 ) [ tbs31 , tm31 , ta31 , cbs31 , cm31 , ca31 , tcond31 , ccond31 ] = convert( bs31 , m31 , a31 , c31 ) [ tbs32 , tm32 , ta32 , cbs32 , cm32 , ca32 , tcond32 , ccond32 ] = convert( bs32 , m32 , a32 , c32 ) [ tbs33 , tm33 , ta33 , cbs33 , cm33 , ca33 , tcond33 , ccond33 ] = convert( bs33 , m33 , a33 , c33 ) [ tbs34 , tm34 , ta34 , cbs34 , cm34 , ca34 , tcond34 , ccond34 ] = convert( bs34 , m34 , a34 , c34 ) [ tbs35 , tm35 , ta35 , cbs35 , cm35 , ca35 , tcond35 , ccond35 ] = convert( bs35 , m35 , a35 , c35 ) [ tbs36 , tm36 , ta36 , cbs36 , cm36 , ca36 , tcond36 , ccond36 ] = convert( bs36 , m36 , a36 , c36 ) [ tbs37 , tm37 , ta37 , cbs37 , cm37 , ca37 , tcond37 , ccond37 ] = convert( bs37 , m37 , a37 , c37 ) [ tbs38 , tm38 , ta38 , cbs38 , cm38 , ca38 , tcond38 , ccond38 ] = convert( bs38 , m38 , a38 , c38 ) [ tbs39 , tm39 , ta39 , cbs39 , cm39 , ca39 , tcond39 , ccond39 ] = convert( bs39 , m39 , a39 , c39 ) [ tbs40 , tm40 , ta40 , cbs40 , cm40 , ca40 , tcond40 , ccond40 ] = convert( bs40 , m40 , a40 , c40 ) ////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// acA = array.new_color(41) acM = array.new_color(41) acBs = array.new_color(41) accond = array.new_color(41) array.set( accond, 0 , ccond01 ) array.set( accond, 1 , ccond02 ) array.set( accond, 2 , ccond03 ) array.set( accond, 3 , ccond04 ) array.set( accond, 4 , ccond05 ) array.set( accond, 5 , ccond06 ) array.set( accond, 6 , ccond07 ) array.set( accond, 7 , ccond08 ) array.set( accond, 8 , ccond09 ) array.set( accond, 9 , ccond10 ) array.set( accond, 10 , ccond11 ) array.set( accond, 11 , ccond12 ) array.set( accond, 12 , ccond13 ) array.set( accond, 13 , ccond14 ) array.set( accond, 14 , ccond15 ) array.set( accond, 15 , ccond16 ) array.set( accond, 16 , ccond17 ) array.set( accond, 17 , ccond18 ) array.set( accond, 18 , ccond19 ) array.set( accond, 19 , ccond20 ) array.set( accond, 20 , ccond21 ) array.set( accond, 21 , ccond22 ) array.set( accond, 22 , ccond23 ) array.set( accond, 23 , ccond24 ) array.set( accond, 24 , ccond25 ) array.set( accond, 25 , ccond26 ) array.set( accond, 26 , ccond27 ) array.set( accond, 27 , ccond28 ) array.set( accond, 28 , ccond29 ) array.set( accond, 29 , ccond30 ) array.set( accond, 30 , ccond31 ) array.set( accond, 31 , ccond32 ) array.set( accond, 32 , ccond33 ) array.set( accond, 33 , ccond34 ) array.set( accond, 34 , ccond35 ) array.set( accond, 35 , ccond36 ) array.set( accond, 36 , ccond37 ) array.set( accond, 37 , ccond38 ) array.set( accond, 38 , ccond39 ) array.set( accond, 39 , ccond40 ) //array.set( accond, 40 , ccond41 ) array.set( acBs, 0 , cbs01 ) array.set( acBs, 1 , cbs02 ) array.set( acBs, 2 , cbs03 ) array.set( acBs, 3 , cbs04 ) array.set( acBs, 4 , cbs05 ) array.set( acBs, 5 , cbs06 ) array.set( acBs, 6 , cbs07 ) array.set( acBs, 7 , cbs08 ) array.set( acBs, 8 , cbs09 ) array.set( acBs, 9 , cbs10 ) array.set( acBs, 10 , cbs11 ) array.set( acBs, 11 , cbs12 ) array.set( acBs, 12 , cbs13 ) array.set( acBs, 13 , cbs14 ) array.set( acBs, 14 , cbs15 ) array.set( acBs, 15 , cbs16 ) array.set( acBs, 16 , cbs17 ) array.set( acBs, 17 , cbs18 ) array.set( acBs, 18 , cbs19 ) array.set( acBs, 19 , cbs20 ) array.set( acBs, 20 , cbs21 ) array.set( acBs, 21 , cbs22 ) array.set( acBs, 22 , cbs23 ) array.set( acBs, 23 , cbs24 ) array.set( acBs, 24 , cbs25 ) array.set( acBs, 25 , cbs26 ) array.set( acBs, 26 , cbs27 ) array.set( acBs, 27 , cbs28 ) array.set( acBs, 28 , cbs29 ) array.set( acBs, 29 , cbs30 ) array.set( acBs, 30 , cbs31 ) array.set( acBs, 31 , cbs32 ) array.set( acBs, 32 , cbs33 ) array.set( acBs, 33 , cbs34 ) array.set( acBs, 34 , cbs35 ) array.set( acBs, 35 , cbs36 ) array.set( acBs, 36 , cbs37 ) array.set( acBs, 37 , cbs38 ) array.set( acBs, 38 , cbs39 ) array.set( acBs, 39 , cbs40 ) array.set( acA, 0 , ca01 ) array.set( acA, 1 , ca02 ) array.set( acA, 2 , ca03 ) array.set( acA, 3 , ca04 ) array.set( acA, 4 , ca05 ) array.set( acA, 5 , ca06 ) array.set( acA, 6 , ca07 ) array.set( acA, 7 , ca08 ) array.set( acA, 8 , ca09 ) array.set( acA, 9 , ca10 ) array.set( acA, 10 , ca11 ) array.set( acA, 11 , ca12 ) array.set( acA, 12 , ca13 ) array.set( acA, 13 , ca14 ) array.set( acA, 14 , ca15 ) array.set( acA, 15 , ca16 ) array.set( acA, 16 , ca17 ) array.set( acA, 17 , ca18 ) array.set( acA, 18 , ca19 ) array.set( acA, 19 , ca20 ) array.set( acA, 20 , ca21 ) array.set( acA, 21 , ca22 ) array.set( acA, 22 , ca23 ) array.set( acA, 23 , ca24 ) array.set( acA, 24 , ca25 ) array.set( acA, 25 , ca26 ) array.set( acA, 26 , ca27 ) array.set( acA, 27 , ca28 ) array.set( acA, 28 , ca29 ) array.set( acA, 29 , ca30 ) array.set( acA, 30 , ca31 ) array.set( acA, 31 , ca32 ) array.set( acA, 32 , ca33 ) array.set( acA, 33 , ca34 ) array.set( acA, 34 , ca35 ) array.set( acA, 35 , ca36 ) array.set( acA, 36 , ca37 ) array.set( acA, 37 , ca38 ) array.set( acA, 38 , ca39 ) array.set( acA, 39 , ca40 ) array.set( acM, 0 , cm01 ) array.set( acM, 1 , cm02 ) array.set( acM, 2 , cm03 ) array.set( acM, 3 , cm04 ) array.set( acM, 4 , cm05 ) array.set( acM, 5 , cm06 ) array.set( acM, 6 , cm07 ) array.set( acM, 7 , cm08 ) array.set( acM, 8 , cm09 ) array.set( acM, 9 , cm10 ) array.set( acM, 10 , cm11 ) array.set( acM, 11 , cm12 ) array.set( acM, 12 , cm13 ) array.set( acM, 13 , cm14 ) array.set( acM, 14 , cm15 ) array.set( acM, 15 , cm16 ) array.set( acM, 16 , cm17 ) array.set( acM, 17 , cm18 ) array.set( acM, 18 , cm19 ) array.set( acM, 19 , cm20 ) array.set( acM, 20 , cm21 ) array.set( acM, 21 , cm22 ) array.set( acM, 22 , cm23 ) array.set( acM, 23 , cm24 ) array.set( acM, 24 , cm25 ) array.set( acM, 25 , cm26 ) array.set( acM, 26 , cm27 ) array.set( acM, 27 , cm28 ) array.set( acM, 28 , cm29 ) array.set( acM, 29 , cm30 ) array.set( acM, 30 , cm31 ) array.set( acM, 31 , cm32 ) array.set( acM, 32 , cm33 ) array.set( acM, 33 , cm34 ) array.set( acM, 34 , cm35 ) array.set( acM, 35 , cm36 ) array.set( acM, 36 , cm37 ) array.set( acM, 37 , cm38 ) array.set( acM, 38 , cm39 ) array.set( acM, 39 , cm40 ) ////////////////////////////////////////////////////////////////////////////// array.set( asBs, 0 , tbs01 ) array.set( asBs, 1 , tbs02 ) array.set( asBs, 2 , tbs03 ) array.set( asBs, 3 , tbs04 ) array.set( asBs, 4 , tbs05 ) array.set( asBs, 5 , tbs06 ) array.set( asBs, 6 , tbs07 ) array.set( asBs, 7 , tbs08 ) array.set( asBs, 8 , tbs09 ) array.set( asBs, 9 , tbs10 ) array.set( asBs, 10 , tbs11 ) array.set( asBs, 11 , tbs12 ) array.set( asBs, 12 , tbs13 ) array.set( asBs, 13 , tbs14 ) array.set( asBs, 14 , tbs15 ) array.set( asBs, 15 , tbs16 ) array.set( asBs, 16 , tbs17 ) array.set( asBs, 17 , tbs18 ) array.set( asBs, 18 , tbs19 ) array.set( asBs, 19 , tbs20 ) array.set( asBs, 20 , tbs21 ) array.set( asBs, 21 , tbs22 ) array.set( asBs, 22 , tbs23 ) array.set( asBs, 23 , tbs24 ) array.set( asBs, 24 , tbs25 ) array.set( asBs, 25 , tbs26 ) array.set( asBs, 26 , tbs27 ) array.set( asBs, 27 , tbs28 ) array.set( asBs, 28 , tbs29 ) array.set( asBs, 29 , tbs30 ) array.set( asBs, 30 , tbs31 ) array.set( asBs, 31 , tbs32 ) array.set( asBs, 32 , tbs33 ) array.set( asBs, 33 , tbs34 ) array.set( asBs, 34 , tbs35 ) array.set( asBs, 35 , tbs36 ) array.set( asBs, 36 , tbs37 ) array.set( asBs, 37 , tbs38 ) array.set( asBs, 38 , tbs39 ) array.set( asBs, 39 , tbs40 ) array.set( asM, 0 , tm01 ) array.set( asM, 1 , tm02 ) array.set( asM, 2 , tm03 ) array.set( asM, 3 , tm04 ) array.set( asM, 4 , tm05 ) array.set( asM, 5 , tm06 ) array.set( asM, 6 , tm07 ) array.set( asM, 7 , tm08 ) array.set( asM, 8 , tm09 ) array.set( asM, 9 , tm10 ) array.set( asM, 10 , tm11 ) array.set( asM, 11 , tm12 ) array.set( asM, 12 , tm13 ) array.set( asM, 13 , tm14 ) array.set( asM, 14 , tm15 ) array.set( asM, 15 , tm16 ) array.set( asM, 16 , tm17 ) array.set( asM, 17 , tm18 ) array.set( asM, 18 , tm19 ) array.set( asM, 19 , tm20 ) array.set( asM, 20 , tm21 ) array.set( asM, 21 , tm22 ) array.set( asM, 22 , tm23 ) array.set( asM, 23 , tm24 ) array.set( asM, 24 , tm25 ) array.set( asM, 25 , tm26 ) array.set( asM, 26 , tm27 ) array.set( asM, 27 , tm28 ) array.set( asM, 28 , tm29 ) array.set( asM, 29 , tm30 ) array.set( asM, 30 , tm31 ) array.set( asM, 31 , tm32 ) array.set( asM, 32 , tm33 ) array.set( asM, 33 , tm34 ) array.set( asM, 34 , tm35 ) array.set( asM, 35 , tm36 ) array.set( asM, 36 , tm37 ) array.set( asM, 37 , tm38 ) array.set( asM, 38 , tm39 ) array.set( asM, 39 , tm40 ) array.set( asA, 0 , ta01 ) array.set( asA, 1 , ta02 ) array.set( asA, 2 , ta03 ) array.set( asA, 3 , ta04 ) array.set( asA, 4 , ta05 ) array.set( asA, 5 , ta06 ) array.set( asA, 6 , ta07 ) array.set( asA, 7 , ta08 ) array.set( asA, 8 , ta09 ) array.set( asA, 9 , ta10 ) array.set( asA, 10 , ta11 ) array.set( asA, 11 , ta12 ) array.set( asA, 12 , ta13 ) array.set( asA, 13 , ta14 ) array.set( asA, 14 , ta15 ) array.set( asA, 15 , ta16 ) array.set( asA, 16 , ta17 ) array.set( asA, 17 , ta18 ) array.set( asA, 18 , ta19 ) array.set( asA, 19 , ta20 ) array.set( asA, 20 , ta21 ) array.set( asA, 21 , ta22 ) array.set( asA, 22 , ta23 ) array.set( asA, 23 , ta24 ) array.set( asA, 24 , ta25 ) array.set( asA, 25 , ta26 ) array.set( asA, 26 , ta27 ) array.set( asA, 27 , ta28 ) array.set( asA, 28 , ta29 ) array.set( asA, 29 , ta30 ) array.set( asA, 30 , ta31 ) array.set( asA, 31 , ta32 ) array.set( asA, 32 , ta33 ) array.set( asA, 33 , ta34 ) array.set( asA, 34 , ta35 ) array.set( asA, 35 , ta36 ) array.set( asA, 36 , ta37 ) array.set( asA, 37 , ta38 ) array.set( asA, 38 , ta39 ) array.set( asA, 39 , ta40 ) array.set( asCond, 0 , tcond01 ) array.set( asCond, 1 , tcond02 ) array.set( asCond, 2 , tcond03 ) array.set( asCond, 3 , tcond04 ) array.set( asCond, 4 , tcond05 ) array.set( asCond, 5 , tcond06 ) array.set( asCond, 6 , tcond07 ) array.set( asCond, 7 , tcond08 ) array.set( asCond, 8 , tcond09 ) array.set( asCond, 9 , tcond10 ) array.set( asCond, 10 , tcond11 ) array.set( asCond, 11 , tcond12 ) array.set( asCond, 12 , tcond13 ) array.set( asCond, 13 , tcond14 ) array.set( asCond, 14 , tcond15 ) array.set( asCond, 15 , tcond16 ) array.set( asCond, 16 , tcond17 ) array.set( asCond, 17 , tcond18 ) array.set( asCond, 18 , tcond19 ) array.set( asCond, 19 , tcond20 ) array.set( asCond, 20 , tcond21 ) array.set( asCond, 21 , tcond22 ) array.set( asCond, 22 , tcond23 ) array.set( asCond, 23 , tcond24 ) array.set( asCond, 24 , tcond25 ) array.set( asCond, 25 , tcond26 ) array.set( asCond, 26 , tcond27 ) array.set( asCond, 27 , tcond28 ) array.set( asCond, 28 , tcond29 ) array.set( asCond, 29 , tcond30 ) array.set( asCond, 30 , tcond31 ) array.set( asCond, 31 , tcond32 ) array.set( asCond, 32 , tcond33 ) array.set( asCond, 33 , tcond34 ) array.set( asCond, 34 , tcond35 ) array.set( asCond, 35 , tcond36 ) array.set( asCond, 36 , tcond37 ) array.set( asCond, 37 , tcond38 ) array.set( asCond, 38 , tcond39 ) array.set( asCond, 39 , tcond40 ) //array.set( asCond, 40 , tcond41 ) ////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////// var table panel = table.new( position.top_left, 6, 23) if barstate.islast and show_tabla and show_tabla1 // Table header. table.cell(panel, 0, 0, "Activo",text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel, 1, 0, type0, text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel, 2, 0, type1, text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel, 3, 0, type2, text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel, 4, 0, type3, text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel, 5, 0, type4, text_color = colorT, bgcolor = colorN, text_size = labelSize) for _i = 0 to 19 // ————— Only execute table code on last bar. if barstate.islast and show_tabla and show_tabla1 // Period in left column. table.cell(panel, 0, _i + 1, array.get(aS, _i), text_color = colorT, bgcolor = colorN , text_size = labelSize) table.cell(panel, 1, _i + 1,tostring(roundn(array.get(aPrice, _i),2)), text_color =colorT, bgcolor = type0 == 'cambio' and array.get(aPrice, _i) > 0 ? colorbuy : type0 == 'cambio' and array.get(aPrice, _i) < 0 ? colorsell : colorN , text_size = labelSize) table.cell(panel, 2, _i + 1,array.get(asBs, _i), text_color = colorT, bgcolor = array.get(acBs, _i), text_size = labelSize) table.cell(panel, 3, _i + 1,array.get(asM, _i), text_color = colorT, bgcolor = array.get(acM, _i), text_size = labelSize) table.cell(panel, 4, _i + 1,array.get(asA, _i), text_color = colorT, bgcolor = array.get(acA, _i), text_size = labelSize) table.cell(panel, 5, _i + 1,array.get(asCond, _i), text_color = colorT, bgcolor = array.get(accond, _i), text_size = labelSize) var table panel2 = table.new( position.top_right, 6, 23) if barstate.islast and show_tabla and show_tabla2 // Table header. table.cell(panel2, 0, 0, "Activo", text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel2, 1, 0, type0, text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel2, 2, 0, type1, text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel2, 3, 0, type2, text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel2, 4, 0, type3, text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel2, 5, 0, type4, text_color = colorT, bgcolor = colorN, text_size = labelSize) for _i = 0 to 20 // ————— Only execute table code on last bar. if barstate.islast and show_tabla and show_tabla2 table.cell(panel2, 0, _i + 1, array.get(aS, _i + 20), text_color = colorT, bgcolor = colorN, text_size = labelSize) table.cell(panel2, 1, _i + 1,tostring(roundn(array.get(aPrice, _i + 20),2)), text_color = colorT, bgcolor = type0 == 'cambio' and array.get(aPrice, _i) > 0 ? colorbuy : type0 == 'cambio' and array.get(aPrice, _i) < 0 ? colorsell : colorN , text_size = labelSize) table.cell(panel2, 2, _i + 1,array.get(asBs, _i + 20), text_color = colorT, bgcolor = array.get(acBs, _i + 20), text_size = labelSize) table.cell(panel2, 3, _i + 1,array.get(asM, _i + 20), text_color = colorT, bgcolor = array.get(acM, _i + 20), text_size = labelSize) table.cell(panel2, 4, _i + 1,array.get(asA, _i + 20), text_color = colorT, bgcolor = array.get(acA, _i + 20), text_size = labelSize) table.cell(panel2, 5, _i + 1,array.get(asCond, _i + 20), text_color = colorT, bgcolor = array.get(accond, _i + 20), text_size = labelSize) //////////////////// // Screener label // main idea from @ QuantNomad scr_label = '' // Compose a screener message scr_label := show_label ? scr_label + s01 + ' ' + tostring(roundn(v01, 2)) + ' ' + tbs01 + ' ' + tm01 + ' ' + ta01 + '\n\n' : scr_label scr_label := show_label ? scr_label + s02 + ' ' + tostring(roundn(v02, 2)) + ' ' + tbs02 + ' ' + tm02 + ' ' + ta02 + '\n\n' : scr_label scr_label := show_label ? scr_label + s03 + ' ' + tostring(roundn(v03, 2)) + ' ' + tbs03 + ' ' + tm03 + ' ' + ta04 + '\n\n' : scr_label scr_label := show_label ? scr_label + s04 + ' ' + tostring(roundn(v04, 2)) + ' ' + tbs04 + ' ' + tm04 + ' ' + ta04 + '\n\n' : scr_label scr_label := show_label ? scr_label + s05 + ' ' + tostring(roundn(v05, 2)) + ' ' + tbs05 + ' ' + tm05 + ' ' + ta05 + '\n\n' : scr_label scr_label := show_label ? scr_label + s06 + ' ' + tostring(roundn(v06, 2)) + ' ' + tbs06 + ' ' + tm06 + ' ' + ta06 + '\n\n' : scr_label scr_label := show_label ? scr_label + s03 + ' ' + tostring(roundn(v03, 2)) + ' ' + tbs03 + ' ' + tm03 + ' ' + ta04 + '\n\n' : scr_label scr_label := show_label ? scr_label + s04 + ' ' + tostring(roundn(v04, 2)) + ' ' + tbs04 + ' ' + tm04 + ' ' + ta04 + '\n\n' : scr_label scr_label := show_label ? scr_label + s05 + ' ' + tostring(roundn(v05, 2)) + ' ' + tbs05 + ' ' + tm05 + ' ' + ta05 + '\n\n' : scr_label scr_label := show_label ? scr_label + s06 + ' ' + tostring(roundn(v06, 2)) + ' ' + tbs06 + ' ' + tm06 + ' ' + ta06 + '\n\n' : scr_label scr_label := show_label ? scr_label + s07 + ' ' + tostring(roundn(v07, 2)) + ' ' + tbs07 + ' ' + tm07 + ' ' + ta07 + '\n\n' : scr_label scr_label := show_label ? scr_label + s08 + ' ' + tostring(roundn(v08, 2)) + ' ' + tbs08 + ' ' + tm08 + ' ' + ta08 + '\n\n' : scr_label scr_label := show_label ? scr_label + s09 + ' ' + tostring(roundn(v09, 2)) + ' ' + tbs09 + ' ' + tm09 + ' ' + ta09 + '\n\n' : scr_label scr_label := show_label ? scr_label + s10 + ' ' + tostring(roundn(v10, 2)) + ' ' + tbs10 + ' ' + tm10 + ' ' + ta10 + '\n\n' : scr_label scr_label := show_label ? scr_label + s11 + ' ' + tostring(roundn(v11, 2)) + ' ' + tbs11 + ' ' + tm11 + ' ' + ta11 + '\n\n' : scr_label scr_label := show_label ? scr_label + s12 + ' ' + tostring(roundn(v12, 2)) + ' ' + tbs12 + ' ' + tm12 + ' ' + ta12 + '\n\n' : scr_label scr_label := show_label ? scr_label + s13 + ' ' + tostring(roundn(v13, 2)) + ' ' + tbs13 + ' ' + tm13 + ' ' + ta13 + '\n\n' : scr_label scr_label := show_label ? scr_label + s14 + ' ' + tostring(roundn(v14, 2)) + ' ' + tbs14 + ' ' + tm14 + ' ' + ta14 + '\n\n' : scr_label scr_label := show_label ? scr_label + s15 + ' ' + tostring(roundn(v15, 2)) + ' ' + tbs15 + ' ' + tm15 + ' ' + ta15 + '\n\n' : scr_label scr_label := show_label ? scr_label + s16 + ' ' + tostring(roundn(v16, 2)) + ' ' + tbs16 + ' ' + tm16 + ' ' + ta16 + '\n\n' : scr_label scr_label := show_label ? scr_label + s17 + ' ' + tostring(roundn(v17, 2)) + ' ' + tbs17 + ' ' + tm17 + ' ' + ta17 + '\n\n' : scr_label scr_label := show_label ? scr_label + s18 + ' ' + tostring(roundn(v18, 2)) + ' ' + tbs18 + ' ' + tm18 + ' ' + ta18 + '\n\n' : scr_label scr_label := show_label ? scr_label + s19 + ' ' + tostring(roundn(v19, 2)) + ' ' + tbs19 + ' ' + tm19 + ' ' + ta19 + '\n\n' : scr_label scr_label := show_label ? scr_label + s20 + ' ' + tostring(roundn(v20, 2)) + ' ' + tbs20 + ' ' + tm20 + ' ' + ta20 + '\n\n' : scr_label scr_label := show_label ? scr_label + s21 + ' ' + tostring(roundn(v21, 2)) + ' ' + tbs21 + ' ' + tm21 + ' ' + ta21 + '\n\n' : scr_label scr_label := show_label ? scr_label + s22 + ' ' + tostring(roundn(v22, 2)) + ' ' + tbs22 + ' ' + tm22 + ' ' + ta22 + '\n\n' : scr_label scr_label := show_label ? scr_label + s23 + ' ' + tostring(roundn(v23, 2)) + ' ' + tbs23 + ' ' + tm23 + ' ' + ta23 + '\n\n' : scr_label scr_label := show_label ? scr_label + s24 + ' ' + tostring(roundn(v24, 2)) + ' ' + tbs24 + ' ' + tm24 + ' ' + ta24 + '\n\n' : scr_label scr_label := show_label ? scr_label + s25 + ' ' + tostring(roundn(v25, 2)) + ' ' + tbs25 + ' ' + tm25 + ' ' + ta25 + '\n\n' : scr_label scr_label := show_label ? scr_label + s26 + ' ' + tostring(roundn(v26, 2)) + ' ' + tbs26 + ' ' + tm26 + ' ' + ta26 + '\n\n' : scr_label scr_label := show_label ? scr_label + s27 + ' ' + tostring(roundn(v27, 2)) + ' ' + tbs27 + ' ' + tm27 + ' ' + ta27 + '\n\n' : scr_label scr_label := show_label ? scr_label + s28 + ' ' + tostring(roundn(v28, 2)) + ' ' + tbs28 + ' ' + tm28 + ' ' + ta28 + '\n\n' : scr_label scr_label := show_label ? scr_label + s29 + ' ' + tostring(roundn(v29, 2)) + ' ' + tbs29 + ' ' + tm29 + ' ' + ta29 + '\n\n' : scr_label scr_label := show_label ? scr_label + s30 + ' ' + tostring(roundn(v30, 2)) + ' ' + tbs30 + ' ' + tm30 + ' ' + ta30 + '\n\n' : scr_label scr_label := show_label ? scr_label + s31 + ' ' + tostring(roundn(v31, 2)) + ' ' + tbs31 + ' ' + tm31 + ' ' + ta31 + '\n\n' : scr_label scr_label := show_label ? scr_label + s32 + ' ' + tostring(roundn(v32, 2)) + ' ' + tbs32 + ' ' + tm32 + ' ' + ta32 + '\n\n' : scr_label scr_label := show_label ? scr_label + s33 + ' ' + tostring(roundn(v33, 2)) + ' ' + tbs33 + ' ' + tm33 + ' ' + ta33 + '\n\n' : scr_label scr_label := show_label ? scr_label + s34 + ' ' + tostring(roundn(v34, 2)) + ' ' + tbs34 + ' ' + tm34 + ' ' + ta34 + '\n\n' : scr_label scr_label := show_label ? scr_label + s35 + ' ' + tostring(roundn(v35, 2)) + ' ' + tbs35 + ' ' + tm35 + ' ' + ta35 + '\n\n' : scr_label scr_label := show_label ? scr_label + s36 + ' ' + tostring(roundn(v36, 2)) + ' ' + tbs36 + ' ' + tm36 + ' ' + ta36 + '\n\n' : scr_label scr_label := show_label ? scr_label + s37 + ' ' + tostring(roundn(v37, 2)) + ' ' + tbs37 + ' ' + tm37 + ' ' + ta37 + '\n\n' : scr_label scr_label := show_label ? scr_label + s38 + ' ' + tostring(roundn(v38, 2)) + ' ' + tbs38 + ' ' + tm38 + ' ' + ta38 + '\n\n' : scr_label scr_label := show_label ? scr_label + s39 + ' ' + tostring(roundn(v39, 2)) + ' ' + tbs39 + ' ' + tm39 + ' ' + ta39 + '\n\n' : scr_label scr_label := show_label ? scr_label + s40 + ' ' + tostring(roundn(v40, 2)) + ' ' + tbs40 + ' ' + tm40 + ' ' + ta40 + '\n\n' : scr_label // Plot Label on the chart if(show_label) lab_l = label.new( bar_index, 0, 'Trading Latino monitoreo: \n\n' + scr_label, color = color(na), textcolor = color.white, style = label.style_labeldown, yloc = yloc.price, size = size.normal) // This will keep screener only for the last bar label.delete(lab_l[1])
ViVen - Multi Time Frame - Moving Average Strategy
https://www.tradingview.com/script/POZ0EFFy-ViVen-Multi-Time-Frame-Moving-Average-Strategy/
vijiviven
https://www.tradingview.com/u/vijiviven/
172
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © vijiviven //This indicator is created by ViVen Traders for Swing Trading based on various Moving Averages //Hi Traders, //Indicator Description : Multiple Time Frame Moving Average lines in One Chart. //Moving Average Types : SMA, WMA, EMA //[b]Moving Average Period : 20 Default (Variable up to 200) //MA Time Frame : 1m, 3m, 5m, 15m, 30m, 1Hr, Daily, Weekly, Monthly (All lines in one chart) //You can turn ON/OFF the moving average lines based on your requirement. //Moving Average Table : The table will give you an idea where the price is currently trading (LTP), if the price is above any of the moving average then it will show you the Price is above MA and wise versa. //Trading Method: //Monthly, Weekly, Daily and 1Hr Moving averages will tell you whether the script is in Bullish Trend or Bearish Trend. //Basically the moving averages will act as Support and Resistance Levels. With candle confirmation you can take trade. //Ready to Take Position - When 1m MA Crosses 3m MA (Upside / Downside) //BUY Strategy: //"Buy" - when 3m MA breaks 5m moving average on the upside. (Intraday/Scalp) //"Hold" - when 5m MA breaks 15m MA on the upside. //"Strong Hold" - when 15m MA breaks 1Hr MA on the upside for Long term. //"Exit" - when 3m MA breaks 5m MA on the Downside. //SELL Strategy: //"Sell" - when 3m MA breaks 5m moving average on the Downside. (Intraday/Scalp) //"Hold" - when 5m MA breaks 15m MA on the Downside. (Intraday) //"Strong Hold" - when 15m MA breaks 1Hr MA on the Downside. (Positional). //"Exit" - when 3m MA breaks 5m MA on the Downside. //If you agree with this strategy and works well please like this script, share it with your friends and Follow me for more Indicators. //@version=5 indicator(title='ViVen - MTF MA', shorttitle='ViVen - MTF MA ⚡', overlay=true) Vi = input.bool(true, title='On/Off All Indicators', group='⚡ DISPLAY INDICATORS ⚡ ') Vt = input.bool(true, title='Display MA Table', group='⚡ MOVING AVG ⚡ ') MA1_3m = input.bool(false, title='👉 Display 1m-3m MA', group='⚡ MOVING AVG ⚡ ') MA5m = input.bool(true, title='👉 Display 5m MA', group='⚡ MOVING AVG ⚡ ') MA15m = input.bool(true, title='👉 Display 15m MA', group='⚡ MOVING AVG ⚡ ') MA30m = input.bool(false, title='👉 Display 30m MA', group='⚡ MOVING AVG ⚡ ') MA1h = input.bool(true, title='👉 Display 60m MA', group='⚡ MOVING AVG ⚡ ') MA1d = input.bool(true, title='👉 Display 1 Day MA', group='⚡ MOVING AVG ⚡ ') MA1w = input.bool(true, title='👉 Display 1 Week MA', group='⚡ MOVING AVG ⚡ ') MA1m = input.bool(true, title='👉 Display 1 Month MA', group='⚡ MOVING AVG ⚡ ') MAtype = input.string(title='MA Type', defval='SMA', options=['SMA', 'EMA', 'WMA'], group='INDICATOR INPUT 🔨') MAv = input.int(title='Moving Avg Period', minval=1, maxval=300, defval=200, group='INDICATOR INPUT 🔨') dash_loc = input.string("Top Right","Dashboard Location" ,options=["Top Right","Bottom Right","Top Left","Middle Left", "Bottom Left", "Middle Right","Bottom Center"] ,group='Dashboard Style Settings 📜') text_size = input.string('Normal',"Dashboard Size" ,options=["Tiny","Small","Normal","Large"] ,group='Dashboard Style Settings 📜') txt_col = input.color(color.black, 'Text/Frame Color', group='Dashboard Style Settings 📜') cell_transp = input.int(50, 'Cell Transparency', minval=0, maxval=100, group='Dashboard Style Settings 📜') var table_position = dash_loc == 'Top Left' ? position.top_left : dash_loc == 'Bottom Left' ? position.bottom_left : dash_loc == 'Middle Left' ? position.middle_left : dash_loc == 'Middle Right' ? position.middle_right : dash_loc == 'Bottom Center' ? position.bottom_center : dash_loc == 'Top Right' ? position.top_right : position.bottom_right var table_text_size = text_size == 'Tiny' ? size.tiny : text_size == 'Small' ? size.small : text_size == 'Normal' ? size.normal : size.large var t = table.new(table_position, 2, 15, frame_color=txt_col, frame_width=1, border_color=txt_col, border_width=1) BorderThickness = 1 TableWidth = 0 FirstRowFirstColumnColor = color.new(color.orange, 0) ma_function(close, MAv) => if MAtype == 'SMA' ta.sma(close, MAv) else if MAtype == 'EMA' ta.ema(close, MAv) else if MAtype == 'WMA' ta.wma(close, MAv) else ta.sma(close, MAv) MAvlen = ma_function(close, MAv) //Different Time Frame Values plot1mma = request.security(syminfo.tickerid, '1', MAvlen) plot3mma = request.security(syminfo.tickerid, '3', MAvlen) plot5mma = request.security(syminfo.tickerid, '5', MAvlen) plot15mma = request.security(syminfo.tickerid, '15', MAvlen) plot30mma = request.security(syminfo.tickerid, '30', MAvlen) plot1hma = request.security(syminfo.tickerid, '60', MAvlen) plot1dma = request.security(syminfo.tickerid, 'D', MAvlen) plot1wma = request.security(syminfo.tickerid, 'W', MAvlen) plot1mmma = request.security(syminfo.tickerid, 'M', MAvlen) // Plot the SMAs plot(Vi and MA1_3m ? plot1mma : na, title='MA 1m', linewidth=1, color=color.gray, transp=1) plot(Vi and MA1_3m ? plot3mma : na, title='MA 3m', linewidth=1, color=color.orange, transp=1) plot(Vi and MA5m ? plot5mma : na, title='MA 5m', linewidth=2, color=color.blue, transp=1) plot(Vi and MA15m ? plot15mma : na, title='MA 15m', linewidth=3, color=color.fuchsia, transp=1) plot(Vi and MA30m ? plot30mma : na, title='MA 30m', linewidth=1, color=color.teal, transp=1) plot(Vi and MA1h ? plot1hma : na, title='MA 1h', linewidth=3, color=color.maroon, transp=1) plot(Vi and MA1d ? plot1dma : na, title='MA D', linewidth=4, color=color.purple, transp=1) plot(Vi and MA1w ? plot1wma : na, title='MA W', linewidth=5, color=color.black, transp=1) plot(Vi and MA1m ? plot1mmma : na, title='MA M', linewidth=6, color=color.red, transp=1) // Moving Average Vs Price Strategy pr_1mma = plot1mma < close ? 'Price Above 1m MA' : 'Price Below 1m MA' pr_1mmacolor = plot1mma < close ? #00E81F : #E80800 pr_3mma = plot3mma < close ? 'Price Above 3m MA' : 'Price Below 3m MA' pr_3mmacolor = plot3mma < close ? #00E81F : #E80800 pr_5mma = plot5mma < close ? 'Price Above 5m MA' : 'Price Below 5m MA' pr_5mmacolor = plot5mma < close ? #00E81F : #E80800 pr_15mma = plot15mma < close ? 'Price Above 15m MA' : 'Price Below 15m MA' pr_15mmacolor = plot15mma < close ? #00E81F : #E80800 pr_30mma = plot30mma < close ? 'Price Above 30m MA' : 'Price Below 30m MA' pr_30mmacolor = plot30mma < close ? #00E81F : #E80800 pr_1hma = plot1hma < close ? 'Price Above 1Hr MA' : 'Price Below 1Hr MA' pr_1hmacolor = plot1hma < close ? #00E81F : #E80800 pr_1dma = plot1dma < close ? 'Price Above Daily MA' : 'Price Below Daily MA' pr_1dmacolor = plot1dma < close ? #00E81F : #E80800 pr_1wma = plot1wma < close ? 'Price Above Weekly MA' : 'Price Below Weekly MA' pr_1wmacolor = plot1wma < close ? #00E81F : #E80800 pr_1mmma = plot1mmma < close ? 'Price Above Monthly MA' : 'Price Below Monthly MA' pr_1mmmacolor = plot1mmma < close ? #00E81F : #E80800 if barstate.islast and Vi and Vt table.cell(t, 0, 0, MAtype + ' - ' + str.tostring(MAv), bgcolor=#C4C7C3, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 0, 'Price At', bgcolor=#C4C7C3, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 1, '1m ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 1, pr_1mma, bgcolor=pr_1mmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 2, '3m ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 2, pr_3mma, bgcolor=pr_3mmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 3, '5m ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 3, pr_5mma, bgcolor=pr_5mmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 4, '15m ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 4, pr_15mma, bgcolor=pr_15mmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 5, '30m ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 5, pr_30mma, bgcolor=pr_30mmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 6, '1Hr ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 6, pr_1hma, bgcolor=pr_1hmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 7, 'Daily ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 7, pr_1dma, bgcolor=pr_1dmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 8, 'Weekly ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 8, pr_1wma, bgcolor=pr_1wmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 0, 9, 'Monthly ' + MAtype, bgcolor=FirstRowFirstColumnColor, text_size=table_text_size, text_color=#000000, width=TableWidth) table.cell(t, 1, 9, pr_1mmma, bgcolor=pr_1mmmacolor, text_size=table_text_size, text_color=#000000, width=TableWidth)
Donchian RSI Bands
https://www.tradingview.com/script/ApF76zQ6-Donchian-RSI-Bands/
DDMyke
https://www.tradingview.com/u/DDMyke/
101
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © DDMyke //@version=5 indicator(title="Donchian RSI Bands", shorttitle="dR$Ib", format=format.price, precision=2, timeframe="", timeframe_gaps=true) //Inputs src = input(ohlc4, "Source") rbdBC = input.bool(false, 'RSI Bollinger Band Barcolor', group='Barcolor') rcBC = input.bool(false, 'RSI Cloud Barcolor', group='Barcolor') dcBC = input.bool(false, 'Donchian Basis Barcolor', group='Barcolor') showFrsi = input.bool(true, 'RSI', group='RSI') len = input.int(7, minval=1, title="Length", group='RSI') rsiUc = input(color.new(#00bcd4,0), title='Bullish Color', inline='rsi', group='RSI') rsiNc = input(color.new(#0c3299,0), title='Neutral Color', inline='rsi', group='RSI') rsiDc = input(color.new(#d930ff,0), title='Bearish Color', inline='rsi', group='RSI') rsiWidth = input.int(1, 'Line Width', minval=1, maxval=4, group='RSI') showDrsi = input.bool(false, 'RSI (Default Length)', inline='rsi2', group='RSI') rsi2C = input(color.new(#ffffff,50), title='Color', inline='rsi2', group='RSI' ) showCloud = input(false, 'RSI Cloud', group='RSI') upCloud = input(color.new(#00bcd4,85), title='Bullish Cloud', inline='cloud', group='RSI') downCloud = input(color.new(#d930ff,85), title='Bearish Cloud', inline='cloud', group='RSI') showBB = input.bool(true, 'Bollinger Bands', group='Double Bollinger Bands') length = input.int(35, 'Length', group='Double Bollinger Bands') mult2 = input.float(0.5, minval=0.5, step=0.25, maxval=5, title='Outer Band Deviation', group='Double Bollinger Bands') mult = input.float(0.25, minval=0.25, step=0.25, maxval=5, title='Inner Band Deviation', group='Double Bollinger Bands') offset = input.int(0, "Offset", minval = -500, maxval = 500, group='Double Bollinger Bands') bbandColor = input(color.new(#131722,20), title='Color', group='Double Bollinger Bands') showBBbasis = input.bool(true, 'Basis', group = 'Double Bollinger Bands') disp = input.float(0.1, 'Multiplier', minval=0.025, step=0.025, maxval=2, group='Double Bollinger Bands') showDC = input.bool(true,'Donchian Channel', group='Donchian Channel') DClength = input.int(70, 'Length', group='Donchian Channel') DCwidth = input.int(5, 'Band Width', minval=1, maxval=20, group='Donchian Channel') dcUb = input(color.new(#00bcd4,85), title='Upper Band', inline='dcb', group='Donchian Channel') dcDb = input(color.new(#d930ff,85), title='Lower Band', inline='dcb', group='Donchian Channel') showDCB = input.bool(false,'Donchian Channel Basis', group='Donchian Channel') dcUc = input(color.new(#4caf50,0), title='Bullish Color', inline='dc', group='Donchian Channel') dcDc = input(color.new(#e91e63,0), title='Bearish Color', inline='dc', group='Donchian Channel') //Calculations //RSI up = ta.rma(math.max(ta.change(src), 0), len) down = ta.rma(-math.min(ta.change(src), 0), len) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) crsi = rsi //RSI (Default Length) up2 = ta.rma(math.max(ta.change(src), 0), 14) down2 = ta.rma(-math.min(ta.change(src), 0), 14) rsi2 = down2 == 0 ? 100 : up2 == 0 ? 0 : 100 - (100 / (1 + up2 / down2)) crsi2 = rsi2 //Double Bollinger Bands basis = ta.sma(rsi, length) dev = mult * ta.stdev(rsi, length) dev2 = mult2 * ta.stdev(rsi, length) upper = basis + dev upper2 = basis + dev2 lower = basis - dev lower2 = basis - dev2 //Basis Dispersion UpDisp = basis + (upper - lower) * disp DownDisp = basis - (upper - lower) * disp d1 = plot(showBBbasis and UpDisp ? UpDisp : na, color=color.new(#131722, 100), title='BB Basis Upper', linewidth=1, editable=false) d2 = plot(showBBbasis and DownDisp ? DownDisp : na, color=color.new(#131722, 100), title='BB Basis Lower', linewidth=1, editable=false) //Donchian Channel upperdc = ta.highest(rsi,DClength) lowerdc = ta.lowest(rsi,DClength) basisdc = math.avg(upperdc, lowerdc) //Plots rsiColor = rsi > upper2 ? rsiUc : rsi < lower2 ? rsiDc : rsiNc dcColor = rsi > basisdc ? dcUc : rsi < basisdc ? dcDc : na cloudFill = rsi > rsi2 ? upCloud : downCloud cloudColor = rsi > rsi2 ? rsiUc : rsiDc barcolor(rbdBC ? rsiColor : na, editable=false) barcolor(dcBC ? dcColor : na, editable=false) barcolor(rcBC ? cloudColor : na, editable=false) plot(showFrsi and rsi ? rsi : na, 'RSI', color=rsiColor, linewidth=rsiWidth, editable=false) c1 = plot(crsi, 'CRSI', color=color.new(#000000,100), editable=false) plot(showDrsi and rsi2 ? rsi2 : na, 'RSI (Default Length)', color=rsi2C, linewidth=1, editable=false) c2 = plot(crsi2, 'CRSI2', color=color.new(#000000,100), editable=false) p1 = plot(showBB and upper ? upper : na, 'Inner Upper Band', color=color.new(#2a2e39,100), offset=offset, editable=false) p2 = plot(showBB and upper2 ? upper2 : na, 'Outer Upper Band', color=color.new(#2a2e39,100), offset=offset, editable=false) p3 = plot(showBB and lower ? lower : na, 'Inner Lower Band', color=color.new(#2a2e39,100), offset=offset, editable=false) p4 = plot(showBB and lower2 ? lower2 : na, 'Outer Lower Band', color=color.new(#2a2e39,100), offset=offset, editable=false) plot(showDC and upperdc ? upperdc : na, color=dcUb, title='Donchian Channel Upper Band', linewidth=DCwidth, editable=false) plot(showDC and lowerdc ? lowerdc : na, color=dcDb, title='Donchian Channel Lower Band', linewidth=DCwidth, editable=false) plot(showDCB and basisdc ? basisdc : na, 'Donchian Channel Basis', color=dcColor, linewidth=1, editable=false) fill(p1,p2, color=bbandColor, title='Upper Band Fill', editable=false) fill(p3,p4, color=bbandColor, title='Upper Band Fill', editable=false) fill(d1, d2, color=showBBbasis ? bbandColor : na, title='BB Basis Fill', editable=false) fill(c1, c2, color=showCloud ? cloudFill : na, title='RSI Cloud Fill', editable=false) hline(50, color=color.new(#ff8160,85), linewidth=1, linestyle=hline.style_dashed)
Multi Oscillators Price Levels
https://www.tradingview.com/script/zjz27auY-Multi-Oscillators-Price-Levels/
noop-noop
https://www.tradingview.com/u/noop-noop/
592
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © noop42 //@version=5 indicator(title='Multi Oscillators Price Levels', shorttitle='MOPL', overlay=true) // Input parameters src = input(close, title='Source') src_ind = input.string(title='Source indicator', defval='RSI', options=['Stochastic RSI', 'Stochastic CCI', 'RSI', 'CCI'], group='Options') custom_timeframe = input.timeframe(title='Timeframe', defval='', group='Options') // Drawing options show_sup = input.bool(title='Show supports', defval=true, group='Drawings') show_res = input.bool(title='Show resistances', defval=true, group='Drawings') lines_width = input.int(title='Lines width', defval=10 , group='Drawings') sup_src = input.source(title='Draw supports on', defval=low, group='Drawings') res_src = input.source(title='Draw resistances on', defval=high, group='Drawings') extend_level = input.string('None', title='Extend levels', options=['Right', 'Left', 'Both', 'None'], group='Drawings') sup_col = input.color(title='Supports color', defval=#34eb3a70, group='Drawings') res_col = input.color(title='Resistances color', defval=#eb473170, group='Drawings') // Indicators smoothKD = input.int(3, 'K & D smoothing', minval=1, group='Stoch RSI/CCI') lengthStoch = input.int(14, 'Stochastic Length', minval=1, group='Stoch RSI/CCI') stoch_low = input.int(20, title='Stoch Oversold Level', group='Stoch RSI/CCI') stoch_high = input.int(80, title='Stoch Overbought Level', group='Stoch RSI/CCI') lengthRSI = input.int(14, 'RSI Length', minval=1, group='RSI / Stoch RSI') rsi_low = input.int(30, title='RSI Oversold Level', group='RSI') rsi_high = input.int(70, title='RSI Overbought Level', group='RSI') lengthCCI = input.int(20, 'CCI Length', minval=1, group='CCI') cci_low = input.int(-100, title='CCI Oversold Level', group='CCI') cci_high = input.int(100, title='CCI Overbought Level', group='CCI') // Indicators Data rsi_tf = request.security(syminfo.tickerid, custom_timeframe, ta.rsi(src, lengthRSI)) cci_tf = request.security(syminfo.tickerid, custom_timeframe, ta.cci(src, lengthCCI)) stoch_k_tf = request.security(syminfo.tickerid, custom_timeframe, ta.sma(ta.stoch(rsi_tf, rsi_tf, rsi_tf, lengthStoch), smoothKD)) stoch_d_tf = request.security(syminfo.tickerid, custom_timeframe, ta.sma(stoch_k_tf, smoothKD)) stock_k_cci_tf = request.security(syminfo.tickerid, custom_timeframe, ta.sma(ta.stoch(cci_tf, cci_tf, cci_tf, lengthStoch), smoothKD)) stoch_d_cci_tf = request.security(syminfo.tickerid, custom_timeframe, ta.sma(stock_k_cci_tf, smoothKD)) avgscci = (stock_k_cci_tf + stoch_d_cci_tf ) / 2 avgsrsi = (stoch_k_tf + stoch_d_tf) / 2 // Extreme zones srsi_ob = avgsrsi > stoch_high srsi_os = avgsrsi < stoch_low scci_ob = avgscci > stoch_high scci_os = avgscci < stoch_low rsiob = rsi_tf > rsi_high rsios = rsi_tf < rsi_low cciob = cci_tf > cci_high ccios = cci_tf < cci_low // Indicator signal selection ob = src_ind == 'RSI' ? rsiob : src_ind == 'CCI' ? cciob : src_ind == 'Stochastic RSI' ? srsi_ob : scci_ob os = src_ind == 'RSI' ? rsios : src_ind == 'CCI' ? ccios : src_ind == 'Stochastic RSI' ? srsi_os : scci_os // Price lines sup_final_src = request.security(syminfo.tickerid, custom_timeframe, sup_src) res_final_src = request.security(syminfo.tickerid, custom_timeframe, res_src) var support = sup_final_src var resistance = res_final_src //Set current levels support := os and not os[1] ? sup_final_src : support resistance := ob and not ob[1] ? res_final_src : resistance // Update current levels support := (os and os[1]) and (sup_final_src < support) ? sup_final_src : support resistance := (ob and ob[1]) and (res_final_src > resistance) ? res_final_src : resistance ext = extend_level == "Right" ? extend.right : extend_level == "Left" ? extend.left : extend_level == "Both" ? extend.both : extend.none var line sup = na var line res = na var int sup_offset = 0 var int res_offset = 0 // Draw current if show_sup and (not os) and os[1] sup := line.new(bar_index[1], support, bar_index, support, extend=ext, color=sup_col, width=lines_width) else line.set_x2(sup, line.get_x2(sup) +1) if show_res and (not ob) and ob[1] res := line.new(bar_index[1], resistance, bar_index, resistance, extend=ext, color=res_col, width=lines_width) else line.set_x2(res, line.get_x2(res) +1)
Moving Average Deviations
https://www.tradingview.com/script/EpwkgZuC-Moving-Average-Deviations/
imbes2
https://www.tradingview.com/u/imbes2/
38
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © imbes2 //@version=4 study("Moving Average Deviations", shorttitle = "MA Devs", overlay=false) len= input(type=input.integer, title = "MA Length", defval=20, minval=1) res=input(type=input.resolution, title ="Timeframe", defval="") mastyle1 = input(type=input.string, title = "Moving Average Type?", options = ["SMA", "EMA", "HMA", "VWMA", "DEMA"], defval="SMA") lookback= input(type=input.integer, title = "Lookback", defval=100, minval=1) percentThreshold = input(type=input.float, title = "Threshold Percent", defval = 7.00, minval = .01) toDecimal = (100-percentThreshold)/100 dema(ress, lenn) => e1 = security(syminfo.tickerid, ress, ema(close, lenn)) e2 = security(syminfo.tickerid, ress, ema(e1, lenn)) dema1 = 2 * e1 - e2 Mode1(mastyle1, _src, _len) => mastyle1== "SMA" ? sma(close, len) : mastyle1=="EMA" ? ema(close, len) : mastyle1=="HMA" ? hma(close, len) : mastyle1=="VWMA" ? vwma(close, len) : mastyle1 == "DEMA" ? dema(res, len) : na macalc= security(syminfo.tickerid, res, Mode1(mastyle1, close, len)) percentchange= ((close-macalc)/macalc)*100 //color hhigh=highest(percentchange, lookback) llow=lowest(percentchange, lookback) howhigh= (percentchange/hhigh) lightgreen= percentchange>0 and howhigh < toDecimal sellgreen=percentchange>0 and howhigh >= toDecimal howlow= percentchange/llow lightred= percentchange<0 and howlow < toDecimal buyred= percentchange<0 and howlow >= toDecimal colorset= lightgreen ? color.new(#a5d6a7, 20) : sellgreen ? color.new(#388e3c, 20) : lightred ? color.new(#ef9a9a, 20) : buyred ? color.new(#d32f2f, 20) : na histo = plot(percentchange, title = "MA Dev", color=colorset, linewidth=1, style=plot.style_histogram, histbase=0, display = display.all)
Modified ATR Indicator [KL]
https://www.tradingview.com/script/1TJH9UzS-Modified-ATR-Indicator-KL/
DojiEmoji
https://www.tradingview.com/u/DojiEmoji/
128
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © DojiEmoji //@version=5 indicator(title="ATR [KL]", overlay=false) MODEL_1 = "Two-tail hypothesis testing" MODEL_2 = "Point estimation" model_choice = input.string(title="Model", defval=MODEL_2, options=[MODEL_1, MODEL_2]) conf_interval = input.string(title="Confidence Interval", defval="95%", options=["90%","95%","99%"], tooltip="Critical values of 1.645, 1.96, 2.58, for CI=90%/95%/99%, respectively; Under 2-tailed test to compare atr_fast vs atr_slow. Null hypothesis (H0) is that both should equal. Based on the computed test statistic value, if absolute value of it is +/- critical value, then H0 will be rejected.") reliability_factor = conf_interval == "90%" ? 1.645 : conf_interval == "95%" ? 1.96 : 2.58 length_fast = input.int(title="Length of lookback (fast)", defval=14, minval=1) length_slow = input.int(title="Length of lookback (slow)", defval=50, minval=1) // Main indicator atr_fast = ta.sma(ta.tr(true), length_fast) atr_fast_std_error = ta.stdev(ta.tr, length_fast) / math.pow(length_fast, 0.5) // - - - - - - - - - - - - - - - - - - - - // Model #1 Hypothesis testing (2-tailed) { // Assumption is that 'atr_fast' is a set of sample data within deemed population 'atr_slow' // Null Hypothesis H0 : atr_fast equals atr_slow // Alternative hypothesis Ha : atr_fast not equals to atr_slow // " if reject H0, we conclude atr_fast is too high or too low model1_atr_slow = ta.sma(ta.tr(true), length_slow) model_1_test_stat = (atr_fast - model1_atr_slow) / atr_fast_std_error model_1_critical_value = reliability_factor // } // - - - - - - - - - - - - - - - - - - - - // Model #2 - Point estimation model: { // Since the population mean is unknown, based on sample data 'atr_fast' and user's desired confidence interval, // we can estimate the Lower bound & Upper bound serving as the range describing where the population mean should lie. // If 'atr_fast' is below/above this range, then we conclude ATR is too low/high, respectively. model_2_sample_mean = ta.sma(atr_fast, length_slow) // being the moving avg of ATR_fast model_2_critical_value = reliability_factor * atr_fast_std_error model_2_lowerbound = model_2_sample_mean - model_2_critical_value model_2_upperbound = model_2_sample_mean + model_2_critical_value // } // - - - - - - - - - - - - - - - - - - - - // Color coding the ATR line + Plotting var color_normal = input.color(#7b1fa2, title="ATR Color (Normal)") var color_high = input.color(color.red, title="ATR Color (Extreme high)") var color_low = input.color(color.green, title="ATR Color (Extremely low)") atr_extremely_high = false, atr_extremely_low = false //initialize states if model_choice == MODEL_1 atr_extremely_high := model_1_test_stat > math.abs(model_1_critical_value) atr_extremely_low := model_1_test_stat < -math.abs(model_1_critical_value) else if model_choice == MODEL_2 atr_extremely_high := atr_fast > model_2_upperbound atr_extremely_low := atr_fast < model_2_lowerbound color_length_fast = atr_extremely_high ? color_high : atr_extremely_low ? color_low : color_normal // Plotting { plot(atr_fast, title = "ATR fast", color=color.new(color_length_fast, 0), linewidth=2) plot_arrows = input(false, title="Plot arrows", tooltip="Arrows at top/bottom of ATR panel to indicate extreme high/low periods") plot_ref_line = input(false, title="Plot reference lines", tooltip="Model 1: being atr_slow; Model 2: being the slow moving avg. of ATR") plotshape(plot_arrows and atr_extremely_high, style=shape.triangleup, location=location.top, color=color.red) plotshape(plot_arrows and atr_extremely_low, style=shape.triangledown, location=location.bottom, color=color.green) // Reference plots: Population ATR (MODEL_1), and MA of ATR (MODEL_2) model1_plot_transp = 100, model2_plot_transp = 100 if plot_ref_line if model_choice == MODEL_1 // only becomes visible when MODEL_1 is selected model1_plot_transp := 50 else if model_choice == MODEL_2 // only becomes visible when MODEL_2 is selected model2_plot_transp := 50 plot(model1_atr_slow, title = "MA of ATR", color=color.new(color.gray, model1_plot_transp), linewidth=0) plot(model_2_sample_mean, title = "MA of ATR", color=color.new(color.gray, model2_plot_transp), linewidth=0) // } // ATR label var label lbl = na string _msg = "atr(" + str.tostring(length_fast) +") = " + str.tostring(atr_fast, "#.##") if barstate.islast lbl := label.new(bar_index + 5, atr_fast, _msg, xloc.bar_index, yloc.price, color.new(color.black, 0), label.style_label_left, color.black, size.small, text.align_left) label.set_textcolor(id=lbl, textcolor=color.white) label.delete(lbl[1])
52 Weeks High/Low Widget
https://www.tradingview.com/script/drk0bK08-52-Weeks-High-Low-Widget/
QuantNomad
https://www.tradingview.com/u/QuantNomad/
289
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © QuantNomad //@version=5 indicator('52 weeks High/Low', shorttitle='52W H/L', overlay=true) //////////// // INPUTS // weeks = input(52, "Number of Weeks") show_ath = input(true, "Show High?") show_atl = input(false, "Show Low?") show_table = input(true, "Show table with stats?") /////////////// // FUNCTIONS // // get 52 weeks high/low get_week_high_low() => var time_arr = array.new_int(0) var high_arr = array.new_float(0) var low_arr = array.new_float(0) array.unshift(time_arr, time) array.unshift(high_arr, high) array.unshift(low_arr, low) ms_limit = 604800000 * weeks while (array.get(time_arr, array.size(time_arr) - 1) < time - ms_limit) array.pop(time_arr) array.pop(high_arr) array.pop(low_arr) // getting all-time high/low ath = array.max(high_arr) atl = array.min(low_arr) hi = 0 while true if array.get(high_arr, hi) == ath break hi += 1 li = 0 while true if array.get(low_arr, li) == atl break li += 1 ath_dt = array.get(time_arr, hi) atl_dt = array.get(time_arr, li) [ath, atl, ath_dt, atl_dt] [ath, atl, ath_dt, atl_dt] = request.security(syminfo.tickerid, '1D', get_week_high_low()) ath_days = math.round((timenow - ath_dt) / 86400000) atl_days = math.round((timenow - atl_dt) / 86400000) // plotting if show_ath lATH=line.new(bar_index - 1, ath, bar_index, ath, extend = extend.both, color = color.green) line.delete(lATH[1]) if show_atl lATL=line.new(bar_index - 1, atl, bar_index, atl, extend = extend.both, color = color.red) line.delete(lATL[1]) if show_table var table ATHtable = table.new(position.bottom_right, 6, 3, frame_color = color.gray, bgcolor = color.gray, border_width = 1, frame_width = 1, border_color = color.white) ath_time = str.tostring(year(ath_dt)) + "-" + str.tostring(month(ath_dt)) + "-" + str.tostring(dayofmonth(ath_dt)) atl_time = str.tostring(year(atl_dt)) + "-" + str.tostring(month(atl_dt)) + "-" + str.tostring(dayofmonth(atl_dt)) // Header table.cell(ATHtable, 0, 0, "", bgcolor = #cccccc) table.cell(ATHtable, 1, 0, "When?", bgcolor = #cccccc) table.cell(ATHtable, 2, 0, "Days ago", bgcolor = #cccccc) table.cell(ATHtable, 3, 0, "Price", bgcolor = #cccccc) table.cell(ATHtable, 4, 0, "% away", bgcolor = #cccccc) table.cell(ATHtable, 5, 0, "$ away", bgcolor = #cccccc) if (show_ath) // ATH table.cell(ATHtable, 0, 1, "ATH", bgcolor = #cccccc) table.cell(ATHtable, 1, 1, ath_time, bgcolor = color.new(color.green, transp = 50)) table.cell(ATHtable, 2, 1, str.tostring(ath_days), bgcolor = color.new(color.green, transp = 50)) table.cell(ATHtable, 3, 1, str.tostring(ath), bgcolor = color.new(color.green, transp = 50)) table.cell(ATHtable, 4, 1, str.tostring(((ath / close) - 1) * 100 , "#.##") + "%", bgcolor = color.new(color.green, transp = 50)) table.cell(ATHtable, 5, 1, str.tostring(ath - close , "#.##") + "$", bgcolor = color.new(color.green, transp = 50)) if (show_atl) // ATL table.cell(ATHtable, 0, 2, "ATL", bgcolor = #cccccc) table.cell(ATHtable, 1, 2, atl_time, bgcolor = color.new(color.red, transp = 50)) table.cell(ATHtable, 2, 2, str.tostring(atl_days), bgcolor = color.new(color.red, transp = 50)) table.cell(ATHtable, 3, 2, str.tostring(atl), bgcolor = color.new(color.red, transp = 50)) table.cell(ATHtable, 4, 2, str.tostring(((atl / close) - 1) * 100 , "#.##") + "%", bgcolor = color.new(color.red, transp = 50)) table.cell(ATHtable, 5, 2, str.tostring(atl - close, "#.##") + "$", bgcolor = color.new(color.red, transp = 50)) // alerts alertcondition(ta.crossover(high, ath), 'All-time High!', 'All-time High!') alertcondition(ta.crossunder(low, atl), 'All-time Low!', 'All-time Low!')
Daily Sun Flares Class A
https://www.tradingview.com/script/Gdbk3KHy-Daily-Sun-Flares-Class-A/
firerider
https://www.tradingview.com/u/firerider/
18
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © firerider //@version=5 indicator('Daily Sun Flares Class A') // from SunPy python package / GOES varip int[] f_class = array.from(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) calculateCandleTimeDiff() => // 2015-01-01 00:00 signal day time serie start. referenceUnixTime = 1420066800 candleUnixTime = time / 1000 + 1 timeDiff = candleUnixTime - referenceUnixTime timeDiff < 0 ? na : timeDiff getSignalCandleIndex() => timeDiff = calculateCandleTimeDiff() // Day index, days count elapsed from reference date. candleIndex = math.floor(timeDiff / 86400) candleIndex < 0 ? na : candleIndex getSignal() => // Map array data items indexes to candles. int candleIndex = getSignalCandleIndex() int itemsCount = array.size(f_class) // Return na for candles where indicator data is not available. int index = candleIndex >= itemsCount ? na : candleIndex signal = if index >= 0 and itemsCount > 1 array.get(f_class, index) else na signal // Compose signal time serie from array data. int SignalSerie = getSignal() // Calculate plot offset estimating market week open days plot(series=SignalSerie, style=plot.style_histogram, linewidth=4, color=color.new(color.blue, 0))
Daily Sun Flares Class B
https://www.tradingview.com/script/bzgpHfzL-Daily-Sun-Flares-Class-B/
firerider
https://www.tradingview.com/u/firerider/
13
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © firerider //@version=5 indicator('Daily Sun Flares Class B') // from SunPy python package / GOES varip int[] f_class = array.from(0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 2, 3, 4, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 2, 2, 1, 1, 3, 1, 5, 2, 1, 3, 1, 0, 2, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 3, 4, 0, 1, 0, 2, 1, 6, 0, 1, 2, 1, 1, 0, 3, 1, 0, 8, 0, 0, 0, 0, 2, 0, 1, 1, 4, 1, 1, 3, 0, 9, 1, 2, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 3, 0, 0, 1, 0, 2, 5, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 2, 2, 4, 4, 1, 5, 0, 1, 1, 2, 1, 0, 3, 2, 1, 3, 0, 1, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 1, 9, 1, 3, 1, 2, 1, 0, 2, 2, 5, 0, 0, 0, 1, 2, 1, 2, 1, 4, 0, 1, 1, 0, 0, 1, 2, 1, 0, 6, 0, 3, 2, 1, 0, 1, 1, 4, 7, 1, 1, 6, 1, 3, 1, 0, 2, 6, 2, 6, 2, 2, 2, 4, 2, 12, 5, 2, 0, 1, 0, 9, 0, 1, 1, 1, 0, 1, 0, 1, 5, 1, 2, 0, 0, 0, 0, 0, 6, 0, 3, 5, 6, 2, 5, 3, 1, 3, 3, 2, 5, 6, 3, 3, 0, 0, 0, 0, 0, 0, 2, 1, 0, 1, 3, 2, 1, 1, 1, 2, 3, 4, 4, 3, 0, 0, 2, 2, 1, 0, 4, 2, 3, 2, 0, 1, 2, 0, 0, 1, 0, 2, 3, 1, 1, 0, 1, 0, 4, 1, 4, 0, 0, 1, 1, 3, 1, 1, 3, 2, 1, 2, 0, 2, 1, 1, 1, 2, 2, 2, 1, 2, 4, 4, 3, 6, 2, 4, 3, 4, 2, 1, 4, 1, 1, 2, 1, 2, 0, 0, 0, 0, 0, 0, 1, 3, 0, 1, 4, 6, 3, 0, 1, 1, 2, 9, 4, 3, 0, 1, 3, 4, 6, 2, 6, 7, 1, 1, 4, 9, 0, 2, 1, 3, 4, 3, 3, 1, 3, 1, 5, 3, 2, 3, 2, 3, 3, 2, 3, 6, 5, 1, 2, 7, 1, 2, 4, 5, 3, 1, 3, 4, 3, 1, 10, 4, 2, 4, 3, 2, 2, 0, 2, 2, 3, 7, 0, 4, 2, 2, 2, 1, 1, 3, 4, 1, 1, 3, 1, 2, 0, 0, 2, 2, 1, 3, 6, 4, 2, 1, 0, 3, 1, 1, 4, 4, 0, 2, 2, 1, 0, 2, 1, 5, 5, 5, 4, 4, 5, 4, 6, 2, 0, 1, 2, 3, 10, 8, 4, 9, 8, 5, 2, 4, 4, 2, 2, 2, 1, 4, 0, 3, 2, 4, 10, 2, 4, 3, 1, 0, 7, 3, 3, 7, 8, 2, 2, 2, 2, 4, 4, 2, 3, 0, 0, 0, 0, 0, 1, 1, 9, 5, 8, 3, 5, 0, 3, 9, 8, 4, 2, 1, 1, 0, 0, 2, 3, 3, 2, 0, 1, 0, 0, 1, 1, 2, 0, 0, 3, 6, 2, 2, 1, 1, 2, 1, 7, 5, 1, 1, 0, 3, 10, 4, 3, 4, 2, 10, 0, 1, 0, 1, 1, 0, 0, 0, 2, 11, 2, 5, 3, 5, 5, 3, 5, 2, 4, 0, 1, 2, 1, 0, 1, 0, 2, 4, 0, 0, 2, 1, 3, 5, 1, 0, 2, 4, 2, 1, 2, 0, 5, 10, 6, 7, 0, 0, 1, 2, 2, 2, 3, 3, 4, 1, 5, 9, 4, 3, 4, 4, 5, 3, 1, 0, 1, 4, 0, 1, 1, 1, 1, 1, 1, 4, 1, 3, 6, 4, 3, 6, 0, 0, 0, 0, 2, 0, 1, 0, 4, 3, 0, 5, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 2, 1, 3, 0, 0, 0, 2, 0, 1, 2, 4, 0, 1, 1, 7, 6, 10, 10, 3, 1, 3, 8, 2, 3, 6, 0, 1, 0, 2, 0, 0, 0, 3, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 4, 3, 0, 1, 2, 2, 0, 0, 0, 1, 1, 0, 0, 0, 0, 8, 6, 1, 0, 1, 0, 2, 0, 1, 0, 9, 9, 1, 0, 4, 12, 8, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 1, 11, 0, 0, 1, 1, 0, 2, 0, 2, 2, 2, 6, 6, 2, 4, 0, 0, 1, 5, 4, 5, 2, 2, 3, 0, 3, 2, 10, 2, 10, 0, 0, 0, 32, 17, 0, 0, 0, 0, 1, 0, 1, 0, 0, 2, 9, 11, 11, 6, 4, 8, 9, 1, 0, 4, 6, 6, 2, 7, 2, 5, 5, 2, 0, 1, 0, 2, 8, 5, 4, 4, 6, 4, 3, 2, 4, 4, 0, 1, 0, 3, 3, 1, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 1, 1, 1, 2, 3, 3, 5, 9, 5, 5, 8, 1, 9, 4, 6, 8, 11, 3, 1, 1, 1, 2, 0, 1, 1, 5, 0, 1, 4, 3, 2, 0, 1, 0, 0, 0, 1, 3, 1, 0, 0, 0, 1, 14, 1, 5, 2, 10, 12, 16, 1, 7, 0, 6, 0, 6, 8, 7, 4, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 7, 9, 4, 3, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 11, 10, 11, 8, 6, 2, 2, 6, 9, 2, 4, 8, 7, 8, 7, 7, 5, 7, 10, 7, 2, 0, 0, 0, 0, 0, 0, 0, 1, 3, 2, 0, 0, 0, 0, 0, 0, 9, 0, 0, 1, 3, 5, 5, 2, 1, 2, 1, 0, 0, 1, 4, 7, 9, 5, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 1, 0, 2, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 2, 0, 0, 0, 0, 1, 4, 1, 9, 2, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 6, 13, 9, 4, 7, 9, 4, 15, 3, 0, 4, 5, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3, 1, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 3, 2, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 0, 3, 0, 4, 5, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 21, 7, 4, 2, 4, 8, 3, 2, 10, 3, 6, 7, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 2, 1, 3, 1, 1, 5, 0, 4, 6, 6, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 1, 0, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 6, 8, 0, 3, 4, 12, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 8, 7, 16, 20, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 3, 3, 1, 3, 2, 3, 1, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 8, 10, 8, 1, 0, 3, 0, 1, 1, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 12, 0, 0, 0, 2, 0, 0, 2, 4, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 7, 1, 1, 1, 0, 1, 0, 1, 4, 4, 0, 0, 0, 1, 0, 0, 4, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 7, 2, 3, 1, 6, 6, 2, 0, 0, 0, 1, 1, 5, 12, 12, 17, 4, 3, 9, 2, 5, 16, 16, 17, 11, 9, 2, 1, 2, 3, 3, 3, 4, 6, 0, 0, 3, 2, 5, 9, 2, 2, 8, 3, 4, 3, 0, 4, 6, 4, 4, 5, 5, 1, 5, 1, 2, 9, 9, 6, 3, 9, 9, 1, 0, 1, 0, 1, 1, 6, 2, 5, 3, 1, 3, 2, 1, 8, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 8, 8, 13, 1, 2, 0, 4, 1, 0, 1, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 2, 1, 0, 3, 8, 6, 13, 6, 7, 5, 7, 2, 7, 0, 3, 2, 5, 1, 4, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 3, 5, 4, 3, 3, 4, 1, 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 3, 3, 3, 7, 3, 7, 17, 18, 19, 7, 7, 15, 10, 17, 5, 4, 6, 5, 1, 0, 0, 2, 2, 5, 5, 6, 7, 6, 7, 3, 4, 2, 0, 0, 12, 5, 2, 1, 17, 9, 19, 9, 10, 13, 17, 10, 4, 13, 11, 7, 6, 6, 13, 2, 6, 7, 13, 5, 2, 2, 4, 1, 1, 0, 0, 0, 0, 0, 0, 1, 2, 1, 3, 4, 5, 4, 10, 8, 7, 7, 7, 9, 6, 6, 4, 6, 10, 17, 2, 3, 1, 1, 2, 9, 22, 12, 10, 4, 6, 9, 1, 8, 2, 3, 0, 4, 9, 1, 0, 1, 0, 1, 0, 2, 2, 4, 1, 0, 8, 0, 0, 0, 1, 0, 0, 2, 0, 3, 1, 7, 17, 12, 6, 6, 5, 13, 8, 5, 5, 9, 15, 5, 6, 5, 8, 4, 7, 7, 6, 4, 1, 9, 3, 4, 11, 5, 0, 0, 4, 6, 19, 19, 22, 11, 12, 0) calculateCandleTimeDiff() => // 2015-01-01 00:00 signal day time serie start. referenceUnixTime = 1420066800 candleUnixTime = time / 1000 + 1 timeDiff = candleUnixTime - referenceUnixTime timeDiff < 0 ? na : timeDiff getSignalCandleIndex() => timeDiff = calculateCandleTimeDiff() // Day index, days count elapsed from reference date. candleIndex = math.floor(timeDiff / 86400) candleIndex < 0 ? na : candleIndex getSignal() => // Map array data items indexes to candles. int candleIndex = getSignalCandleIndex() int itemsCount = array.size(f_class) // Return na for candles where indicator data is not available. int index = candleIndex >= itemsCount ? na : candleIndex signal = if index >= 0 and itemsCount > 1 array.get(f_class, index) else na signal // Compose signal time serie from array data. int SignalSerie = getSignal() // Calculate plot offset estimating market week open days plot(series=SignalSerie, style=plot.style_histogram, linewidth=4, color=color.new(color.green, 0))
ST_trailing
https://www.tradingview.com/script/HNPreFHk-st-trailing/
IntelTrading
https://www.tradingview.com/u/IntelTrading/
180
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © IntelTrading //@version=4 study("trailing", overlay = true) pr = input(4024.0, title = 'Price enter') date = input(title="Date and time enter", type=input.time, defval=timestamp("19 Nov 2021 08:00 +0700")) perc = input(2.0, step = 0.1, title = 'Percent activate trail') kp = input(0.6, step = 0.1, title = 'koeff trail') var ent = 0.0 if time >= date ent := pr var g = 0.0 if time > date and ohlc4 > ent*(1 + (perc)/100) g := ent * ((ohlc4/ent) - kp*(perc/100)) var stop = 0.0 var u = 0 if g > g[1] and g > stop[1] and time > date stop := g if g < stop[1] and time > date stop := stop[1] if crossover(stop, low) and time > date stop := stop[1] u := 1 entpr = plot(time >= date and u == 0 ? pr : na, "price", color = color.gray, style=plot.style_linebr, linewidth = 1) cl = plot(stop == 0 or u == 1 ? na : ohlc4, color = color.black) trail = plot(stop == 0 or u == 1 ? na : stop, "Trail", color = color.yellow, style=plot.style_linebr, linewidth = 2) fill(cl, trail, color.new(color.green, 90), fillgaps=false) prof = (stop - pr)*100/pr if barstate.islast and u == 0 label.new(time, prof, text = "profit, % = " + tostring(round(prof, 2)), color = color.white, xloc=xloc.bar_time, yloc=yloc.abovebar, size = size.large, style = label.style_label_lower_left)
Baekdoo compressed multi EMA box and its crossover indicator
https://www.tradingview.com/script/6Of8S7kx-Baekdoo-compressed-multi-EMA-box-and-its-crossover-indicator/
traderbaekdoosan
https://www.tradingview.com/u/traderbaekdoosan/
126
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © traderbaekdoosan //@version=5 indicator("Baekdoo compressed multi EMA box and its crossover indicator", overlay=true) disparity(period)=> close/ta.ema(close, period)*100 ratio=input(105) A5=disparity(5) A10=disparity(10) A15=disparity(15) A20=disparity(20) A25=disparity(25) A30=disparity(30) A35=disparity(35) A40=disparity(40) A45=disparity(45) A50=disparity(50) A55=disparity(55) A60=disparity(60) A65=disparity(65) A70=disparity(70) A75=disparity(75) A80=disparity(80) A85=disparity(85) A90=disparity(90) A95=disparity(95) A100=disparity(100) MAXA=math.max(A5, A10, A15, A20, A25, A30, A35, A40, A45, A50, A55, A60, A65, A70, A75, A80, A85, A90, A95, A100) MINA=math.min(A5, A10, A15, A20, A25, A30, A35, A40, A45, A50, A55, A60, A65, A70, A75, A80, A85, A90, A95, A100) up=ta.valuewhen(MAXA/MINA*100 <ratio, ta.ema(close, 50)*MAXA/100, 1) down=ta.valuewhen(MAXA/MINA*100 <ratio, ta.ema(close, 50)*MINA/100, 1) boxup=plot(up, color=color.rgb(0, 200, 0, 90)) boxdown=plot(down, color=color.rgb(0, 200, 0, 90)) fill(boxup, boxdown, color.rgb(0, 200, 0, 50)) plotshape((ta.crossover(close, up) and volume>ta.highest(volume[1], 60)*5)? close : na , color=color.new(color.green, 0), style=shape.triangleup, location=location.belowbar, display=display.all, size=size.small)
MIDAS Line v.1
https://www.tradingview.com/script/nGP7fnNa-MIDAS-Line-v-1/
PhysioGuy
https://www.tradingview.com/u/PhysioGuy/
26
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © PhysioGuy //@version=5 indicator("Midas line v.1", overlay=true) //source len = input.int(89, minval=1, title="Length") src = input(close, title="Source") offset = input.int(title="Offset", defval=0, minval=-500, maxval=500) //create macd fast = ta.ema(close,12) slow = ta.ema(close,26) macd = fast - slow signal = ta.ema(macd,9) //condition macd bull = macd >= 0 and macd >= signal weakbull = macd >=0 and macd < signal weakbear = macd < 0 and macd > signal bear = macd < 0 and macd < signal //colorful col = bull ? color.lime : weakbull ? #FFC300 : weakbear ? color.blue : bear ? color.red : na //create ema ema = ta.ema(src,len) //colorful ema plot(ema, linewidth=4, color = col,title="Midas line") //barcolor barcolor(color=col) //signal plotshape(macd > 0 and macd[1] < 0,style=shape.triangleup,location=location.belowbar,size=size.tiny, color=color.green,text="Buy") plotshape(macd < 0 and macd[1] > 0,style=shape.triangledown,location=location.abovebar,size=size.tiny, color=color.red,text="Sell")
Inverse Divergence [HeWhoMustNotBeNamed]
https://www.tradingview.com/script/daWIgmUG-Inverse-Divergence-HeWhoMustNotBeNamed/
Trendoscope
https://www.tradingview.com/u/Trendoscope/
641
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © HeWhoMustNotBeNamed // __ __ __ __ __ __ __ __ __ __ __ _______ __ __ __ // / | / | / | _ / |/ | / \ / | / | / \ / | / | / \ / \ / | / | // $$ | $$ | ______ $$ | / \ $$ |$$ |____ ______ $$ \ /$$ | __ __ _______ _$$ |_ $$ \ $$ | ______ _$$ |_ $$$$$$$ | ______ $$ \ $$ | ______ _____ ____ ______ ____$$ | // $$ |__$$ | / \ $$ |/$ \$$ |$$ \ / \ $$$ \ /$$$ |/ | / | / |/ $$ | $$$ \$$ | / \ / $$ | $$ |__$$ | / \ $$$ \$$ | / \ / \/ \ / \ / $$ | // $$ $$ |/$$$$$$ |$$ /$$$ $$ |$$$$$$$ |/$$$$$$ |$$$$ /$$$$ |$$ | $$ |/$$$$$$$/ $$$$$$/ $$$$ $$ |/$$$$$$ |$$$$$$/ $$ $$< /$$$$$$ |$$$$ $$ | $$$$$$ |$$$$$$ $$$$ |/$$$$$$ |/$$$$$$$ | // $$$$$$$$ |$$ $$ |$$ $$/$$ $$ |$$ | $$ |$$ | $$ |$$ $$ $$/$$ |$$ | $$ |$$ \ $$ | __ $$ $$ $$ |$$ | $$ | $$ | __ $$$$$$$ |$$ $$ |$$ $$ $$ | / $$ |$$ | $$ | $$ |$$ $$ |$$ | $$ | // $$ | $$ |$$$$$$$$/ $$$$/ $$$$ |$$ | $$ |$$ \__$$ |$$ |$$$/ $$ |$$ \__$$ | $$$$$$ | $$ |/ |$$ |$$$$ |$$ \__$$ | $$ |/ |$$ |__$$ |$$$$$$$$/ $$ |$$$$ |/$$$$$$$ |$$ | $$ | $$ |$$$$$$$$/ $$ \__$$ | // $$ | $$ |$$ |$$$/ $$$ |$$ | $$ |$$ $$/ $$ | $/ $$ |$$ $$/ / $$/ $$ $$/ $$ | $$$ |$$ $$/ $$ $$/ $$ $$/ $$ |$$ | $$$ |$$ $$ |$$ | $$ | $$ |$$ |$$ $$ | // $$/ $$/ $$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/ $$/ $$/ $$$$$$/ $$$$$$$/ $$$$/ $$/ $$/ $$$$$$/ $$$$/ $$$$$$$/ $$$$$$$/ $$/ $$/ $$$$$$$/ $$/ $$/ $$/ $$$$$$$/ $$$$$$$/ // // // //@version=5 indicator("Inverse Divergence [HeWhoMustNotBeNamed]", max_lines_count=500, max_labels_count=500, max_boxes_count=500) import HeWhoMustNotBeNamed/customcandles/2 as cc import HeWhoMustNotBeNamed/zigzag/7 as zg zigzagLength = input.int(5, step=5, minval=3, title='', group='Zigzag', inline='z1') zigzagColor = input.color(color.rgb(251, 192, 45, 0), title='', group='Zigzag', inline='z1') usePercentile = input.bool(false, "Percent Candles") pLength = input.int(200, "Percent Rank Length") numberOfPivots = 10 oscillatorType = input.string('rsi', title='Oscillator Source', options=["cci", "cmo", "cog", "mfi", "roc", "rsi", "tsi"], group='Support/Resistance') length = zigzagLength*3 longLength = zigzagLength*5 [oOpen, oHigh, oLow, oClose] = cc.ocandles(oscillatorType, length, length,longLength, percentCandles = usePercentile) oRankHigh = ta.percentrank(oHigh, pLength) oRankLow = ta.percentrank(oLow, pLength) dir = oRankHigh > 60 and oRankLow > 60 ? 1 : oRankHigh < 40 and oRankLow < 40 ? -1 : 0 [zigzagpivots, zigzagpivotbars, zigzagpivotdirs, zigzagpivotratios, zigzagprice, zigzagpricedirs, zigzagtrendbias, zigzagdivergence, lines, labels] = zg.drawczigzag(zigzagLength, numberOfPivots, math.max(oHigh, oOpen, oClose), math.min(oLow, oOpen, oClose), high, low, dir, true, true, true, true, linecolor=zigzagColor) plotcandle(oOpen, oHigh, oLow, oClose, title="Oscillator Candles") watermark = table.new(position=position.middle_center, columns=1, rows=1, border_width=0) table.cell(table_id=watermark, column=0, row=0, text="Inverse Divergence\nHeWhoMustNotBeNamed", text_color=color.new(color.aqua, 80), text_size=size.huge)
Correlation Mandate for Relational Analysis
https://www.tradingview.com/script/KZrXFriq-Correlation-Mandate-for-Relational-Analysis/
OrcChieftain
https://www.tradingview.com/u/OrcChieftain/
47
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © greenmask9 //@version=5 indicator("Correlation Mandate", shorttitle = "CM") i_ticker = input.symbol(defval = "", title = "Symbol") i_mode = input.string(defval = "Independent", title = "Mode", options = ["Independent","Correlational","Anti-Correlational"], tooltip = "[1] independent will use 1st color for bullish candles, 2nd color for bearish candles. [2] correlational will use 1st color when both the chart symbol and the selected symbol are in agreement, 2nd color for disagreement") bull_col = input.color(#672bfd, "1st Color") bear_col = input.color(#ffeb3b, "2nd Color") invis_col = color.new(color.red, 100) //input.color(#ef5350, "2nd Color") op = request.security(i_ticker, "", open, lookahead= barmerge.lookahead_on) hh = request.security(i_ticker, "", high, lookahead= barmerge.lookahead_on) cs = request.security(i_ticker, "", close, lookahead= barmerge.lookahead_on) lw = request.security(i_ticker, "", low, lookahead= barmerge.lookahead_on) //op = request.security(i_ticker, "", open, lookahead= barmerge.lookahead_off) //hh = request.security(i_ticker, "", high, lookahead= barmerge.lookahead_off) //cs = request.security(i_ticker, "", close, lookahead= barmerge.lookahead_off) //lw = request.security(i_ticker, "", low, lookahead= barmerge.lookahead_off)// growth_chart = close > open growth_symbol = cs > op agreement = growth_chart and growth_symbol c_1 = op == op[1] c_2 = hh == hh[1] c_3 = cs == cs[1] c_4 = lw == lw[1] cc = not (c_1 and c_2 and c_3 and c_4) col = cc ? (i_mode == "Independent" ? (growth_symbol ? bull_col : bear_col ) : i_mode == "Correlational" ? (agreement ? bull_col : bear_col ) : i_mode == "Anti-Correlational" ? (not agreement ? bull_col : bear_col ) : color.fuchsia) : invis_col plotcandle(op, hh, lw, cs, color = col, wickcolor = col, bordercolor = invis_col) /// /// ///Correlation corr_length = input.int(300, "Correlation length", group = "Correlation") corr = ta.correlation(close, cs, corr_length)*100 /// /// ///Tables i_bgcolor = input.color(color.new(color.blue,100), "Table Background", group = "Tables") i_table_col = input.color(color.new(color.yellow, 10), "Table Text", group = "Tables") i_description = input.string("", title = "Description", inline = "1", group = "Tables") i_act_name = input.bool(false, title = "Act", inline = "1", group = "Tables") i_act_corr = input.bool(false, title = "Correlation Act", group = "Tables") var table perfTable = table.new(position.top_right, 1, 3, border_width = 1) _cellText1 = str.tostring(i_ticker) table.cell(perfTable, 0, 0, _cellText1, bgcolor = i_bgcolor, text_color = i_table_col, width = 10, text_halign = text.align_right) if i_act_name table.cell(perfTable, 0, 1, i_description, bgcolor = i_bgcolor, text_color = i_table_col, width = 10, text_halign = text.align_right) if i_act_corr table.cell(perfTable, 0, 2, str.tostring(corr, format.percent), bgcolor = i_bgcolor, text_color = i_table_col, width = 7, text_halign = text.align_right) /// /// /// EMA and SMA ema_enabler = input.bool(true, "50 & 200 EMA", group = "MAs") sma_enabler = input.bool(true, "50 & 200 SMA", group = "MAs") //200 EMA Daily daily200ema = ema_enabler ? request.security(syminfo.tickerid, "D", ta.ema(cs, 200)[1], lookahead=barmerge.lookahead_on) : na ema200d = plot(daily200ema, title="200 EMA Daily", color= color.black, linewidth=1) //50 EMA Daily daily50ema = ema_enabler ? request.security(syminfo.tickerid, "D", ta.ema(cs, 50)[1], lookahead=barmerge.lookahead_on) : na ema50d = plot(daily50ema, title="50 EMA Daily", color= color.red, linewidth=1) //200 SMA Daily daily200sma = sma_enabler ? request.security(syminfo.tickerid, "D", ta.sma(cs, 200)[1], lookahead=barmerge.lookahead_on) : na sma200d = plot(daily200sma, title="200 EMA Daily", color= color.black, linewidth=1) //50 SMA Daily daily50sma = sma_enabler ? request.security(syminfo.tickerid, "D", ta.sma(cs, 50)[1], lookahead=barmerge.lookahead_on) : na sma50d = plot(daily50sma, title="50 EMA Daily", color= color.red, linewidth=1)
Divergence-Support/Resistance - Widget [HeWhoMustNotBeNamed]
https://www.tradingview.com/script/LMkZi7gp-Divergence-Support-Resistance-Widget-HeWhoMustNotBeNamed/
Trendoscope
https://www.tradingview.com/u/Trendoscope/
514
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © HeWhoMustNotBeNamed // __ __ __ __ __ __ __ __ __ __ __ _______ __ __ __ // / | / | / | _ / |/ | / \ / | / | / \ / | / | / \ / \ / | / | // $$ | $$ | ______ $$ | / \ $$ |$$ |____ ______ $$ \ /$$ | __ __ _______ _$$ |_ $$ \ $$ | ______ _$$ |_ $$$$$$$ | ______ $$ \ $$ | ______ _____ ____ ______ ____$$ | // $$ |__$$ | / \ $$ |/$ \$$ |$$ \ / \ $$$ \ /$$$ |/ | / | / |/ $$ | $$$ \$$ | / \ / $$ | $$ |__$$ | / \ $$$ \$$ | / \ / \/ \ / \ / $$ | // $$ $$ |/$$$$$$ |$$ /$$$ $$ |$$$$$$$ |/$$$$$$ |$$$$ /$$$$ |$$ | $$ |/$$$$$$$/ $$$$$$/ $$$$ $$ |/$$$$$$ |$$$$$$/ $$ $$< /$$$$$$ |$$$$ $$ | $$$$$$ |$$$$$$ $$$$ |/$$$$$$ |/$$$$$$$ | // $$$$$$$$ |$$ $$ |$$ $$/$$ $$ |$$ | $$ |$$ | $$ |$$ $$ $$/$$ |$$ | $$ |$$ \ $$ | __ $$ $$ $$ |$$ | $$ | $$ | __ $$$$$$$ |$$ $$ |$$ $$ $$ | / $$ |$$ | $$ | $$ |$$ $$ |$$ | $$ | // $$ | $$ |$$$$$$$$/ $$$$/ $$$$ |$$ | $$ |$$ \__$$ |$$ |$$$/ $$ |$$ \__$$ | $$$$$$ | $$ |/ |$$ |$$$$ |$$ \__$$ | $$ |/ |$$ |__$$ |$$$$$$$$/ $$ |$$$$ |/$$$$$$$ |$$ | $$ | $$ |$$$$$$$$/ $$ \__$$ | // $$ | $$ |$$ |$$$/ $$$ |$$ | $$ |$$ $$/ $$ | $/ $$ |$$ $$/ / $$/ $$ $$/ $$ | $$$ |$$ $$/ $$ $$/ $$ $$/ $$ |$$ | $$$ |$$ $$ |$$ | $$ | $$ |$$ |$$ $$ | // $$/ $$/ $$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/ $$/ $$/ $$$$$$/ $$$$$$$/ $$$$/ $$/ $$/ $$$$$$/ $$$$/ $$$$$$$/ $$$$$$$/ $$/ $$/ $$$$$$$/ $$/ $$/ $$/ $$$$$$$/ $$$$$$$/ // // // //@version=5 indicator("Divergence-Support/Resistance - Widget [HeWhoMustNotBeNamed]", shorttitle="DSR - Widget [HeWhoMustNotBeNamed]", overlay=true, max_lines_count=500, max_labels_count=500, max_bars_back=500) import HeWhoMustNotBeNamed/zigzag/6 as zg import HeWhoMustNotBeNamed/enhanced_ta/10 as eta import HeWhoMustNotBeNamed/supertrend/4 as st import HeWhoMustNotBeNamed/customcandles/2 as ca ohlcSource = input.string("regular", "OHLC Source", options=["regular", "ha", "ma"], group="Candles") matype = input.string("hma", title="Moving Average", group="Candles", options=["sma", "ema", "hma", "rma", "wma", "vwma", "swma", "linreg", "median"], inline="m") malength = input.int(10, step=5, title="", group="Candles", inline="m") highSource = high lowSource = low closeSource = close openSource = open if(ohlcSource == "ma") [maOpen, maHigh, maLow, maClose] = ca.macandles(matype, malength) openSource := maOpen highSource := maHigh lowSource := maLow closeSource := maClose if(ohlcSource == "ha") [haOpen, haHigh, haLow, haClose] = ca.hacandles() openSource := haOpen highSource := math.max(haOpen, haClose) lowSource := math.min(haOpen, haClose) closeSource := haClose showZigzag1 = input.bool(true, "", group="Zigzag", inline="z1") zigzag1Length = input.int(5, "", group="Zigzag", inline="z1") lineStyle1 = input.string(line.style_solid, "", options = [line.style_dotted, line.style_dashed, line.style_solid], group="Zigzag", inline="z1") showZigzag2 = input.bool(true, "", group="Zigzag", inline="z2") zigzag2Length = input.int(8, "", group="Zigzag", inline="z2") lineStyle2 = input.string(line.style_dashed, "", options = [line.style_dotted, line.style_dashed, line.style_solid], group="Zigzag", inline="z2") showZigzag3 = input.bool(true, "", group="Zigzag", inline="z3") zigzag3Length = input.int(13, "", group="Zigzag", inline="z3") lineStyle3 = input.string(line.style_dotted, "", options = [line.style_dotted, line.style_dashed, line.style_solid], group="Zigzag", inline="z3") showZigzag4 = input.bool(true, "", group="Zigzag", inline="z4") zigzag4Length = input.int(21, "", group="Zigzag", inline="z4") lineStyle4 = input.string(line.style_dotted, "", options = [line.style_dotted, line.style_dashed, line.style_solid], group="Zigzag", inline="z4") var useAlternativeSource = true source = close var srArray1 = array.new_float() var lnArray1 = array.new_line() var lblArray1 = array.new_label() var srArray2 = array.new_float() var lnArray2 = array.new_line() var lblArray2 = array.new_label() var srArray3 = array.new_float() var lnArray3 = array.new_line() var lblArray3 = array.new_label() var srArray4 = array.new_float() var lnArray4 = array.new_line() var lblArray4 = array.new_label() oscillatorType = input.string('rsi', title='Oscillator Source', options=["cci", "cmo", "cog", "mfi", "roc", "rsi", "stoch", "tsi", "wpr"], group='Oscillator', inline='osc') useExternalSource = input.bool(false, title='External Source', group='Oscillator', inline="osce") externalSource = input.source(close, title='', group='Oscillator', inline="osce") maxItems = input.int(10, step=5, title="Max S/R Per Zigzag", group="Misc") maxSupportResistanceForLive = input.int(3, "Max S/R for Stats", group="Misc") maxSupportResistanceForAlerts = input.int(3, "Max S/R for Alerts", group="Misc") showNewSRAlert = input.bool(true, "New S/R Alert", group="Misc", inline="s") showSRBreakAlert = input.bool(true, "S/R Break Alert", group="Misc", inline="s") var history = 1 var waitForClose = true var atrMaType = "rma" var atrMultiplier = 1 add_to_array(arr, val, maxItems)=> array.push(arr, val) if(array.size(arr) > maxItems) array.remove(arr,0) add_to_line_array(arr, val, maxItems)=> array.push(arr, val) if(array.size(arr) > maxItems) line.delete(array.remove(arr,0)) add_to_label_array(arr, val, maxItems)=> array.push(arr, val) if(array.size(arr) > maxItems) label.delete(array.remove(arr,0)) getSentimentDetails(sentiment) => [sentimentSymbol, sentimentColor, type] = switch sentiment 4 => ['⬆', color.green, "Continuation"] -4 => ['⬇', color.red, "Continuation"] 3 => ['↗', color.lime, "Hidden Divergence"] -3 => ['↘', color.orange, "Hidden Divergence"] 2 => ['⤴',color.rgb(202, 224, 13, 0), "Divergence"] -2 => ['⤵',color.rgb(250, 128, 114, 0), "Divergence"] => ['▣', color.silver, "Indecision"] [sentimentSymbol, sentimentColor, type] f_get_arrays(zigzagLength)=> switch zigzagLength zigzag1Length => [srArray1, lnArray1, lblArray1] zigzag2Length => [srArray2, lnArray2, lblArray2] zigzag3Length => [srArray3, lnArray3, lblArray3] zigzag4Length => [srArray4, lnArray4, lblArray4] f_get_zigzag_properties(zigzagLength)=> switch zigzagLength zigzag1Length => [showZigzag1, lineStyle1, 1] zigzag2Length => [showZigzag2, lineStyle2, 1] zigzag3Length => [showZigzag3, lineStyle3, 1] zigzag4Length => [showZigzag4, lineStyle4, 1] f_get_support_resistance_break_status(srArray, brokenSRArray, nextSupportArray, nextResistanceArray)=> count = 0 for i = 0 to array.size(srArray) > 0? array.size(srArray)-1 : na sr = array.get(srArray, i) currentSR = (sr < close[2] and sr > close[1]? -1 : sr > close[2] and sr < close[1] ? 1 : 0) if(currentSR!=0) count += currentSR array.unshift(brokenSRArray, sr) if(close[1] > sr) array.unshift(nextSupportArray, sr) if(close[1] < sr) array.unshift(nextResistanceArray, sr) count get_alert_stats(brokenSRArray, nextSupportArray, nextResistanceArray)=> count1 = f_get_support_resistance_break_status(srArray1, brokenSRArray, nextSupportArray, nextResistanceArray) count2 = f_get_support_resistance_break_status(srArray2, brokenSRArray, nextSupportArray, nextResistanceArray) count3 = f_get_support_resistance_break_status(srArray3, brokenSRArray, nextSupportArray, nextResistanceArray) count4 = f_get_support_resistance_break_status(srArray4, brokenSRArray, nextSupportArray, nextResistanceArray) array.sort(nextSupportArray, order.descending) array.sort(nextResistanceArray, order.ascending) totalCount = count1 + count2 + count3 + count4 totalCount f_get_live_support_resistance(srArray, liveSupportArray, liveResistanceArray)=> for i = 0 to array.size(srArray) > 0? array.size(srArray)-1 : na sr = array.get(srArray, i) if(close < sr) array.unshift(liveResistanceArray, sr) if(close > sr) array.unshift(liveSupportArray, sr) f_get_complete_support_resistance_heirarchy(maxSupportResistanceForLive)=> liveSupportArray = array.new_float() liveResistanceArray = array.new_float() f_get_live_support_resistance(srArray1, liveSupportArray, liveResistanceArray) f_get_live_support_resistance(srArray2, liveSupportArray, liveResistanceArray) f_get_live_support_resistance(srArray3, liveSupportArray, liveResistanceArray) f_get_live_support_resistance(srArray4, liveSupportArray, liveResistanceArray) array.sort(liveSupportArray, order.descending) array.sort(liveResistanceArray, order.ascending) supportLevels = array.size(liveSupportArray) resistanceLevels = array.size(liveResistanceArray) shortSupportArray = supportLevels > maxSupportResistanceForLive? array.slice(liveSupportArray, 0, maxSupportResistanceForLive):liveSupportArray shortResistanceArray = resistanceLevels > maxSupportResistanceForLive? array.slice(liveResistanceArray, 0, maxSupportResistanceForLive):liveResistanceArray [supportLevels, resistanceLevels, shortSupportArray, shortResistanceArray] f_get_price_and_divergence(zigzagLength)=> [srArray, lnArray, lblArray] = f_get_arrays(zigzagLength) [showZigzag, lineStyle, lineWidth] = f_get_zigzag_properties(zigzagLength) if(showZigzag) length = zigzagLength * 3 longLength = zigzagLength*5 atrLength = zigzagLength*5 [oscillator, overbought, oversold] = eta.oscillator(oscillatorType, length, length, longLength) [oscillatorHigh, overboughtHigh, oversoldHigh] = eta.oscillator(oscillatorType, length, length, longLength, highSource) [oscillatorLow, overboughtLow, oversoldLow] = eta.oscillator(oscillatorType, length, length, longLength, lowSource) var dir_zigzag = 1 [zigzagpivots, zigzagpivotbars, zigzagpivotdirs, zigzagpivotratios, zigzagoscillators, zigzagoscillatordirs, zigzagtrendbias, zigzagdivergence, newPivot, doublePivot] = zg.czigzag(zigzagLength, 20, highSource, lowSource, oscillatorHigh, oscillatorLow, dir_zigzag) [tmp_dir_zigzag, supertrend] = st.zsupertrend(zigzagpivots, history = history, source = closeSource, highSource = highSource, lowSource = lowSource, waitForClose = waitForClose, atrMaType = atrMaType, atrlength = atrLength, multiplier = atrMultiplier) dir_zigzag := tmp_dir_zigzag size = array.size(zigzagpivots) if(size>1) index = 1 price = array.get(zigzagpivots, index) divergence = array.get(zigzagdivergence, index) bar = array.get(zigzagpivotbars, index) if(math.abs(divergence) == 2 or math.abs(divergence) == 3) if(array.lastindexof(srArray, price) == -1) add_to_array(srArray, price, maxItems) [sentimentSymbol, sentimentColor, type] = getSentimentDetails(divergence) if showNewSRAlert alertMessage = '{'+ '\n\t"alert" : "new support resistance",'+ '\n\t"type" : "'+type+'",'+ '\n\t"bias" : "'+(divergence >0 ? "Bullish" : "Bearish")+'",'+ '\n\t"zigzag" : '+str.tostring(zigzagLength)+','+ '\n\t"price" : '+str.tostring(price)+ '\n}' alert(alertMessage) f_get_price_and_divergence(zigzag1Length) f_get_price_and_divergence(zigzag2Length) f_get_price_and_divergence(zigzag3Length) f_get_price_and_divergence(zigzag4Length) if(showSRBreakAlert) brokenSRArray = array.new_float() nextSupportArray = array.new_float() nextResistanceArray = array.new_float() totalCount = get_alert_stats(brokenSRArray, nextSupportArray, nextResistanceArray) if(totalCount!=0) alertType = totalCount > 0? "Broken Resistance" : totalCount < 0? "Broken Support" : " Invalid" shortenedSupportArray = array.size(nextSupportArray)<=maxSupportResistanceForAlerts? nextSupportArray : array.slice(nextSupportArray, 0, maxSupportResistanceForAlerts) shortenedResistanceArray = array.size(nextResistanceArray)<=maxSupportResistanceForAlerts? nextResistanceArray : array.slice(nextResistanceArray, 0, maxSupportResistanceForAlerts) alertMessage = '{'+ '\n\t"alert" : "'+alertType+'",'+ '\n\t"broken_levels" : ['+array.join(brokenSRArray,',')+']'+ '\n\t"next_support_levels" : ['+array.join(shortenedSupportArray,',')+']'+ '\n\t"next_resistance_levels" : ['+array.join(shortenedResistanceArray,',')+']'+ '\n\t"support_count" : ' +str.tostring(array.size(nextSupportArray))+ '\n\t"resistance_count" : '+str.tostring(array.size(nextResistanceArray))+ '\n}' alert(alertMessage) [supportLevels, resistanceLevels, shortSupportArray, shortResistanceArray] = f_get_complete_support_resistance_heirarchy(maxSupportResistanceForLive) stats = table.new(position=position.top_right, columns=5, rows=maxSupportResistanceForLive + 1, border_width=1) if(array.size(shortResistanceArray)>0) table.cell(table_id=stats, column=1, row=0, text="Resistance ("+str.tostring(resistanceLevels)+")", bgcolor=color.teal, text_color=color.white, text_size=size.small) for i=0 to array.size(shortResistanceArray)-1 table.cell(table_id=stats, column=0, row=i+1, text=str.tostring(math.round_to_mintick(array.get(shortResistanceArray, i))-math.round_to_mintick(close)), bgcolor=color.blue, text_color=color.black, text_size=size.tiny) table.cell(table_id=stats, column=1, row=i+1, text=str.tostring(math.round_to_mintick(array.get(shortResistanceArray, i))), bgcolor=color.orange, text_color=color.black, text_size=size.small) if(array.size(shortSupportArray)>0) table.cell(table_id=stats, column=2, row=0, text="Support ("+str.tostring(supportLevels)+")", bgcolor=color.teal, text_color=color.white, text_size=size.small) for i=0 to array.size(shortSupportArray)-1 table.cell(table_id=stats, column=2, row=i+1, text=str.tostring(math.round_to_mintick(array.get(shortSupportArray, i))), bgcolor=color.lime, text_color=color.black, text_size=size.small) table.cell(table_id=stats, column=3, row=i+1, text=str.tostring(math.round_to_mintick(close)-math.round_to_mintick(array.get(shortSupportArray, i))), bgcolor=color.blue, text_color=color.black, text_size=size.tiny)
Wick Bodies [vnhilton]
https://www.tradingview.com/script/5RIsMaBb-Wick-Bodies-vnhilton/
vnhilton
https://www.tradingview.com/u/vnhilton/
226
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © vnhilton //@version=4 study("Wick Bodies [vnhilton]", overlay=true) o = open c = close r = color.red g = color.lime b = color.black topWickEnd = o > c ? o : c bottomWickEnd = o > c ? c : o //top wick plotcandle(high, high, topWickEnd, topWickEnd, color=r, bordercolor=b, wickcolor=na, title="Top Wick") //bottom wick plotcandle(low, bottomWickEnd, low, bottomWickEnd, color=g, bordercolor=b, wickcolor=na, title="Bottom Wick")
ADX + DMI with Fill and Crossover
https://www.tradingview.com/script/cVB8kgtj-ADX-DMI-with-Fill-and-Crossover/
jrregencia
https://www.tradingview.com/u/jrregencia/
120
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © jrregencia //@version=5 indicator("ADX + DMI with Fill and Crossover", timeframe="", timeframe_gaps=true) //DMI + ADX lensig = input.int(14, title="ADX Smoothing", minval=1, maxval=50) len = input.int(14, minval=1, title="DI Length") up = ta.change(high) down = -ta.change(low) plusDM = na(up) ? na : (up > down and up > 0 ? up : 0) minusDM = na(down) ? na : (down > up and down > 0 ? down : 0) trur = ta.rma(ta.tr, len) plus = fixnan(100 * ta.rma(plusDM, len) / trur) minus = fixnan(100 * ta.rma(minusDM, len) / trur) sum = plus + minus adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), lensig) adxmax = input.int(50, title="ADX Max Buying Area", minval=1, maxval=100) adxmin = input.int(0, title="ADX Min Buying Area", minval=0, maxval=99) //DI cross alert DIPcross = ta.crossover(plus, minus) ? plus : na plotshape(DIPcross, style = shape.cross , color=color.white, location=location.absolute) DINcross = ta.crossover(minus, plus) ? minus : na plotshape(DINcross, style = shape.xcross , color=color.white, location=location.absolute) plot(adx, color=color.orange, title="ADX", linewidth=2) p1 = plot(plus, color=color.teal, title="+DI", linewidth=1) p2 = plot(minus, color=color.red, title="-DI", linewidth=1) adxmaxl = hline(adxmax, title="ADX MaxLine", color=color.silver, linestyle=hline.style_solid) adxminl = hline(adxmin, title="ADX MinLine", color=color.silver, linestyle=hline.style_solid) fill(p1, p2, title="Cloud Fill", color = plus > minus ? color.teal : color.red, transp=50) fill(adxmaxl, adxminl, title="ADX Fill", color=color.silver, transp=90)
34 EMA Bands
https://www.tradingview.com/script/qhzXMMFA-34-EMA-Bands/
VishvaP
https://www.tradingview.com/u/VishvaP/
39
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © VishvaP //@version=5 indicator("EMA Band", overlay = true) price = close highShortEMA = ta.ema(high, 34) lowShortEMA = ta.ema(low, 34) EMA = ta.ema(close, 34) bandsHigh = highShortEMA * math.phi bandsLow = lowShortEMA * math.rphi shortbandsHigh = ((highShortEMA - EMA) * math.phi) * math.pi + EMA shortbandsLow = (-(EMA - lowShortEMA) * math.phi) * math.pi + EMA highP1 = plot(highShortEMA) lowP1 = plot(lowShortEMA) //highP2 = plot(bandsHigh) //lowP2 = plot(bandsLow) //highP3 = plot(shortbandsHigh) //lowP3 = plot(shortbandsLow) fill(highP1, lowP1, color.new(color.black, 75))
VolBands
https://www.tradingview.com/script/WC1HAJgX-VolBands/
danilogalisteu
https://www.tradingview.com/u/danilogalisteu/
92
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © danilogalisteu //@version=4 study("VolBands", overlay=true, precision=3) PerVol = input(10, "Vol Period", minval=1) PerPrd = input(7, "Prd Period", minval=1) PerTrd = input(15, "Trade Period", minval=1) MulTrd = input(0.5, "Trade Multiplier", minval=0.0, step=0.1) PerTrn = input(63, "Trend Period", minval=1) MulTrn = input(4.0, "Trend Multiplier", minval=0.0, step=0.1) useDay = input(false, "Show daily ranges and levels on all timeframes", type=input.bool) f_VolYangZhang(period) => k = 0.34 / ( 1.34 + (period + 1) / (period - 1)) No = log(open) - log(close[1]) // normalized open Nu = log(high) - log(open) // normalized high Nd = log(low) - log(open) // normalized low Nc = log(close) - log(open) // normalized close Noavg = 1 / period * sum(No, period) Ncavg = 1 / period * sum(Nc, period) Vo = 1 / (period - 1) * sum(pow((No - Noavg),2), period) Vc = 1 / (period - 1) * sum(pow((Nc - Ncavg),2), period) Vrs = 1 / period * sum((Nu * (Nu - Nc) + Nd * (Nd - Nc)), period) Vyangzhang = sqrt(Vo + k * Vc + (1 - k) * Vrs) * 100 * sqrt(252) f_TrendMagic(PeriodCCI, PeriodATR, CoeffATR) => atr = sma(tr, PeriodATR) * CoeffATR upT = low - atr dnT = high + atr cciT = cci(close, PeriodCCI) level = ohlc4 level := cciT >= 0 ? (upT > nz(level[1]) ? upT : (level[1])) : (dnT < nz(level[1]) ? dnT : (level[1])) trade_level = security(syminfo.tickerid, "1D", f_TrendMagic(PerTrd, PerTrd, MulTrd), barmerge.gaps_off, barmerge.lookahead_on) trend_level = security(syminfo.tickerid, "1D", f_TrendMagic(PerTrn, PerTrn, MulTrn), barmerge.gaps_off, barmerge.lookahead_on) band = security(syminfo.tickerid, "1D", f_VolYangZhang(PerVol) / 100.0 * sqrt(PerPrd / 252), barmerge.gaps_off, barmerge.lookahead_on) if not useDay trade_level := f_TrendMagic(PerTrd, PerTrd, MulTrd) trend_level := f_TrendMagic(PerTrn, PerTrn, MulTrn) band := f_VolYangZhang(PerVol) / 100.0 * sqrt(PerPrd / 252) trade_color = close > trade_level ? color.green : close < trade_level ? color.red : color.yellow trend_color = close > trend_level ? color.green : close < trend_level ? color.red : color.yellow plot(trade_level * exp(-band), color=color.fuchsia, linewidth=2, title="BRR") plot(trade_level * exp( band), color=color.fuchsia, linewidth=2, title="TRR") plot(trade_level, color=trade_color, linewidth=1, title="Trade level") plot(trend_level, color=trend_color, linewidth=3, title="Trend level")
Relative Strength
https://www.tradingview.com/script/lUAMAX84-Relative-Strength/
Sekiyo
https://www.tradingview.com/u/Sekiyo/
18
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Sekiyo //@version=5 indicator("Relative Strength") //INPUTS Den = input.symbol("AMEX:SPY", "Denominator") // Denominator MAdisplay = input(true, "Sma Display") // Display Moving Average MAlength = input(10, "Sma Length") // Length Moving Average Cat = input.color(color.black, "NH Color") // All Time High Color Cup = input.color(color.blue, "Up Color") // Up Color Cdo = input.color(color.fuchsia, "Down Color") // Down Color Lookback = input.int(0, "New High Lookback", 0, tooltip = "IF 0 then look for NH ELSE look for past X high") //VARIABLES Num = syminfo.tickerid // Current symbol ticker //REQUESTS RNum = request.security(Num, na, close) // Request Numerator Data RDen = request.security(Den, na, close) // Request Denominator Data //RELATIVE STRENGTH RStr = RNum / RDen // Quotien //MA Sma = ta.sma(RStr, MAlength) // Simple Moving Average //New High float NH = na if Lookback == 0 NH := RStr > ta.max(RStr[1]) ? RStr : NH[1] else NH := RStr > ta.highest(RStr[1], Lookback) ? RStr : NH[1] //COLORS Prs = RStr == NH ? Cat : RStr * 100 > RStr[1] * 100 ? Cup : Cdo //RS based on previous RS Pma = Sma > Sma[1] ? color.green : color.red //MA based on previous MA //PLOTS plot(RStr, "Relative Strength line", color.new(Prs, 20), 2) plot(MAdisplay ? Sma : na, "Moving Average", color.new(Pma, 50), 1)
Double candlestick reversal pattern
https://www.tradingview.com/script/I4zPgkiF/
Mcashflow
https://www.tradingview.com/u/Mcashflow/
45
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Mcashflow //@version=5 indicator("Several & Double candle reversal pattern",overlay=true) barnum=input(defval=4,title="input line") a_value = input.int(defval=2,title="a_value",minval=1, maxval=10, step=1,group="Entity comparison value") b_value = input.int(defval=3,title="b_value",minval=1, maxval=10, step=1,group="Entity comparison value") c_value = input.float(defval=0.008,title="Increase ratio",minval=0.004, maxval=0.1, step=0.001, group="Entity comparison value") first_value = input.float(defval=0.01,title="Increase ratio",minval=0.005, maxval=0.1, step=0.001, group="Double candle value") second_value = input.float(defval=2.5,title="second_value",minval=1, maxval=4, step=0.5, group="Double candle value") entity_k=math.abs (open-close) entity_k1=math.abs (open[1]-close[1]) Shadow=math.abs(high-low) Shadow1=math.abs(high[1]-low[1]) cond = close[0] == ta.highest(close, barnum) and close[1] ==ta.lowest(close,barnum) and close[3]>close[2] and close[2]>close[1] and (math.abs(close[3]-open[3]) + math.abs(close[2]-open[2]) + math.abs(close[1]-open[1]))/ a_value<(close[0]-open[0]) and open[3]>close[2] and open[2]>close[1] and (math.abs(close[3]-open[3]) + math.abs(close[2]-open[2]) + math.abs(close[1]-open[1]))* b_value>(close[0]-open[0]) and entity_k >( open[1]*c_value) //and open[3]>open[2] and open[2]>open[1] cond1 = close[1] == ta.highest(close, barnum) and close[0] ==ta.lowest(close,barnum) and close[3]<close[2] and close[2]<close[1] and (math.abs(close[3]-open[3]) + math.abs(close[2]-open[2]) + math.abs(close[1]-open[1]))/ a_value<(open[0]-close[0]) and open[3]<close[2] and open[2]<close[1] and (math.abs(close[3]-open[3]) + math.abs(close[2]-open[2]) + math.abs(close[1]-open[1]))* b_value>(open[0]-close[0]) and entity_k >( open[1]*c_value) //and open[3]<open[2] and open[2]<open[1] if cond labelh = label.new(x=bar_index, y=na, text="LONG", size=size.normal, color=color.green, textcolor=#EEEEEE,yloc=yloc.belowbar, style=label.style_label_up ) if cond1 labelh = label.new(x=bar_index, y=na, text="SHORT", size=size.normal, color=color.red, textcolor=#EEEEEE,yloc=yloc.abovebar, style=label.style_label_down ) //Double candle reversal pattern var color x = na //entity_k >= entity_k1 //Shadow_line >= Shadow_line1 cond3 =(entity_k >= entity_k1) and entity_k >( open[1]*first_value) and entity_k<( entity_k1*second_value) and open < open[1] and close >open[1] cond4=(entity_k >= entity_k1) and entity_k >( open[1]*first_value ) and entity_k<( entity_k1*second_value) and open > open[1] and close <open[1] if cond3 x := #E0E0E0 else if cond4 x := #FFE153 else x := na barcolor(x) plotshape(cond3,title="Double candlestick reversal",style=shape.labelup,location=location.belowbar, color=color.green,text="reversal+++",textcolor = #ECFFFF, size=size.small) plotshape(cond4,title="Double candlestick reversal",style=shape.labeldown,location=location.abovebar, color=color.red,text="reversal---",textcolor = #FFFF37, size=size.small) alertcondition(cond, title="long", message="You have a message, buy btc, think about it {{close}} - {{time}}") alertcondition(cond1, title="sell", message="You have a message, sell btc, think about it {{close}} - {{time}}") alertcondition((entity_k >= entity_k1) and entity_k >( open[1]*first_value) and entity_k<( entity_k1*second_value) and open < open[1] and close >open[1], title="Reversal pattern+", message="You have a message,Double candlestick reversal {{close}} - {{time}}") alertcondition((entity_k >= entity_k1) and entity_k >( open[1]*first_value ) and entity_k<( entity_k1*second_value) and open > open[1] and close <open[1], title="Reversal pattern-", message="You have a message, Double candlestick reversal {{close}} - {{time}}")
Fibonacci Toolkit [LuxAlgo]
https://www.tradingview.com/script/2HmHKuo1-Fibonacci-Toolkit-LuxAlgo/
LuxAlgo
https://www.tradingview.com/u/LuxAlgo/
3,576
study
5
CC-BY-NC-SA-4.0
// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/ // © LuxAlgo //@version=5 indicator("Fibonacci Toolkit [LuxAlgo]",overlay=true,max_lines_count=500) mode = input.string('Retracements','Fibonacci',options=['Retracements','Arcs','Circles','Fan','Timezone','Spiral']) ext = input(true,'Extend Reatracements') start = input.time(0,'Start',confirm=true) end = input.time(0,'End',confirm=true) src = input(close) //---- fib_a = input(true,'Fib A',inline='inline1',group='Fibonacci') fib_a_lvl = input(0.236,'',inline='inline1',group='Fibonacci') fib_a_col = input(#2157f3,'',inline='inline1',group='Fibonacci') fib_b = input(true,'Fib B',inline='inline2',group='Fibonacci') fib_b_lvl = input(0.382,'',inline='inline2',group='Fibonacci') fib_b_col = input(#0cb51a,'',inline='inline2',group='Fibonacci') fib_c = input(true,'Fib C',inline='inline3',group='Fibonacci') fib_c_lvl = input(0.5,'',inline='inline3',group='Fibonacci') fib_c_col = input(#ff5d00,'',inline='inline3',group='Fibonacci') fib_d = input(true,'Fib D',inline='inline4',group='Fibonacci') fib_d_lvl = input(0.618,'',inline='inline4',group='Fibonacci') fib_d_col = input(#64b5f6,'',inline='inline4',group='Fibonacci') fib_e = input(true,'Fib E',inline='inline5',group='Fibonacci') fib_e_lvl = input(0.786,'',inline='inline5',group='Fibonacci') fib_e_col = input(#673ab7,'',inline='inline5',group='Fibonacci') fib_f = input(true,'Fib F',inline='inline6',group='Fibonacci') fib_f_lvl = input(1.,'',inline='inline6',group='Fibonacci') fib_f_col = input(#e91e63,'',inline='inline6',group='Fibonacci') connecting_line = input(true,'Line',inline='inline7',group='Fibonacci') line_col = input(color.gray,'',inline='inline7',group='Fibonacci') //---- var fib = array.new_float(0) var fib_col = array.new_color(0) if barstate.isfirst if fib_a array.push(fib,fib_a_lvl) array.push(fib_col,fib_a_col) if fib_b array.push(fib,fib_b_lvl) array.push(fib_col,fib_b_col) if fib_c array.push(fib,fib_c_lvl) array.push(fib_col,fib_c_col) if fib_d array.push(fib,fib_d_lvl) array.push(fib_col,fib_d_col) if fib_e array.push(fib,fib_e_lvl) array.push(fib_col,fib_e_col) if fib_f array.push(fib,fib_f_lvl) array.push(fib_col,fib_f_col) //---- n = bar_index dt = time-time[1] start_n = ta.valuewhen(time == start,n,0) end_n = ta.valuewhen(time == end,n,0) start_y = ta.valuewhen(time == start,src,0) end_y = ta.valuewhen(time == end,src,0) diff_n = end_n - start_n diff_y = start_y - end_y //---- if n == math.max(start_n,end_n) a = 0 b = 1 sum = 0 s2 = math.sqrt(2) if connecting_line line.new(start_n,start_y,end_n,end_y,color=line_col) if mode == 'Spiral' int prev_x = na float prev_y = na for i = 0 to 499 t = i/499*7*math.pi k = math.log(math.phi)/(math.pi/2) r = (math.exp(t*k) - 1)/math.exp(5*math.pi*k) x = r*math.cos(t)*diff_n y = end_y + r*math.sin(t)*(start_y - end_y)*math.sign(end - start) line.new(prev_x,prev_y,end-math.round(x)*dt,y,xloc=xloc.bar_time,color=#ff5d00) prev_x := end-math.round(x)*dt prev_y := y else for i = 0 to array.size(fib)-1 if mode == 'Retracements' lvl = end_y + array.get(fib,i)*diff_y line.new(start_n,lvl,end_n,lvl,color=array.get(fib_col,i)) if ext start_ext = math.max(start_n,end_n) line.new(start_ext,lvl,start_ext+1,lvl,color=array.get(fib_col,i),extend=extend.right,style=line.style_dashed) sty = label.style_label_right label.new(math.min(start_n,end_n),lvl,str.tostring(array.get(fib,i)),color=#00000000, style=sty,textcolor=array.get(fib_col,i),textalign=text.align_center,size=size.small) if mode == 'Arcs' int prev_x = na float prev_y = na for j = -90 to 90 by 5 x = end_n + diff_n*s2*array.get(fib,i)*math.sin(math.toradians(j)) y = end_y + math.cos(math.toradians(j))*(diff_y*array.get(fib,i)*s2) line.new(prev_x,prev_y,math.round(x),y,color=array.get(fib_col,i)) prev_x := math.round(x) prev_y := y label.new(prev_x,end_y,str.tostring(array.get(fib,i)),color=#00000000, style=label.style_label_up,textcolor=array.get(fib_col,i),textalign=text.align_center,size=size.small) if mode == 'Circles' int prev_x = na float prev_y = na for j = 0 to 360 by 5 x = end_n + diff_n*s2*array.get(fib,i)*math.sin(math.toradians(j)) y = end_y + math.cos(math.toradians(j))*(diff_y*array.get(fib,i)*s2) line.new(prev_x,prev_y,math.round(x),y,color=array.get(fib_col,i)) prev_x := math.round(x) prev_y := y sty = end_n > start_n ? label.style_label_left : label.style_label_right x = diff_n*s2*array.get(fib,i)*math.sin(math.toradians(90)) label.new(end_n+math.round(x),end_y,str.tostring(array.get(fib,i)),color=#00000000, style=sty,textcolor=array.get(fib_col,i),textalign=text.align_right,size=size.small) if mode == 'Fan' int prev_x = na float prev_y = na get_fib = array.get(fib,i) extend = start_n < end_n ? extend.right : extend.left line.new(start_n,start_y,math.round(get_fib*start_n+(1-get_fib)*end_n),end_y, color=array.get(fib_col,i),extend=extend) line.new(start_n,start_y,end_n,math.round(get_fib*start_y+(1-get_fib)*end_y), color=array.get(fib_col,i),extend=extend) if mode == 'Timezone' line.new(start + (end-start)*sum,high,start + (end-start)*sum,low,xloc.bar_time,extend=extend.both,color=array.get(fib_col,i)) sum := a + b a := b b := sum
IDEAL BB with MA (With Alerts)
https://www.tradingview.com/script/GL9WwKMO-IDEAL-BB-with-MA-With-Alerts/
rautadarsh123
https://www.tradingview.com/u/rautadarsh123/
6,365
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Adarsh //@version=4 // Moving Average 3.0 (3rd Generation) script may be freely distributed under the MIT license. Copyright (c) 2018-present, Alex Orekhov (everget) study("IDEAL BB with MA (With Alerts) by Adarsh", overlay=true) length1 = input(title="1st Length", type=input.integer, minval=1, defval=120) length2 = input(title="2nd Length", type=input.integer, minval=1, defval=12) maInput = input(title="MA Type", defval="EMA", options=["EMA", "SMA", "VWMA", "WMA"]) src = input(title="Source", type=input.source, defval=hl2) getMA(src, length) => ma = 0.0 if maInput == "EMA" ma := ema(src, length) if maInput == "SMA" ma := sma(src, length) if maInput == "VWMA" ma := vwma(src, length) if maInput == "WMA" ma := wma(src, length) ma getNMA(src, length1, length2) => lambda = length1 / length2 alpha = lambda * (length1 - 1) / (length1 - lambda) ma1 = getMA(src, length1) ma2 = getMA(ma1, length2) nma = (1 + alpha) * ma1 - alpha * ma2 nma = getNMA(src, length1, length2) //emaLength = input(90, minval=1, title="EMA Length") //emaSource = input(close, title="EMA Source") //ema = ema(emaSource, emaLength) plot(nma, title="NMA Black Line", linewidth=2, style=plot.style_stepline, color=color.black, transp=0) //plot(ema, title="EMA", linewidth=1, color=color.red, transp=0) //VWAP BANDS lenvwap = input(1, minval=1, title="VWAP Length") src1a = input(close, title="VWAP Source") offsetvwap = input(title="VWAP Offset", type=input.integer, defval=0, minval=-500, maxval=500) srcvwap = hlc3 vvwap = vwap(srcvwap) line1 = sma(src1a, lenvwap) plot(vvwap, color=#e91e63, linewidth=2, style=plot.style_line, title="VWAP MIDDLE") // Boll Bands emaSource = close emaPeriod = 20 devMultiple = 2 baseline = sma(emaSource, emaPeriod) plot(baseline, title = "BB Red Line", color = color.red) stdDeviation = devMultiple * (stdev(emaSource, emaPeriod)) upperBand = (baseline + stdDeviation) lowerBand = (baseline - stdDeviation) p1 = plot(upperBand, title = "BB Top", color = color.blue) p2 = plot(lowerBand, title = "BB Bottom", color = #311b92) fill(p1, p2, color = color.blue) //HULL TREND WITH KAHLMAN srchull = input(hl2, "Price Data") lengthhull = input(24, "Lookback") showcross = input(true, "Show cross over/under") gain = input(10000, "Gain") k = input(true, "Use Kahlman") hma(_srchull, _lengthhull) => wma((2 * wma(_srchull, _lengthhull / 2)) - wma(_srchull, _lengthhull), round(sqrt(_lengthhull))) hma3(_srchull, _lengthhull) => p = lengthhull/2 wma(wma(close,p/3)*3 - wma(close,p/2) - wma(close,p),p) kahlman(x, g) => kf = 0.0 dk = x - nz(kf[1], x) smooth = nz(kf[1],x)+dk*sqrt((g/10000)*2) velo = 0.0 velo := nz(velo[1],0) + ((g/10000)*dk) kf := smooth+velo a = k ? kahlman(hma(srchull, lengthhull), gain) : hma(srchull, lengthhull) b = k ? kahlman(hma3(srchull, lengthhull), gain) : hma3(srchull, lengthhull) c = b > a ? color.lime : color.red crossdn = a > b and a[1] < b[1] crossup = b > a and b[1] < a[1] p1hma = plot(a,color=c,linewidth=1,transp=75, title="Long Plot") p2hma = plot(b,color=c,linewidth=1,transp=75, title="Short Plot") fill(p1hma,p2hma,color=c,transp=55,title="Fill") plotshape(showcross and crossdn ? a : na, location=location.abovebar, style=shape.labeldown, color=color.red, size=size.tiny, text="Sell", textcolor=color.white, transp=0, offset=-1) plotshape(showcross and crossup ? a : na, location=location.belowbar, style=shape.labelup, color=color.green, size=size.tiny, text="Buy", textcolor=color.white, transp=0, offset=-1) //ALERTS alertcondition(crossup, title='Buy', message='Go Long') alertcondition(crossdn, title='Sell', message='Go Short')
Accumulation & Distribution
https://www.tradingview.com/script/oqQBUEJW-Accumulation-Distribution/
Sekiyo
https://www.tradingview.com/u/Sekiyo/
29
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Sekiyo //@version=5 indicator("Accumulation & Distribution", overlay=true) // INPUTs fbs = input(true, "Filter by Sma") // Filter by Sma len = input(10, "Sma Length") // Sma Length thr = input(2, "Thresold") // Thresold // MAs ma = ta.sma(close, len) // Simple Moving Average Price //Vma = ta.sma(volume, len) // Simple Moving Average Volume // Moving Average sumOfVolumes = 0.0 for offset = 0 to len - 1 sumOfVolumes := sumOfVolumes + nz(volume[offset]) Vma = sumOfVolumes / len // VARIABLEs float accumulation = na // float distribution = na // float sma = fbs ? ma : 0 // Sma Value // MAIN // Display Accumulation accumulation := if (close > close[1] and volume > volume[1]) if (fbs == true) (close > sma) ? low[1] : na else if (fbs == false) low[1] // Display Distribution distribution := if (close < close[1] and volume > volume[1]) if (fbs == true) (close < sma) ? high[1] : na else if (fbs == false) high[1] // COLORs Pup = volume > Vma * thr ? color.new(color.blue, 10) : volume > Vma ? color.new(color.blue, 40) : color.new(color.blue, 70) // Palette Up Pdo = volume > Vma * thr ? color.new(color.fuchsia, 10) : volume > Vma ? color.new(color.fuchsia, 40) : color.new(color.fuchsia, 70) // Palette Down // PLOTs plotshape(accumulation, title="Accumulation", style=shape.triangleup, location=location.belowbar, color=Pup, size=size.auto) plotshape(distribution, title="Distribution", style=shape.triangledown, location=location.abovebar, color=Pdo, size=size.auto)
Angle Baby from Juiida
https://www.tradingview.com/script/E8l8hfYy-Angle-Baby-from-Juiida/
juiida
https://www.tradingview.com/u/juiida/
103
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © juiida //@version=5 indicator('Angle Baby', overlay=true, max_bars_back=5000) calcDegree(src, period) => rad2degree = 180 / 3.14159265359 ang = rad2degree * math.atan((src[0] - src[period]) / period) src = input(hlc3, title='Source') enable_kalman_filter = input.string('ON', title='Filter', options=['ON', 'OFF']) period1 = input.int(30, 'Slow EMA Period ', minval=1) period2 = input.int(9, 'Fast EMA Period ', minval=1) ma1 = ta.ema(src, period1) ma2 = ta.ema(src, period2) plot(ma1, 'SLOW EMA', color=color.new(color.orange, 0), linewidth=2) plot(ma2, 'FAST EMA', color=color.new(color.aqua, 0), linewidth=2) count = ta.barssince(ta.crossunder(ma1, ma2)) count1 = ta.barssince(ta.crossover(ma1, ma2)) i_anglePriceSrc = input.source(high, title='Bull Angle Source', group='angles setting') i_anglePriceSrc1 = input.source(low, title='Bear Angle Source', group='angles setting') i_anglePeriod = count i_anglePeriod1 = count1 angle = calcDegree(i_anglePriceSrc, i_anglePeriod) angle1 = calcDegree(i_anglePriceSrc1, i_anglePeriod1) label juiida1 = label.new(time, close, text='        ✍️ Angle Dashboard ✍️' + '\n━━━━━━━━━━━━━━━' + '\n   🟢 Bullish Angle 🟢' + '\n━━━━━━━━━━━━━━━' + '\n    From Crossunder       | ' + str.tostring(angle, '##.##') +'\n━━━━━━━━━━━━━━━' + '\n    🔴 Bear Angle   🔴' +'\n━━━━━━━━━━━━━━━' +'\n    From Crossover       | '+ str.tostring(angle1, '##.##') +'\n━━━━━━━━━━━━━━━' +'\n From, -JuiiDa 🔥', color=color.black, xloc=xloc.bar_time, style=label.style_label_left, textcolor=color.white, textalign=text.align_left) label.set_x(juiida1, label.get_x(juiida1) + math.round(ta.change(time) * 14)) label.delete(juiida1[1]) line l = na line.delete(l[1]) l := line.new(bar_index[i_anglePeriod], i_anglePriceSrc[i_anglePeriod], bar_index, i_anglePriceSrc, color=color.lime) line l1 = na line.delete(l1[1]) l1 := line.new(bar_index[i_anglePeriod1], i_anglePriceSrc1[i_anglePeriod1], bar_index, i_anglePriceSrc1, color=color.red)
GREEN MILE by Onur
https://www.tradingview.com/script/Wi4pYBmY-GREEN-MILE-by-Onur/
SenatorVonShaft
https://www.tradingview.com/u/SenatorVonShaft/
21
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © onurenginogutcu //@version=4 study("GREEN MILE by Onur " , overlay = true) i = input(title="Periyot", type=input.integer, defval=1500, minval=10, maxval=1500) up = highest (high , i) down = lowest (low , i) up1 = down + ((up - down) * 0.382) up2 = down + ((up - down) * 0.236) a = plot(up1 , color = color.new(color.green,0) ) b = plot(up2 , color = color.new(color.green,0) ) c = plot(down , color = color.new(color.green, 0) ) fill(a, b, color = color.new(color.green,90)) fill(b, c, color = color.new(color.green,65))
Anchored VWAPs + Deviations
https://www.tradingview.com/script/rZGCDJs0-Anchored-VWAPs-Deviations/
Jmorgado89
https://www.tradingview.com/u/Jmorgado89/
112
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Jmorgado89 //Doctor's Den - The Castle //@version=5 indicator(title="Anchored VWAPs + Deviations", shorttitle="AVWAP[J1]", overlay=true) gpvwap1 = "Anchored Vwap" ggextravwap1 = "Extra AVWAPs" ggavwapdevs = "Deviations" avwapon = input(true, "#1", group=gpvwap1, inline="1") startcalcdateavwap = input.time(timestamp("21 Oct 2021 03:45"), "", confirm=false, group=gpvwap1, inline="1") avwpsrc = input(hlc3, title='Src1', group=gpvwap1, inline="1") avwapon2 = input(true, "#2", group=gpvwap1, inline="2") startcalcdateavwap2 = input.time(timestamp("29 Oct 2021 07:45"), "", confirm=false, group=gpvwap1, inline="2") avwapsrc2 = input(hlc3, title='Src2', group=gpvwap1, inline="2") avwapon3 = input(true, "#3", group=gpvwap1, inline="3") startcalcdateavwap3 = input.time(timestamp("23 Jun 2021 01:00"), "", confirm=false, group=gpvwap1, inline="3") avwapsrc3 = input(hlc3, title='Src3', group=gpvwap1, inline="3") avwapon4 = input(true, "#4", group=gpvwap1, inline="4") startcalcdateavwap4 = input.time(timestamp("14 Apr 2021 18:00"), "", confirm=false, group=gpvwap1, inline="4") avwapsrc4 = input(hlc3, title='Src4', group=gpvwap1, inline="4") avwapon5 = input(true, "#5", group=gpvwap1, inline="5") startcalcdateavwap5 = input.time(timestamp("02 Aug 2020 13:00"), "", confirm=false, group=gpvwap1, inline="5") avwapsrc5 = input(hlc3, title='Src5', group=gpvwap1, inline="5") avwapon6 = input(true, "#6", group=gpvwap1, inline="6") startcalcdateavwap6 = input.time(timestamp("13 Mar 2020 12:00"), "", confirm=false, group=gpvwap1, inline="6") avwapsrc6 = input(hlc3, title='Src6', group=gpvwap1, inline="6") //DEVIATIONS DeviationsONOFF = input(false, "ON/OFF", group=ggavwapdevs, inline="5") AVW1on = input(true, title="1", group=ggavwapdevs, inline="5") AVW2on = input(true, title="2", group=ggavwapdevs, inline="5") AVW3on = input(true, title="3", group=ggavwapdevs, inline="5") AVW4on = input(true, title="4", group=ggavwapdevs, inline="5") SelectAVWAPdev = input.string(defval="#1", title="Deviation for:", options=["#1", "#2", "#3", "#4", "#5", "#6"], group=ggavwapdevs, inline="5") mirrorOn = input(true, title="Mirror ratio", group=ggavwapdevs, inline="5", tooltip="Mirror on = Up and Down deviation ratios are equal(First line of ratios)") AVW1 = input(0.66, title="1", group=ggavwapdevs, inline="6") AVW2 = input(1.66, title="2", group=ggavwapdevs, inline="6") AVW3 = input(2.66, title="3", group=ggavwapdevs, inline="6") AVW4 = input(3.66, title="4", group=ggavwapdevs, inline="6") AVW5a = input(1.500, title="1", group=ggavwapdevs, inline="7") AVW6b = input(1.900, title="2", group=ggavwapdevs, inline="7") AVW7c = input(2.7500, title="3", group=ggavwapdevs, inline="7") AVW8d = input(3.700, title="4", group=ggavwapdevs, inline="7") // // Formulas { avwap2ndformula = true//input(true, "Use 2nd formula?", group=gpvwap1, inline="3") f_emaxavwap(_src, _len) => _alpha = 2 / (_len + 1) _ema = 0.0 _ema := _src * _alpha + nz(_ema[1]) * (1 - _alpha) _ema f_vwapdeviations(_newint, _src, _vol) => _count = 0 _count := _newint ? 1 : _count[1] + 1 _vwap = f_emaxavwap(_src * _vol, _count) / f_emaxavwap(_vol, _count) _pd = math.abs(_src - _vwap) _a = 2 / (_count + 1) _dev = 0.0 _dev := _newint ? 0.0 : _pd * _a + nz(_dev[1]) * (1 - _a) [_vwap, _dev] // FORMULA 2 //1 before_time_range = time < startcalcdateavwap start_time_range = time >= startcalcdateavwap and time[1] < startcalcdateavwap sumSrc = avwpsrc * volume sumVol = volume sumSrc := start_time_range ? sumSrc : sumSrc + sumSrc[1] sumVol := start_time_range ? sumVol : sumVol + sumVol[1] avwap2nd = sumSrc / sumVol //2 t2 = time < startcalcdateavwap2 start2 = time >= startcalcdateavwap2 and time[1] < startcalcdateavwap2 sumavwapsrc2 = avwapsrc2 * volume sumVol2 = volume sumavwapsrc2 := start2 ? sumavwapsrc2 : sumavwapsrc2 + sumavwapsrc2[1] sumVol2 := start2 ? sumVol2 : sumVol2 + sumVol2[1] avwap2nd2 = sumavwapsrc2 / sumVol2 //3 t3 = time < startcalcdateavwap3 start3 = time >= startcalcdateavwap3 and time[1] < startcalcdateavwap3 sumavwapsrc3 = avwapsrc3 * volume sumVol3 = volume sumavwapsrc3 := start3 ? sumavwapsrc3 : sumavwapsrc3 + sumavwapsrc3[1] sumVol3 := start3 ? sumVol3 : sumVol3 + sumVol3[1] avwap2nd3 = sumavwapsrc3 / sumVol3 //4 t4 = time < startcalcdateavwap4 start4 = time >= startcalcdateavwap4 and time[1] < startcalcdateavwap4 sumavwapsrc4 = avwapsrc4 * volume sumVol4 = volume sumavwapsrc4 := start4 ? sumavwapsrc4 : sumavwapsrc4 + sumavwapsrc4[1] sumVol4 := start4 ? sumVol4 : sumVol4 + sumVol4[1] avwap2nd4 = sumavwapsrc4 / sumVol4 //5 t5 = time < startcalcdateavwap5 start5 = time >= startcalcdateavwap5 and time[1] < startcalcdateavwap5 sumavwapsrc5 = avwapsrc5 * volume sumVol5 = volume sumavwapsrc5 := start5 ? sumavwapsrc5 : sumavwapsrc5 + sumavwapsrc5[1] sumVol5 := start5 ? sumVol5 : sumVol5 + sumVol5[1] avwap2nd5 = sumavwapsrc5 / sumVol5 //6 t6 = time < startcalcdateavwap6 start6 = time >= startcalcdateavwap6 and time[1] < startcalcdateavwap6 sumavwapsrc6 = avwapsrc6 * volume sumVol6 = volume sumavwapsrc6 := start6 ? sumavwapsrc6 : sumavwapsrc6 + sumavwapsrc6[1] sumVol6 := start6 ? sumVol6 : sumVol6 + sumVol6[1] avwap2nd6 = sumavwapsrc6 / sumVol6 // } // whichstarttime = SelectAVWAPdev == "#1" ? start_time_range : SelectAVWAPdev == "#2" ? start2 : SelectAVWAPdev == "#3" ? start3 : SelectAVWAPdev == "#4" ? start4 : SelectAVWAPdev == "#5" ? start5 : SelectAVWAPdev == "#6" ? start6 :start_time_range [avwap, sddev] = f_vwapdeviations(whichstarttime, avwpsrc, volume) whichAVWAP = SelectAVWAPdev == "#1" ? avwap2nd : SelectAVWAPdev == "#2" ? avwap2nd2 : SelectAVWAPdev == "#3" ? avwap2nd3 : SelectAVWAPdev == "#4" ? avwap2nd4 : SelectAVWAPdev == "#5" ? avwap2nd5 : SelectAVWAPdev == "#6" ? avwap2nd6 : avwap2nd formulaswitch = whichAVWAP aavwsdev1_pos = formulaswitch + sddev * AVW1 aavwsdev1_neg = mirrorOn ? formulaswitch - sddev * AVW1 : formulaswitch - sddev * AVW5a aavwsdev2_pos = formulaswitch + sddev * AVW2 aavwsdev2_neg = mirrorOn ? formulaswitch - sddev * AVW2 : formulaswitch - sddev * AVW6b aavwsdev3_pos = formulaswitch + sddev * AVW3 aavwsdev3_neg = mirrorOn ? formulaswitch - sddev * AVW3 : formulaswitch - sddev * AVW7c aavwsdev4_pos = formulaswitch + sddev * AVW4 aavwsdev4_neg = mirrorOn ? formulaswitch - sddev * AVW4 : formulaswitch - sddev * AVW8d // Plot shit { plot(AVW4on and DeviationsONOFF ? aavwsdev4_pos : na, color=color.new(#1677C5, 30)) plot(AVW3on and DeviationsONOFF ? aavwsdev3_pos : na, color=color.new(#3DBDFF, 30)) plot(AVW2on and DeviationsONOFF ? aavwsdev2_pos : na, color=color.new(#64EEFA, 30)) plot(AVW1on and DeviationsONOFF ? aavwsdev1_pos : na, color=color.new(#A4FFEC, 30)) plot(avwapon ? avwap2nd : na, "AVWAP1", color=color.green, linewidth=2) plot(avwapon2 ? avwap2nd2 : na, title='AVWAP2', color=color.blue, linewidth=2) plot(avwapon3 ? avwap2nd3 : na, title='AVWAP3', color=color.yellow, linewidth=2) plot(avwapon4 ? avwap2nd4 : na, title='AVWAP4', color=color.red, linewidth=2) plot(avwapon5 ? avwap2nd5 : na, title='AVWAP5', color=color.fuchsia, linewidth=2) plot(avwapon6 ? avwap2nd6 : na, title='AVWAP6', color=color.purple, linewidth=2) plot(AVW1on and DeviationsONOFF ? aavwsdev1_neg : na, color=color.new(#A4FFEC, 30)) plot(AVW2on and DeviationsONOFF ? aavwsdev2_neg : na, color=color.new(#64EEFA, 30)) plot(AVW3on and DeviationsONOFF ? aavwsdev3_neg : na, color=color.new(#3DBDFF, 30)) plot(AVW4on and DeviationsONOFF ? aavwsdev4_neg : na, color=color.new(#1677C5, 30)) /// }
Pump_Detection_price_and_volume_15m
https://www.tradingview.com/script/l8EmDThP-Pump-Detection-price-and-volume-15m/
TMOUM
https://www.tradingview.com/u/TMOUM/
168
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © TMOUM //@version=4 // Inpired from Pump_Doctor of LARP_capital : //Drop me a line if you decide to use this code in any of your scripts. Enjoy :D study("Pump_Doctor_price", shorttitle="Pump_detection") lookback = input(14) pump_limit = input(1000) lookback_period = input(48, title="Give value in hours") ebc=input(false, title="Enable bar colors") cumulativeup = 0.0 countup = 0 cumulativedown = 0.0 countdown = 0 price = high - low // designed for 15m timeframe weekly_average_price = sma(price, 499) weekly_average_volume = sma(volume, 499) for i=0 to lookback-1 if close[i] > open[i] cumulativeup := cumulativeup + volume[i] * price[i] countup := countup + 1 else cumulativedown := cumulativedown + volume[i] * price[i] countdown := countdown + 1 averagevolumeup = (cumulativeup / countup) averagevolumedown = -(cumulativedown / countdown) sigup = (averagevolumeup) <= volume and close > open sigdown = (averagevolumedown) >= -volume and close < open regup = averagevolumeup >= volume and close > open regdown = averagevolumedown <= -volume and close < open volplot = close > open ? volume : close < open ? -volume : na volcolor = sigup ? color.lime : sigdown ? #FF0000 : regup ? color.green : regdown ? #990000 : na flow_price = cumulativeup - cumulativedown flow_price_normalized = flow_price / (weekly_average_volume * weekly_average_price) flowcolor = flow_price > 0 ? color.lime : flow_price <=0 ? color.red : na duration_lookback = lookback_period * 4 max_flow_price_normalized = highest(flow_price_normalized, duration_lookback) pumpsignal = (max_flow_price_normalized > pump_limit and close > 1.1 * weekly_average_price) max_flow_price_color = pumpsignal ? color.red : color.lime purgatory = (flow_price > 0 and flow_price[1] > 0) and sigdown purgatory1 = (flow_price < 0 and flow_price[1] < 0) and sigup barc = ebc ? ((flow_price > 0 and not sigdown) ? color.lime : (flow_price < 0 and not sigup) ? color.red : purgatory ? color.silver : purgatory1 ? color.silver : color.silver) : na plot(flow_price_normalized, color=volcolor, style= plot.style_histogram, linewidth=1) plot(flow_price_normalized, color=flowcolor, linewidth=2) plot(max_flow_price_normalized, color=max_flow_price_color, linewidth=2) barcolor(barc) plot(close)
Higher order Orderblocks + Breakerblocks + Range + Alerts
https://www.tradingview.com/script/zSDlR0YP-Higher-order-Orderblocks-Breakerblocks-Range-Alerts/
pmk07
https://www.tradingview.com/u/pmk07/
5,497
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © pmk07 // // Acknowledgements/Reference: // // @rumpypumpydumpy - Higher Order Pivots // https://www.tradingview.com/v/x2LlRvBe/ // // @MarkMiddleton2020 - Order Blocks // https://www.tradingview.com/v/GecN34Qq/ // //@version=5 indicator(title='Order Blocks', overlay=true) bool pv2_sv = input.bool (true, title='Plot 2nd order pivots') bool msb_sv = input.bool (true, title='Plot MSB lines') bool box_sv = input.bool (true, title='Plot Orderblocks') bool m_sv = input.bool (true, title='Plot Breakerblocks') bool range_sv = input.bool (true, title='Plot Range') bool range_eq_sv = input.bool (true, title='Plot Range 0.5 Line') bool range_q_sv = input.bool (true, title='Plot Range 0.25 and 0.75 Lines') bool log_sv = input.bool (true, title='Use Log Scale') bool msb_a_sv = input.bool (true, title='Alert MSB') bool ob_a_sv = input.bool (true, title='Alert Orderblock test') bool bb_a_sv = input.bool (true, title='Alert Breakerblock test') bool r_a_sv = input.bool (true, title='Alert New Range') bool rt_a_sv = input.bool (true, title='Alert Range test') color u_s = input.color (color.rgb(192, 192, 192, 80), title='Untested Supply Color') color t_s = input.color (color.rgb(255, 0, 0, 80), title='Tested Supply Color') color u_d = input.color (color.rgb(192, 192, 192, 80), title='Untested Demand Color') color t_d = input.color (color.rgb(0, 255, 0, 80), title='Tested Demand Color') color u_b = input.color (color.rgb(192, 192, 192, 80), title='Untested Breaker Color') color t_b = input.color (color.new(color.blue, 80), title='Tested Breaker Color') var float[] pvh1_price = array.new_float (30, na) // high var int[] pvh1_time = array.new_int (30, na) var float[] pvl1_price = array.new_float (30, na) // low var int[] pvl1_time = array.new_int (30, na) var float[] pvh2_price = array.new_float (10, na) // higher high var int[] pvh2_time = array.new_int (10, na) var float[] pvl2_price = array.new_float (10, na) // lower low var int[] pvl2_time = array.new_int (10, na) var float htcmrll_price = na // high that created most recent ll var int htcmrll_time = na var float ltcmrhh_price = na // low that created most recent hh var int ltcmrhh_time = na var box[] long_boxes = array.new_box() // orderblocks var box[] short_boxes = array.new_box() var box[] m_long_boxes = array.new_box() // breakerblocks var box[] m_short_boxes = array.new_box() var line[] bull_bos_lines = array.new_line() // MSB lines var line[] bear_bos_lines = array.new_line() var line[] range_h_lines = array.new_line() // Range lines var line[] range_25_lines = array.new_line() var line[] range_m_lines = array.new_line() var line[] range_75_lines = array.new_line() var line[] range_l_lines = array.new_line() var label[] la_ph2 = array.new_label() // 2nd order pivots var label[] la_pl2 = array.new_label() var float temp_pv_0 = na var float temp_pv_1 = na var float temp_pv_2 = na var int temp_time = na var float last_range_h = na var float last_range_l = na var line range_m = na var line range_25 = na var line range_75 = na var float box_top = na var float box_bottom = na var int h_a_time = 0 var int l_a_time = 0 var int mh_a_time = 0 var int ml_a_time = 0 var int rh_a_time = 0 var int rl_a_time = 0 bool pvh = high < high[1] and high[1] > high[2] bool pvl = low > low[1] and low[1] < low[2] int pv1_time = bar_index[1] float pv1_high = high[1] float pv1_low = low[1] bool new_ph_2nd = false bool new_pl_2nd = false string alert = na if barstate.isconfirmed if pvh array.pop(pvh1_price) array.pop(pvh1_time) array.unshift(pvh1_price, pv1_high) array.unshift(pvh1_time, pv1_time) if array.size(pvh1_price) > 2 temp_pv_0 := array.get(pvh1_price, 0) temp_pv_1 := array.get(pvh1_price, 1) temp_pv_2 := array.get(pvh1_price, 2) if temp_pv_0 < temp_pv_1 and temp_pv_1 > temp_pv_2 array.pop(pvh2_price) array.pop(pvh2_time) array.unshift(pvh2_price, temp_pv_1) array.unshift(pvh2_time, array.get(pvh1_time, 1)) new_ph_2nd := true if temp_pv_1 > array.get(pvh2_price, 1) for i = 0 to array.size(pvl2_time) - 1 by 1 temp_ltcmrhh_time = array.get(pvl2_time, i) if temp_ltcmrhh_time < array.get(pvh2_time, 0) ltcmrhh_price := array.get(pvl2_price, i) ltcmrhh_time := temp_ltcmrhh_time break if temp_pv_0 < ltcmrhh_price if msb_sv array.push(bear_bos_lines, line.new(x1=ltcmrhh_time, y1=ltcmrhh_price, x2=bar_index, y2=ltcmrhh_price, color=color.green, width=2)) box_top := array.get(pvh2_price, 0) box_bottom := math.max(low[bar_index - array.get(pvh2_time, 0)], low[bar_index - array.get(pvh2_time, 0) + 1]) array.push(short_boxes, box.new(left=array.get(pvh2_time, 0), top=box_top, right=bar_index, bottom=box_bottom, bgcolor= box_sv ? u_s : na , border_color=na, extend=extend.right)) if msb_a_sv alert := alert + 'Bearish MSB @ ' + str.tostring(ltcmrhh_price) + '\n' + 'New Supply Zone : '+ str.tostring(box_top) + ' - ' + str.tostring(box_bottom) + '\n' ltcmrhh_price := na if pvl array.pop(pvl1_price) array.pop(pvl1_time) array.unshift(pvl1_price, pv1_low) array.unshift(pvl1_time, pv1_time) if array.size(pvl1_price) > 2 temp_pv_0 := array.get(pvl1_price, 0) temp_pv_1 := array.get(pvl1_price, 1) temp_pv_2 := array.get(pvl1_price, 2) if temp_pv_0 > temp_pv_1 and temp_pv_1 < temp_pv_2 array.pop(pvl2_price) array.pop(pvl2_time) array.unshift(pvl2_price, temp_pv_1) array.unshift(pvl2_time, array.get(pvl1_time, 1)) new_pl_2nd := true if temp_pv_1 < array.get(pvl2_price, 1) for i = 0 to array.size(pvh2_time) - 1 by 1 temp_htcmrll_time = array.get(pvh2_time, i) if temp_htcmrll_time < array.get(pvl2_time, 0) htcmrll_price := array.get(pvh2_price, i) htcmrll_time := temp_htcmrll_time break if temp_pv_0 > htcmrll_price if msb_sv array.push(bull_bos_lines, line.new(x1=htcmrll_time, y1=htcmrll_price, x2=bar_index, y2=htcmrll_price, color=color.red, width=2)) box_top := math.min(high[bar_index - array.get(pvl2_time, 0)], high[bar_index - array.get(pvl2_time, 0) + 1]) box_bottom := array.get(pvl2_price, 0) array.push(long_boxes, box.new(left=array.get(pvl2_time, 0), top=box_top, right=bar_index, bottom=box_bottom, bgcolor= box_sv ? u_d : na, border_color=na, extend=extend.right)) if msb_a_sv alert := alert + 'Bullish MSB @ ' + str.tostring(htcmrll_price) + '\n' + 'New Demand Zone : '+ str.tostring(box_bottom) + ' - ' + str.tostring(box_top) + '\n' htcmrll_price := na if array.size(short_boxes) > 0 for i = array.size(short_boxes) - 1 to 0 by 1 tbox = array.get(short_boxes, i) top = box.get_top(tbox) bottom = box.get_bottom(tbox) ago = box.get_left(tbox) if array.get(pvh1_price, 0) > bottom if box_sv box.set_bgcolor(tbox, t_s) if ob_a_sv and close < bottom if array.get(pvh1_time, 0) != h_a_time h_a_time := array.get(pvh1_time, 0) alert := alert + 'Supply Zone Test @ ' + str.tostring(array.get(pvh1_price, 0)) + ' (age = ' + str.tostring(bar_index-ago) + ' bars) \n' if array.get(pvl1_price, 0) > top if m_sv box.set_bgcolor(tbox, u_b) array.push(m_long_boxes, tbox) else box.delete(tbox) array.remove(short_boxes, i) if msb_sv line.delete(array.get(bear_bos_lines, i)) array.remove(bear_bos_lines, i) if array.size(long_boxes) > 0 for i = array.size(long_boxes) - 1 to 0 by 1 lbox = array.get(long_boxes, i) top = box.get_top(lbox) bottom = box.get_bottom(lbox) ago = box.get_left(lbox) if array.get(pvl1_price, 0) < top if box_sv box.set_bgcolor(lbox, t_d) if ob_a_sv and close > top if array.get(pvl1_time, 0) != l_a_time l_a_time := array.get(pvl1_time, 0) alert := alert + 'Demand Zone Test @ ' + str.tostring(array.get(pvl1_price, 0)) + ' (age = ' + str.tostring(bar_index-ago) + ' bars) \n' if array.get(pvh1_price, 0) < bottom if m_sv box.set_bgcolor(lbox, u_b) array.push(m_short_boxes, lbox) else box.delete(lbox) array.remove(long_boxes, i) if msb_sv line.delete(array.get(bull_bos_lines, i)) array.remove(bull_bos_lines, i) if array.size(m_short_boxes) > 0 for i = array.size(m_short_boxes) - 1 to 0 by 1 tbox = array.get(m_short_boxes, i) top = box.get_top(tbox) bottom = box.get_bottom(tbox) ago = box.get_left(tbox) if array.get(pvh1_price, 0) > bottom box.set_bgcolor(tbox, t_b) if bb_a_sv and close < bottom if array.get(pvh1_time, 0) != mh_a_time mh_a_time := array.get(pvh1_time, 0) alert := alert + 'Breakerblock Test Up @ ' + str.tostring(array.get(pvh1_price, 0)) + ' (age = ' + str.tostring(bar_index-ago) + ' bars) \n' if array.get(pvl1_price, 0) > top box.delete(tbox) array.remove(m_short_boxes, i) if array.size(m_long_boxes) > 0 for i = array.size(m_long_boxes) - 1 to 0 by 1 lbox = array.get(m_long_boxes, i) top = box.get_top(lbox) bottom = box.get_bottom(lbox) ago = box.get_left(lbox) if array.get(pvl1_price, 0) < top box.set_bgcolor(lbox, t_b) if bb_a_sv and close > top if array.get(pvl1_time, 0) != ml_a_time ml_a_time := array.get(pvl1_time, 0) alert := alert + 'Breakerblock Test Down @ ' + str.tostring(array.get(pvl1_price, 0)) + ' (age = ' + str.tostring(bar_index-ago) + ' bars) \n' if array.get(pvh1_price, 0) < bottom box.delete(lbox) array.remove(m_long_boxes, i) if range_sv and (new_ph_2nd or new_pl_2nd) and (array.get(pvh2_price, 0) < array.get(pvh2_price, 1) and array.get(pvl2_price, 0) > array.get(pvl2_price, 1) and array.get(pvh2_price, 0) > array.get(pvl2_price, 1) and array.get(pvl2_price, 0) < array.get(pvh2_price, 1)) and (array.get(pvl2_price, 1) > nz(last_range_h) or na(last_range_l)? true : (array.get(pvh2_price, 1) < last_range_l)) temp_time := math.min(array.get(pvh2_time, 1), array.get(pvl2_time, 1)) last_range_h := array.get(pvh2_price, 1) last_range_l := array.get(pvl2_price, 1) temp_pv_0 := log_sv ? math.exp((math.log(last_range_h) + math.log(last_range_l))/2) : (last_range_h + last_range_l)/2 temp_pv_1 := log_sv ? math.exp((math.log(last_range_h) + math.log(temp_pv_0))/2) : (last_range_h + temp_pv_0)/2 temp_pv_2 := log_sv ? math.exp((math.log(last_range_l) + math.log(temp_pv_0))/2) : (last_range_l + temp_pv_0)/2 array.push(range_h_lines, line.new(x1=temp_time, y1=last_range_h, x2=bar_index, y2=last_range_h, color=color.gray, width=1, extend=extend.right)) array.push(range_l_lines, line.new(x1=temp_time, y1=last_range_l, x2=bar_index, y2=last_range_l, color=color.gray, width=1, extend=extend.right)) if range_eq_sv array.push(range_m_lines, line.new(x1=temp_time, y1=temp_pv_0, x2=bar_index, y2=temp_pv_0, color=color.gray, width=1, extend=extend.right)) if range_q_sv array.push(range_25_lines, line.new(x1=temp_time, y1=temp_pv_1, x2=bar_index, y2=temp_pv_1, style=line.style_dashed, color=color.gray, width=1, extend=extend.right)) array.push(range_75_lines, line.new(x1=temp_time, y1=temp_pv_2, x2=bar_index, y2=temp_pv_2, style=line.style_dashed, color=color.gray, width=1, extend=extend.right)) if r_a_sv alert := alert + 'New Range : ' + str.tostring(last_range_h) + ' - ' + str.tostring(last_range_l) + '. Mean = ' + str.tostring(temp_pv_0) + '\n' if array.size(range_h_lines) > 0 for i = array.size(range_h_lines) - 1 to 0 by 1 range_h = array.get(range_h_lines, i) top = line.get_y1(range_h) range_l = array.get(range_l_lines, i) bottom = line.get_y1(range_l) temp_time := line.get_x1(range_h) if array.get(pvh1_price, 0) > top if rt_a_sv and close < top if array.get(pvh1_time, 0) != rh_a_time rh_a_time := array.get(pvh1_time, 0) alert := alert + 'Range High Test @ ' + str.tostring(array.get(pvh1_price, 0)) + ' \n' if array.get(pvl1_price, 0) < bottom if rt_a_sv and close > bottom if array.get(pvl1_time, 0) != rl_a_time rl_a_time := array.get(pvl1_time, 0) alert := alert + 'Range Low Test @ ' + str.tostring(array.get(pvl1_price, 0)) + ' \n' if range_eq_sv range_m := array.get(range_m_lines, i) if range_q_sv range_25 := array.get(range_25_lines, i) range_75 := array.get(range_75_lines, i) if array.get(pvh1_price, 0) < bottom or array.get(pvl1_price, 0) > top line.delete(range_h) array.remove(range_h_lines, i) line.delete(range_l) array.remove(range_l_lines, i) if range_eq_sv line.delete(range_m) array.remove(range_m_lines, i) if range_q_sv line.delete(range_25) array.remove(range_25_lines, i) line.delete(range_75) array.remove(range_75_lines, i) last_range_h := na last_range_l := na if pv2_sv if new_ph_2nd array.push(la_ph2, label.new(x = array.get(pvh2_time, 0), y = array.get(pvh2_price, 0), xloc = xloc.bar_index, style = label.style_label_down, color = #770000FF, size = size.tiny)) if new_pl_2nd array.push(la_pl2, label.new(x = array.get(pvl2_time, 0), y = array.get(pvl2_price, 0), xloc = xloc.bar_index, style = label.style_label_up, color = #007700FF, size = size.tiny)) alert := not na(alert) ? (alert + 'Current price = ' + str.tostring(close) + '\n') : na exec = not na(alert) ? true : false if exec==true alert(alert, alert.freq_once_per_bar_close)
Spread Differential
https://www.tradingview.com/script/QTVpWGTm-Spread-Differential/
arcapma
https://www.tradingview.com/u/arcapma/
49
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © arcapma //@version=5 indicator("Spread Differential") fma=input(title="Fast MA", defval=10) sma=input(title="Slow MA", defval=21) fMA = ta.sma(close, fma) sMA = ta.sma(close, sma) mma = (sMA+fMA)/2 fSpread = fMA-mma sSpread = sMA-mma realSpread = fSpread - sSpread plot(realSpread, style=plot.style_histogram)
Scalping Trading System ALERT Crypto and Stocks
https://www.tradingview.com/script/H6WwNz5O-Scalping-Trading-System-ALERT-Crypto-and-Stocks/
exlux99
https://www.tradingview.com/u/exlux99/
436
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © exlux99 //@version=5 indicator(title="Scalping Trading System Crypto and Stocks Alert", overlay=true) src = input(low, title="Source") //sma and ema len = input.int(25, minval=1, title="Length SMA" , group="Moving Averages") len2 = input.int(200, minval=1, title="Length EMA", group="Moving Averages") out = ta.sma(src, len) out2 = ta.ema(src, len2) //keltner lengthk = input.int(10, minval=1, title="Length Keltner Channel",group="Keltner") mult = input(2.0, "Multiplier",group="Keltner") BandsStyle = input.string("Average True Range", options = ["Average True Range", "True Range", "Range"], title="Bands Style",group="Keltner") atrlength = input(14, "ATR Length",group="Keltner") ma = ta.sma(src, lengthk) rangema = BandsStyle == "True Range" ? ta.tr(true) : BandsStyle == "Average True Range" ? ta.atr(atrlength) : ta.rma(high - low, lengthk) upper = ma + rangema * mult lower = ma - rangema * mult //stoch periodK = input.int(10, title="%K Length", minval=1,group="Stochastic") smoothK = input.int(1, title="%K Smoothing", minval=1,group="Stochastic") periodD = input.int(1, title="%D Smoothing", minval=1,group="Stochastic") k = ta.sma(ta.stoch(close, high, low, periodK), smoothK) d = ta.sma(k, periodD) //macd 1 fast_length = input(title="Fast Length MACD", defval=4,group="MACD Fast") slow_length = input(title="Slow Length MACD", defval=34,group="MACD Fast") signal_length = input.int(title="Signal Smoothing MACD", minval = 1, maxval = 50, defval = 5,group="MACD Fast") sma_source = input.string(title="Oscillator MA Type MACD", defval="EMA", options=["SMA", "EMA"],group="MACD Fast") sma_signal = input.string(title="Signal Line MA Type MACD", defval="EMA", options=["SMA", "EMA"],group="MACD Fast") fast_ma = sma_source == "SMA" ? ta.sma(src, fast_length) : ta.ema(src, fast_length) slow_ma = sma_source == "SMA" ? ta.sma(src, slow_length) : ta.ema(src, slow_length) macd = fast_ma - slow_ma signal = sma_signal == "SMA" ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length) hist = macd - signal long= close > out and close < upper and close > lower and hist < 0 and k < 50 and close > out2 short= close < out and close < upper and close > lower and hist > 0 and k > 50 and close < out2 // ------------------------- Strategy Logic --------------------------------- // var longOpeneds = false var shortOpeneds = false var int timeOfBuys = na longConditions = long and not longOpeneds if longConditions longOpeneds := true timeOfBuys := time longExitSignals = short exitLongConditions = longOpeneds[1] and longExitSignals if exitLongConditions longOpeneds := false timeOfBuys := na alertcondition(condition=longConditions, title="Long", message='Long') alertcondition(condition=exitLongConditions, title="Short", message='Short') plotshape(longConditions, style=shape.labelup, location=location.belowbar, color=color.green, size=size.tiny, title="Long", text="Long", textcolor=color.white) plotshape(exitLongConditions , style=shape.labeldown, location=location.abovebar, color=color.red, size=size.tiny, title="Short ", text="Short ", textcolor=color.white)
ICHIMOKU Crypto Swing Alert
https://www.tradingview.com/script/luhgcx8M-ICHIMOKU-Crypto-Swing-Alert/
exlux99
https://www.tradingview.com/u/exlux99/
226
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © exlux99 //@version=5 indicator(title='ICHIMOKU Crypto Swing Alert', overlay=true) // o = open c = close src = close price = close uptrendlength = input(4, title='Uptrend Length') downtrendlength = input(4, title='Downtrend Length') //KDJ// ilong = 9 isig = 3 bcwsma(s, l, m) => _s = s _l = l _m = m _bcwsma = _m * _s + _l - _m _bcwsma h = ta.highest(high, ilong) l = ta.lowest(low, ilong) RSV = 100 * ((c - l) / (h - l)) pK = bcwsma(RSV, isig, 1) pD = bcwsma(pK, isig, 1) pJ = 3 * pK - 2 * pD KD = math.avg(pK, pD) /// --- TREND --- /// avghigh = ta.sma(h, uptrendlength) avglow = ta.sma(l, downtrendlength) uptrend = h > avghigh downtrend = l < avglow //ICHIMOKU BUY & SELL// conversionPeriods = input(9) basePeriods = input(26) laggingSpan2Periods = input(52) displacement = input(26) donchian(len) => math.avg(ta.lowest(len), ta.highest(len)) resolve(src, default) => if na(src) default else src conversionLine = donchian(conversionPeriods) baseLine = donchian(basePeriods) leadLine1 = math.avg(conversionLine, baseLine)[displacement] leadLine2 = donchian(laggingSpan2Periods)[displacement] tk_cross_bull = ta.crossover(conversionLine, baseLine) tk_cross_bear = ta.crossunder(conversionLine, baseLine) cross_y = (conversionLine[1] * (baseLine - baseLine[1]) - baseLine[1] * (conversionLine - conversionLine[1])) / (baseLine - baseLine[1] - (conversionLine - conversionLine[1])) tk_cross_below_kumo = cross_y <= leadLine2[1] and cross_y <= leadLine1[1] and cross_y <= leadLine2 and cross_y <= leadLine1 tk_cross_above_kumo = cross_y >= leadLine2[1] and cross_y >= leadLine1[1] and cross_y >= leadLine2 and cross_y >= leadLine1 tk_cross_inside_kumo = not tk_cross_below_kumo and not tk_cross_above_kumo // //BUY & SELL buycond = (tk_cross_below_kumo or tk_cross_inside_kumo or tk_cross_above_kumo) and ta.rising(pJ[1], 1) and uptrend sellcond = (tk_cross_below_kumo or tk_cross_inside_kumo or tk_cross_above_kumo) and ta.falling(pJ[1], 1) and downtrend fromDay = input.int(defval=1, title='From Day', minval=1, maxval=31) fromMonth = input.int(defval=1, title='From Month', minval=1, maxval=12) fromYear = input.int(defval=2020, title='From Year', minval=1970) //monday and session // To Date Inputs toDay = input.int(defval=31, title='To Day', minval=1, maxval=31) toMonth = input.int(defval=12, title='To Month', minval=1, maxval=12) toYear = input.int(defval=2021, title='To Year', minval=1970) startDate = timestamp(fromYear, fromMonth, fromDay, 00, 00) finishDate = timestamp(toYear, toMonth, toDay, 00, 00) time_cond = time >= startDate and time <= finishDate // ------------------------- Strategy Logic --------------------------------- // var longOpeneds = false var shortOpeneds = false var int timeOfBuys = na longConditions = buycond and not longOpeneds if longConditions longOpeneds := true timeOfBuys := time longExitSignals = sellcond exitLongConditions = longOpeneds[1] and longExitSignals if exitLongConditions longOpeneds := false timeOfBuys := na alertcondition(condition=longConditions, title="Long", message='Long') alertcondition(condition=exitLongConditions, title="Short", message='Short') plotshape(longConditions, style=shape.labelup, location=location.belowbar, color=color.green, size=size.tiny, title="Long", text="Long", textcolor=color.white) plotshape(exitLongConditions , style=shape.labeldown, location=location.abovebar, color=color.red, size=size.tiny, title="Short ", text="Short ", textcolor=color.white)
Regression Curve with Normalized Angle
https://www.tradingview.com/script/go1sfmOQ-Regression-Curve-with-Normalized-Angle/
cmthoman
https://www.tradingview.com/u/cmthoman/
52
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © cmthoman //@version=5 indicator(title="Regression Curve with Trend Correlation") period = input.int(title="Lookback Period", group="Settings", defval=34) src = input.source(title="Source", group="Settings", defval=hlc3, tooltip="Input source for the calculation") high_cor_threshold = input.int(title="Trend Strength Threshold", group="Settings", defval=38, minval=35, maxval=45, tooltip="Defines at what value the correlation angle is considered to reflect a strong trend.\n\nPossible values range from 35 to 45 degrees.\nDefault Value is 38 degrees.") trend_curve_threshold = input.int(title="Trend Direction Threshold", group="Settings", defval=10, minval=1, maxval=35, tooltip="Defines at what value the regression curve reflects a trend direction.\n\nPossible values range from 1 to 35 degrees.\nDefault value is 10 degrees.") curve_color = input.color(title="Regression Curve Color", group="Output Colors", defval=color.new(color.gray, 40)) pearson_bull_color = input.color(title="Bullish Correlation Line Color", group="Output Colors", defval=color.new(color.green, 0)) pearson_bear_color = input.color(title="Bearish Correlation Line Color", group="Output Colors", defval=color.new(color.red, 40)) curve_fill_color = input.color(title="Trend Direction Fill Color", group="Threshold Colors", defval=color.new(color.gray, 90)) bull_threshold_color = input.color(title="Bullish Threshold Color", group="Threshold Colors", defval=color.new(color.green, 65)) bear_threshold_color = input.color(title="Bearish Threshold Color", group="Threshold Colors", defval=color.new(color.red, 65)) bull_fill_color = input.color(title="Bullish Fill Color", group="Threshold Colors", defval=color.new(color.green, 90)) bear_fill_color = input.color(title="Bearish Fill Color", group="Threshold Colors", defval=color.new(color.red, 90)) LinearRegression(period,src) => float sumX = 0 float sumY = 0 float sumXSQ = 0 float sumXY = 0 float sumYSQ = 0 float avgX = 0 float avgY = 0 for i = 0 to period - 1 sumX := sumX + bar_index[i] sumY := sumY + src[i] sumXSQ := sumXSQ + math.pow(bar_index[i],2) sumYSQ := sumYSQ + math.pow(src[i],2) sumXY := sumXY + (bar_index[i] * src[i]) avgX := sumX / period avgY := sumY / period pearson_r = ((period * sumXY ) - sumX * sumY) / math.sqrt( ((period * sumXSQ) - (sumX * sumX)) * ((period * sumYSQ) - (sumY * sumY))) regression_slope = ((period * sumXY - (sumX * sumY)) / (period * sumXSQ - (sumX * sumX))) [regression_slope, pearson_r] [regression_slope, pearson_r] = LinearRegression(period,src) pearson_r_degrees = math.round(math.todegrees(math.atan(pearson_r))) regression_slope_degrees = math.round(math.todegrees(math.atan(regression_slope))) h1 = hline(trend_curve_threshold, title="Long Trend Regression Curve Threshold", color=bull_threshold_color, editable=false) h2 = hline(-1 * trend_curve_threshold, title="Short Trend Regression Curve Threshold", color=bear_threshold_color, editable=false) h3 = hline(-1 * high_cor_threshold, title="Down Trend High Correlation Zone Top", color=bear_threshold_color, editable=false) h4 = hline(-48, title="Down Trend High Correlation Zone Bottom", color=bear_threshold_color, editable=false) h5 = hline(48, title="Up Trend High Correlation Zone Top", color=bull_threshold_color, editable=false) h6 = hline(high_cor_threshold, title="Up Trend High Correlation Zone Bottom", color=bull_threshold_color, editable=false) var color newColor = pearson_bull_color if pearson_r_degrees[1] < high_cor_threshold and pearson_r_degrees[0] >= high_cor_threshold newColor := pearson_bear_color if pearson_r_degrees[1] > -1 * high_cor_threshold and pearson_r_degrees[0] <= -1 * high_cor_threshold newColor := pearson_bull_color p1 = plot(regression_slope_degrees, title="Regression Angle", color=curve_color, linewidth=2, style=plot.style_histogram, editable=true) p2 = plot(pearson_r_degrees, title="Pearson R Angle", color= pearson_r_degrees[1] < high_cor_threshold and pearson_r_degrees[0] >= high_cor_threshold ? pearson_bull_color : pearson_r_degrees[1] >= high_cor_threshold and pearson_r_degrees[0] >= high_cor_threshold ? pearson_bull_color : pearson_r_degrees[1] >= high_cor_threshold and pearson_r_degrees[0] < high_cor_threshold ? pearson_bear_color : pearson_r_degrees[1] > -1 * high_cor_threshold and pearson_r_degrees[0] <= -1 * high_cor_threshold ? pearson_bear_color : pearson_r_degrees[1] <= -1 * high_cor_threshold and pearson_r_degrees[0] <= -1 * high_cor_threshold ? pearson_bear_color : pearson_r_degrees[1] <= -1 * high_cor_threshold and pearson_r_degrees[0] > -1 * high_cor_threshold ? pearson_bull_color : newColor, linewidth=2, editable=true ) fill(title="Trend Deadzone", hline1=h1, hline2=h2, color=curve_fill_color, editable=false) fill(title="Strong Short Correlation Zone", hline1=h3, hline2=h4, color=bear_fill_color, editable=false) fill(title="Strong Long Correlation Zone", hline1=h5, hline2=h6, color=bull_fill_color, editable=false)
Stock vs Index vs Vix (Adjusted)
https://www.tradingview.com/script/On9VwbIe-Stock-vs-Index-vs-Vix-Adjusted/
sp3ed
https://www.tradingview.com/u/sp3ed/
29
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © sp3ed //@version=5 indicator(title="Stock vs Index vs Vix (Adjusted)", shorttitle="SIV", timeframe="", timeframe_gaps=true) length = input.int(34) index = input.symbol('SPY') vix = input.symbol('VIX') s = (hlc3 - ta.lowest(low, length)) / (ta.highest(high, length) - ta.lowest(low, length)) * 100 i = request.security(index, '', s) v = request.security(vix, '', 100 - s) hline(0, linestyle=hline.style_solid, color=color.new(#434651, 0)) hline(33.33, linestyle=hline.style_dotted, color=color.new(#9598a1, 0)) hline(66.67, linestyle=hline.style_dotted, color=color.new(#9598a1, 0)) hline(100, linestyle=hline.style_solid, color=color.new(#434651, 0)) gradient = color.from_gradient(s, 33.33, 66.67, color.new(#e91e63, 0), color.new(#4caf50, 0)) plot(s, color=gradient) plot(i, color=color.new(color.blue, 0), style=plot.style_cross) plot(v, color=color.new(color.red, 0), style=plot.style_cross)
Support and Resistance
https://www.tradingview.com/script/rZkiMzB4-Support-and-Resistance/
Rain5369
https://www.tradingview.com/u/Rain5369/
479
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Rain5369 //@version=5 indicator('Support and Resistance', shorttitle = 'S/R', overlay=true, max_bars_back=1000) display_reversal_price = false display_cumulative_volume = false display_reversal_price_change = false length = input.int(25, 'Length : PC',inline = 'length', group='Basic Settings', tooltip='Pivot length. Use higher values for having lines connected to more significant pivots') lookback = input.int(3, minval=1, title='Lookback : PC', inline = 'lookback', group='Basic Settings', tooltip='Number of lines connecting a pivot high/low to display') Slope = input.float(1, minval=-2, maxval=2, step=0.1,title = 'Deviation : PC' ,inline = 'Slope', group='Basic Settings', tooltip='Allows to multiply the linear regression slope by a number within -2 and 2') extend_to_last_bar = input(title='Extend to Last Bar', group='Line Settings', defval=false) i_extendLines = input(false, 'Extend to current bar', group='Line Settings') extendL2 = input.bool(false, 'Parallel lines Left?', group='Line Settings') var extend2 = extend.right if extendL2 extend2 := extend.both extend2 showpar = input.bool(false, 'Show Parallel Lines',group='Line Settings') //Style ph_col = input.color(color.red, 'High Lines Color', group='Line Colors', inline='col1') pl_col = input.color(color.green, 'Low Lines Color', group='Line Colors', inline='col1') line_color = input(title='zigzag Colour', defval=color.new(color.white,95), group='Line Colors') devTooltip = 'Deviation is a multiplier that affects how much the price should deviate from the previous pivot in order for the bar to become a new pivot.' depthTooltip = 'The minimum number of bars that will be taken into account when calculating the indicator.' // pivots threshold threshold_multiplier = input.float(title=': ZZ', defval=3, minval=0, tooltip=devTooltip,inline = 'Slope', group='Basic Settings') dev_threshold = ta.atr(10) / close * 100 * threshold_multiplier depth = input.int(title=':ZZ', defval=25, minval=1, tooltip=depthTooltip,inline = 'length', group='Basic Settings') pivots(src, length, isHigh) => p = nz(src[length]) if length == 0 [bar_index, p] else isFound = true for i = 0 to length - 1 by 1 if isHigh and src[i] > p isFound := false isFound if not isHigh and src[i] < p isFound := false isFound for i = length + 1 to 2 * length by 1 if isHigh and src[i] >= p isFound := false isFound if not isHigh and src[i] <= p isFound := false isFound if isFound and length * 2 <= bar_index [bar_index[length], p] else [int(na), float(na)] [iH, pH] = pivots(high, math.floor(depth / 2), true) [iL, pL] = pivots(low, math.floor(depth / 2), false) calc_dev(base_price, price) => 100 * (price - base_price) / base_price price_rotation_aggregate(price_rotation, pLast, cum_volume) => str = '' if display_reversal_price str := str + str.tostring(pLast, format.mintick) + ' ' str if display_reversal_price_change str := str + price_rotation + ' ' str if display_cumulative_volume str := str + '\n' + cum_volume str str caption(isHigh, iLast, pLast, price_rotation, cum_volume) => price_rotation_str = price_rotation_aggregate(price_rotation, pLast, cum_volume) if display_reversal_price or display_reversal_price_change or display_cumulative_volume if not isHigh label.new(iLast, pLast, text=price_rotation_str, style=label.style_none, yloc=yloc.belowbar, textcolor=color.red) else label.new(iLast, pLast, text=price_rotation_str, style=label.style_none, yloc=yloc.abovebar, textcolor=color.green) price_rotation_diff(pLast, price) => if display_reversal_price_change tmp_calc = price - pLast str = (math.sign(tmp_calc) > 0 ? '+' : '-') + str.tostring(math.abs(tmp_calc) * 100 / pLast, format.percent) str := '(' + str + ')' str else '' volume_sum(index1, index2) => float CVI = 0 for i = index1 + 1 to index2 by 1 CVI := CVI + volume[bar_index - i] CVI str.tostring(CVI, format.volume) var line lineLast = na var label labelLast = na var int iLast = 0 var float pLast = 0 var bool isHighLast = true // otherwise the last pivot is a low pivot var int linesCount = 0 pivotFound(dev, isHigh, index, price) => if isHighLast == isHigh and not na(lineLast) // same direction if isHighLast ? price > pLast : price < pLast if linesCount <= 1 line.set_xy1(lineLast, index, price) line.set_xy2(lineLast, index, price) label.set_xy(labelLast, index, price) label.set_text(labelLast, price_rotation_aggregate(price_rotation_diff(line.get_y1(lineLast), price), price, volume_sum(line.get_x1(lineLast), index))) [lineLast, labelLast, isHighLast, false] else [line(na), label(na), bool(na), false] else // reverse the direction (or create the very first line) if na(lineLast) id = line.new(index, price, index, price, color=line_color, width=1) lb = caption(isHigh, index, price, price_rotation_diff(pLast, price), volume_sum(index, index)) [id, lb, isHigh, true] else // price move is significant if math.abs(dev) >= dev_threshold id = line.new(iLast, pLast, index, price, color=line_color, width=1) lb = caption(isHigh, index, price, price_rotation_diff(pLast, price), volume_sum(iLast, index)) [id, lb, isHigh, true] else [line(na), label(na), bool(na), false] if not na(iH) and not na(iL) and iH == iL dev1 = calc_dev(pLast, pH) [id2, lb2, isHigh2, isNew2] = pivotFound(dev1, true, iH, pH) if isNew2 linesCount := linesCount + 1 linesCount if not na(id2) lineLast := id2 labelLast := lb2 isHighLast := isHigh2 iLast := iH pLast := pH pLast dev2 = calc_dev(pLast, pL) [id1, lb1, isHigh1, isNew1] = pivotFound(dev2, false, iL, pL) if isNew1 linesCount := linesCount + 1 linesCount if not na(id1) lineLast := id1 labelLast := lb1 isHighLast := isHigh1 iLast := iL pLast := pL pLast else if not na(iH) dev1 = calc_dev(pLast, pH) [id, lb, isHigh, isNew] = pivotFound(dev1, true, iH, pH) if isNew linesCount := linesCount + 1 linesCount if not na(id) lineLast := id labelLast := lb isHighLast := isHigh iLast := iH pLast := pH pLast else if not na(iL) dev2 = calc_dev(pLast, pL) [id, lb, isHigh, isNew] = pivotFound(dev2, false, iL, pL) if isNew linesCount := linesCount + 1 linesCount if not na(id) lineLast := id labelLast := lb isHighLast := isHigh iLast := iL pLast := pL pLast var line extend_line = na var label extend_label = na if extend_to_last_bar == true and barstate.islast == true isHighLastPoint = not isHighLast curSeries = isHighLastPoint ? high : low if na(extend_line) and na(extend_label) extend_line := line.new(line.get_x2(lineLast), line.get_y2(lineLast), bar_index, curSeries, color=line_color, width=1) extend_label := caption(not isHighLast, bar_index, curSeries, price_rotation_diff(line.get_y2(lineLast), curSeries), volume_sum(line.get_x2(lineLast), bar_index)) extend_label line.set_xy1(extend_line, line.get_x2(lineLast), line.get_y2(lineLast)) line.set_xy2(extend_line, bar_index, curSeries) label.set_xy(extend_label, bar_index, curSeries) price_rotation = price_rotation_diff(line.get_y1(extend_line), curSeries) volume_cum = volume_sum(line.get_x1(extend_line), bar_index) label.set_text(extend_label, price_rotation_aggregate(price_rotation, curSeries, volume_cum)) label.set_textcolor(extend_label, isHighLastPoint ? color.green : color.red) label.set_yloc(extend_label, yloc=isHighLastPoint ? yloc.abovebar : yloc.belowbar) ///////// ShowSupResZones = input(false, title='Factal Support/Resistance',group='Line Settings') InvertColors = true TF1 = timeframe.period TF1_Menu = 'S/R Zones' TF1_VolMA1Input = 6 // S/R - Current Time Frame = Time Frame 1 = TF1 TF1_Vol = request.security(syminfo.tickerid, TF1, volume) TF1_VolMA = ta.sma(TF1_Vol, TF1_VolMA1Input) TF1_High = request.security(syminfo.tickerid, TF1, high) TF1_Low = request.security(syminfo.tickerid, TF1, low) TF1_Open = request.security(syminfo.tickerid, TF1, open) TF1_Close = request.security(syminfo.tickerid, TF1, close) TF1_Up = TF1_High[3] > TF1_High[4] and TF1_High[4] > TF1_High[5] and TF1_High[2] < TF1_High[3] and TF1_High[1] < TF1_High[2] and TF1_Vol[3] > TF1_VolMA[3] // or volume[3] > VolMA2Current[3]) TF1_Down = TF1_Low[3] < TF1_Low[4] and TF1_Low[4] < TF1_Low[5] and TF1_Low[2] > TF1_Low[3] and TF1_Low[1] > TF1_Low[2] and TF1_Vol[3] > TF1_VolMA[3] // or volume[3] > VolMA2Current[3]) TF1_CalcFractalUp() => TF1_FractalUp = 0.0 TF1_FractalUp := TF1_Up ? TF1_High[3] : TF1_FractalUp[1] TF1_FractalUp TF1_CalcFractalDown() => TF1_FractalDown = 0.0 TF1_FractalDown := TF1_Down ? TF1_Low[3] : TF1_FractalDown[1] TF1_FractalDown TF1_FractalUp = request.security(syminfo.tickerid, TF1, TF1_CalcFractalUp()) TF1_FractalDown = request.security(syminfo.tickerid, TF1, TF1_CalcFractalDown()) // Zones - Current Time Frame = Time Frame 1 = TF1 // Fractal Up Zones TF1_CalcFractalUpLowerZone() => TF1_FractalUpLowerZone = 0.0 TF1_FractalUpLowerZone := TF1_Up and TF1_Close[3] > TF1_Open[3] ? TF1_Close[3] : TF1_Up and TF1_Close[3] < TF1_Open[3] ? TF1_Open[3] : TF1_FractalUpLowerZone[1] TF1_FractalUpLowerZone TF1_CalcFractalUpUpperZone() => TF1_FractalUpUpperZone = 0.0 TF1_FractalUpUpperZone := TF1_Up and TF1_Close[3] > TF1_Open[3] ? TF1_High[3] - TF1_Close[3] + TF1_High[3] : TF1_Up and TF1_Close[3] < TF1_Open[3] ? TF1_High[3] - TF1_Open[3] + TF1_High[3] : TF1_FractalUpUpperZone[1] TF1_FractalUpUpperZone TF1_FractalUpLowerZone = request.security(syminfo.tickerid, TF1, TF1_CalcFractalUpLowerZone()) TF1_FractalUpUpperZone = request.security(syminfo.tickerid, TF1, TF1_CalcFractalUpUpperZone()) TF1_ResistanceUpperZone = TF1_FractalUpUpperZone TF1_ResistanceLowerZone = TF1_FractalUpLowerZone // Fractal Down Zones TF1_CalcFractalDownUpperZone() => TF1_FractalDownUpperZone = 0.0 TF1_FractalDownUpperZone := TF1_Down and TF1_Close[3] > TF1_Open[3] ? TF1_Open[3] : TF1_Down and TF1_Close[3] < TF1_Open[3] ? TF1_Close[3] : TF1_FractalDownUpperZone[1] TF1_FractalDownUpperZone TF1_CalcFractalDownLowerZone() => TF1_FractalDownLowerZone = 0.0 TF1_FractalDownLowerZone := TF1_Down and TF1_Close[3] > TF1_Open[3] ? TF1_Low[3] + TF1_Low[3] - TF1_Open[3] : TF1_Down and TF1_Close[3] < TF1_Open[3] ? TF1_Low[3] + TF1_Low[3] - TF1_Close[3] : TF1_FractalDownLowerZone[1] TF1_FractalDownLowerZone TF1_FractalDownLowerZone = request.security(syminfo.tickerid, TF1, TF1_CalcFractalDownLowerZone()) TF1_FractalDownUpperZone = request.security(syminfo.tickerid, TF1, TF1_CalcFractalDownUpperZone()) TF1_SupportUpperZone = TF1_FractalDownUpperZone TF1_SupportLowerZone = TF1_FractalDownLowerZone // Colors - Current Time Frame = Time Frame 1 = TF1 TF1_ResistanceColor = not InvertColors ? #FF00008C : #00FF00E6 // red : lime TF1_SupportColor = not InvertColors ? #00FF00E6 : #FF00008C // lime : red TF1_ResZoneColor = TF1_FractalUp != TF1_FractalUp[1] ? na : color.red TF1_ResZoneColorInverted = TF1_FractalUp != TF1_FractalUp[1] ? na : color.lime TF1_SupZoneColor = TF1_FractalDown != TF1_FractalDown[1] ? na : color.lime TF1_SupZoneColorInverted = TF1_FractalDown != TF1_FractalDown[1] ? na : color.red TF1_ResistanceZonesColor = not InvertColors and TF1_Menu == 'S/R Zones' ? TF1_ResZoneColor : InvertColors and TF1_Menu == 'S/R Zones' ? TF1_ResZoneColorInverted : na // red : lime TF1_SupportZonesColor = not InvertColors and TF1_Menu == 'S/R Zones' ? TF1_SupZoneColor : InvertColors and TF1_Menu == 'S/R Zones' ? TF1_SupZoneColorInverted : na // lime : red // S/R & S/R Zone Plots - Current Time Frame = Time Frame 1 = TF1 plot(ShowSupResZones ? TF1_FractalUp : na, 'Current Timeframe - Resistance', color=TF1_ResistanceColor, linewidth=1, offset=-3, style=plot.style_circles, join=false) plot(ShowSupResZones ? TF1_FractalDown : na, 'Current Timeframe - Support', color=TF1_SupportColor, linewidth=1, offset=-3, style=plot.style_circles, join=false) i_drawLines = input(true, 'Draw lines or just dots',group='Line Settings') i_lineCount = input(10, ': ZZ',inline = 'lookback', group='Basic Settings') i_showFirst = true i_firstDepth = depth i_firstDeviation = dev_threshold i_firstColor = input(color.white, 'Extented line Colour', group='Line Colors') var zigZagArray = array.new_line() var zigZagLabelArray = array.new_label() f_zigzag(_depth, _deviation) => var lw = 1 var hg = 1 lw := lw + 1 hg := hg + 1 lowestValue = -ta.lowestbars(_depth) highestValue = -ta.highestbars(_depth) lowing = lw == lowestValue or low - low[lowestValue] > _deviation * syminfo.mintick highing = hg == highestValue or high[highestValue] - high > _deviation * syminfo.mintick lh = ta.barssince(not highing) ll = ta.barssince(not lowing) down = lh > ll lower = low[lw] > low[lowestValue] higher = high[hg] < high[highestValue] if lw != lowestValue and (not down[1] or lower) lw := lowestValue < hg ? lowestValue : 0 lw if hg != highestValue and (down[1] or higher) hg := highestValue < lw ? highestValue : 0 hg x1 = down ? lw : hg y1 = down ? low[lw] : high[hg] lb = down ? label.style_label_up : label.style_label_down [down != down[1], x1, y1, lw, hg, down] f_drawLine_p(_x1, _x2, _yValue, _lineColor) => line.new(x1=_x1, y1=_yValue, x2=_x2, y2=_yValue, color=_lineColor, style=line.style_solid, width=1) f_drawLabel(_x, _y, _textColor) => label.new(_x, _y, '         ' + str.tostring(_y), xloc.bar_index, yloc.price, #00000000, label.style_none, _textColor) f_extendArray(_lineArray, _extendLines) => if array.size(_lineArray) > 0 for _i = array.size(_lineArray) - 1 to 0 by 1 x2 = line.get_x2(array.get(_lineArray, _i)) yValue = line.get_y1(array.get(_lineArray, _i)) if _extendLines or bar_index - 1 == x2 and not(high > yValue and low < yValue) line.set_x2(array.get(_lineArray, _i), bar_index) f_drawLabelSemafor(_switch, _x1, _y1, _lw, _hg, _down, _colorLine, _size) => label point = na if _down != _down[1] nx = _down ? _hg : _lw point := label.new(bar_index - nx, _down ? high[nx] : low[nx], color=_colorLine, style=label.style_circle, size=size.tiny) point f_addLine(_switch, _x1, _y1, _lw, _hg, _down, _colorLine) => if _switch line l = na label lab = na nx = _down ? _hg : _lw yValue = _down ? high[nx] : low[nx] x1 = bar_index - nx x2 = bar_index if _down != _down[1] l := f_drawLine_p(x1, x2, yValue, _colorLine) lab := f_drawLabel(x1, yValue, _colorLine) lab if array.size(zigZagArray) == i_lineCount line.delete(array.shift(zigZagArray)) label.delete(array.shift(zigZagLabelArray)) array.push(zigZagArray, l) array.push(zigZagLabelArray, lab) [switch1, x11, y11, lw1, hg1, down1] = f_zigzag(i_firstDepth, i_firstDeviation) switch_1 = switch1 if not i_drawLines if i_showFirst f_drawLabelSemafor(switch1, x11, y11, lw1, hg1, down1, i_firstColor, size.tiny) if i_drawLines if i_showFirst f_addLine(switch1, x11, y11, lw1, hg1, down1, i_firstColor) f_extendArray(zigZagArray, i_extendLines) //────────────────────────────────────────────────────────────────────────────── Sma(src, p) => a = ta.cum(src) (a - a[math.max(p, 0)]) / math.max(p, 0) Variance(src, p) => p == 1 ? 0 : Sma(src * src, p) - math.pow(Sma(src, p), 2) Covariance(x, y, p) => Sma(x * y, p) - Sma(x, p) * Sma(y, p) //────────────────────────────────────────────────────────────────────────────── n = bar_index ph = ta.pivothigh(length, length) pl = ta.pivotlow(length, length) //────────────────────────────────────────────────────────────────────────────── varip ph_array = array.new_float(0) varip pl_array = array.new_float(0) varip ph_n_array = array.new_int(0) varip pl_n_array = array.new_int(0) if ph array.insert(ph_array, 0, ph) array.insert(ph_n_array, 0, n) if pl array.insert(pl_array, 0, pl) array.insert(pl_n_array, 0, n) //────────────────────────────────────────────────────────────────────────────── val_ph = ta.valuewhen(ph, n - length, lookback - 1) val_pl = ta.valuewhen(pl, n - length, lookback - 1) val = math.min(val_ph, val_pl) k = n - val > 0 ? n - val : 2 slope = Covariance(close, n, k) / Variance(n, k) * Slope var line ph_l = na var line pl_l = na var line ph_l2 = na var line pl_l2 = na if barstate.islast and showpar for i = 0 to lookback - 1 by 1 ph_y2 = array.get(ph_array, i) ph_x1 = array.get(ph_n_array, i) - length pl_y2 = array.get(pl_array, i) pl_x1 = array.get(pl_n_array, i) - length ph_l2 := line.new(ph_x1, ph_y2, ph_x1 + 1, ph_y2 + slope, extend=extend2, color=color.new(ph_col, 0)) pl_l2 := line.new(pl_x1, pl_y2, pl_x1 + 1, pl_y2 + slope, extend=extend2, color=color.new(pl_col, 0)) pl_l2 _draw_label(price, txt, txtColor) => x = bar_index labelStyle = label.style_label_right align = text.align_right labelsAlignStrLeft = txt + '\n ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ \n' labelsAlignStrRight = ' ' + txt + '\n ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ ‏ \n' labelsAlignStr = labelsAlignStrRight var id = label.new(x=x, y=price, text=labelsAlignStr, textcolor=txtColor, style=labelStyle, textalign=align, color=#00000000) label.set_xy(id, x, price) label.set_text(id, labelsAlignStr) label.set_textcolor(id, txtColor) // Input options sensitivity = input.int(title='OB', defval=25, minval=5, maxval=100, inline = 'length', group='Basic Settings') bearishLLColour = input.color(title='OB Colour: Bearish', defval=color.rgb(255, 0, 0, 80), inline = 'bearishLLColour', group='Line Colors') bullishLLColour = input.color(title=': Bullish', defval=color.rgb(0, 255, 0, 80),inline = 'bearishLLColour', group='Line Colors') // tracking for entries var int lastDownIndex = 0 var float lastDown = 0 var float lastDownClose = 0 var float lastDownLow = 0 var float lastDownOpen = 0 var int lastUpIndex = 0 var float lastUp = 0 var float lastUpLow = 0 var float lastUpHigh = 0 var float lastUpClose = 0 var float lastUpOpen = 0 // structure var int structureLowIndex = 0 float structureLow = 1000000 // drawings var longBoxes = array.new_box() var shortBoxes = array.new_box() var bullBosLines = array.new_line() var bearBosLines = array.new_line() // load levels var int lastLongIndex = 0 var int lastShortIndex = 0 var bool lastShortIndex_EL = 0 // stop run detection var box last_bull = na var box last_bear = na // get the lowest point in the range structureLow := ta.lowest(low, sensitivity)[1] // bearish break of structure if ta.crossunder(low, structureLow) if bar_index - lastUpIndex < 1000 // update structure high for p = 1 to bar_index - lastUpIndex by 1 if high[p] > lastUpHigh lastUpHigh := high[p] lastUpHigh last_bear := box.new(left=lastUpIndex, top=(lastUpHigh + lastUpLow) / 2, bottom=lastUpLow, right=lastUpIndex, bgcolor=lastShortIndex == lastUpIndex ? color.rgb(0, 0, 0, 100) : bearishLLColour, border_color=bearishLLColour, extend=extend.right) array.push(shortBoxes, last_bear) // bullish break of structure? if array.size(shortBoxes) > 0 for i = array.size(shortBoxes) - 1 to 0 by 1 box = array.get(shortBoxes, i) top = box.get_top(box) bottom = box.get_bottom(box) left = box.get_left(box) if high > top and close > open and bar_index != lastLongIndex // remove the short box box.delete(box) array.remove(shortBoxes, i) // calculate LL bottom LLBottom = close < lastDownLow ? close : lastDownLow // ok to draw if bar_index - lastDownIndex < 1000 // update structure low for p = 1 to bar_index - lastDownIndex by 1 if low[p] < LLBottom LLBottom := low[p] LLBottom // last_bull := box.new(left=lastDownIndex, top=lastDown, bottom=(lastDown + LLBottom) / 2, right=lastDownIndex, bgcolor=lastLongIndex == lastDownIndex ? color.rgb(0, 0, 0, 100) : lastShortIndex_EL == true ? color.rgb(0, 255, 0, 80) : bullishLLColour, border_color=lastLongIndex == lastDownIndex ? color.rgb(0, 0, 0, 100) : bullishLLColour, extend=extend.right) array.push(longBoxes, last_bull) lastLongIndex := bar_index lastLongIndex // remove LL if close below if array.size(longBoxes) > 0 for i = array.size(longBoxes) - 1 to 0 by 1 lbox = array.get(longBoxes, i) bottom = box.get_bottom(lbox) top = box.get_top(lbox) if close < bottom array.remove(longBoxes, i) box.delete(lbox) // record last up and down candles if close < open lastDown := high lastDownClose := close lastDownOpen := open lastDownLow := low lastDownIndex := bar_index lastDownIndex if close > open lastUp := close lastUpIndex := bar_index lastUpOpen := open lastUpLow := low lastUpClose := close lastUpHigh := high lastUpHigh
RSI Rising Crypto Trending Alert
https://www.tradingview.com/script/3e9K6AjG-RSI-Rising-Crypto-Trending-Alert/
exlux99
https://www.tradingview.com/u/exlux99/
369
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © exlux99 //@version=5 indicator(title='RSI Rising Alert', overlay=true)//, initial_capital=100, default_qty_type=strategy.percent_of_equity, default_qty_value=100, slippage=0, commission_type=strategy.commission.percent, commission_value=0.03) ///////////////////// source = close bb_length = 20 bb_mult = 1.0 basis = ta.sma(source, bb_length) dev = bb_mult * ta.stdev(source, bb_length) upperx = basis + dev lowerx = basis - dev bbr = (source - lowerx) / (upperx - lowerx) bbr_len = 21 bbr_std = ta.stdev(bbr, bbr_len) bbr_std_thresh = 0.1 is_sideways = bbr > 0.0 and bbr < 1.0 and bbr_std <= bbr_std_thresh //////////////// fromDay = input.int(defval=1, title='From Day', minval=1, maxval=31) fromMonth = input.int(defval=1, title='From Month', minval=1, maxval=12) fromYear = input.int(defval=2010, title='From Year', minval=1970) //monday and session // To Date Inputs toDay = input.int(defval=31, title='To Day', minval=1, maxval=31) toMonth = input.int(defval=12, title='To Month', minval=1, maxval=12) toYear = input.int(defval=2021, title='To Year', minval=1970) startDate = timestamp(fromYear, fromMonth, fromDay, 00, 00) finishDate = timestamp(toYear, toMonth, toDay, 00, 00) time_cond = time >= startDate and time <= finishDate sourcex = close length = 2 pcntChange = 1 roc = 100 * (sourcex - sourcex[length]) / sourcex[length] emaroc = ta.ema(roc, length / 2) isMoving() => emaroc > pcntChange / 2 or emaroc < 0 - pcntChange / 2 periods = input(19) smooth = input(14, title='RSI Length') src = input(low, title='Source') rsiClose = ta.rsi(ta.ema(src, periods), smooth) long = ta.rising(rsiClose, 2) and not is_sideways and isMoving() short = not ta.rising(rsiClose, 2) and not is_sideways and isMoving() // ------------------------- Strategy Logic --------------------------------- // var longOpeneds = false var shortOpeneds = false var int timeOfBuys = na longConditions = long and not longOpeneds if longConditions longOpeneds := true timeOfBuys := time longExitSignals = short exitLongConditions = longOpeneds[1] and longExitSignals if exitLongConditions longOpeneds := false timeOfBuys := na alertcondition(condition=longConditions, title="Long", message='Long') alertcondition(condition=exitLongConditions, title="Short", message='Short') plotshape(longConditions, style=shape.labelup, location=location.belowbar, color=color.green, size=size.tiny, title="Long", text="Long", textcolor=color.white) plotshape(exitLongConditions , style=shape.labeldown, location=location.abovebar, color=color.red, size=size.tiny, title="Short ", text="Short ", textcolor=color.white)
Stock Dividend Periodicity
https://www.tradingview.com/script/VBBjF7Ie-Stock-Dividend-Periodicity/
RicardoSantos
https://www.tradingview.com/u/RicardoSantos/
78
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © RicardoSantos //@version=5 indicator(title='Stock Dividend Periodicity') int day_ms = 24 * 60 * 60 * 1000 int month_ms = 30 * day_ms select_period (float interval) => switch (interval > 13) => 'unknown' (interval > 8) => 'annually' (interval > 5) => 'semi-annually' (interval > 2) => 'quarterly' (interval > 0) => 'monthly' => 'unknown' select_stability (float shift) => switch (shift > 1.5) => 'expanding' (shift < 0.5) => 'contracting' => 'stable' float div = request.dividends(syminfo.tickerid, dividends.gross, barmerge.gaps_on) var int date = time var int diff = 0 var float stability = 1.0 if div date := time diff := date - date[1] stability := diff / nz(diff[1], time) float cum_avg = ta.cum(diff) / (bar_index + 1) float interval = cum_avg / month_ms float stability_avg = ta.cum(stability) / (bar_index + 1) float stability_ratio = stability / stability_avg plot(series=interval) plot(series=stability_ratio) var table T = table.new(position.bottom_right, 1, 1) table.cell(T, 0, 0, select_period(interval) + ', ' + select_stability(stability_ratio), text_color=color.blue)
Ichimoku Cross
https://www.tradingview.com/script/qnUCWcid-Ichimoku-Cross/
rohi_moti
https://www.tradingview.com/u/rohi_moti/
25
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © rohi_moti //@version=5 indicator(title="Ichimoku Cross", shorttitle="IchiCross",precision=1,scale=scale.right,overlay=false) // Getting inputs TenkanSenPeriod = input.int(9, minval=1, title="TenkanSen Period") KijunSenPeriod= input.int(26, minval=1, title="KijunSen Period") // Plot colors ColorStrongBullish = #104B26 ColorBullish = #2A7F2A ColorWeakBullish = #54E554 ColorCross = color.yellow ColorStrongBearish = #730909 ColorBearish = #D01A06 ColorWeakBearish = #F6968B // Ichimoku function donchian(len) => math.avg(ta.lowest(len), ta.highest(len)) // Calculation TenkanSen = donchian(TenkanSenPeriod) KijunSen = donchian(KijunSenPeriod) Histogram = 1 color My_color = na if TenkanSen > KijunSen if(close>=TenkanSen) My_color := ColorStrongBullish else if(close<=KijunSen) My_color := ColorWeakBullish else My_color := ColorBullish else if TenkanSen < KijunSen if(close<=TenkanSen) My_color := ColorStrongBearish else if(close>=KijunSen) My_color := ColorWeakBearish else My_color := ColorBearish else My_color := ColorCross plot(Histogram,"IchiCross",color=My_color,linewidth=5,style=plot.style_histogram,join=true)
Bank Zones #PipGang
https://www.tradingview.com/script/E858m7BI-Bank-Zones-PipGang/
PhilWill167
https://www.tradingview.com/u/PhilWill167/
192
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // ©PhilWill167 //@version=4 study("Bank Zones #PipGang", overlay=true) ///////////////////// - US30 -///////////////////// ShowSymbol1 = input (false, title="Show US30 Bank Levels", inline="1") Symbol1_Pair = "US30USD" Symbol1 = security(Symbol1_Pair,timeframe.period,close) Symbol1_SelectedPrice = input(title="Price", defval=35600.0, type=input.float, inline="2") Symbol1_IncVal = input(title="Increment By +/-", defval=50.0, type=input.float, inline="2", tooltip="50 = 50 Pips") //Symbol 1 Draw lines plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice+(Symbol1_IncVal*0) :na , title='Symbol1 Line1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice+(Symbol1_IncVal*1) :na , title='Symbol1 Line2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice+(Symbol1_IncVal*2) :na , title='Symbol1 Line3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice+(Symbol1_IncVal*3) :na , title='Symbol1 Line4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice+(Symbol1_IncVal*4) :na , title='Symbol1 Line5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice-(Symbol1_IncVal*1) :na , title='Symbol1 Line-1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice-(Symbol1_IncVal*2) :na , title='Symbol1 Line-2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice-(Symbol1_IncVal*3) :na , title='Symbol1 Line-3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice-(Symbol1_IncVal*4) :na , title='Symbol1 Line-4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol1_Pair == syminfo.ticker and ShowSymbol1 ? Symbol1_SelectedPrice-(Symbol1_IncVal*5) :na , title='Symbol1 Line-5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) ///////////////////// - Gold -///////////////////// ShowSymbol2 = input (false, title="Show Gold Bank Levels", inline="3") Symbol2_Pair = "XAUUSD" Symbol2 = security(Symbol2_Pair,timeframe.period,close) Symbol2_SelectedPrice = input(title="Price", defval=1870.000, type=input.float, inline="4") Symbol2_IncVal = input(title="Increment By +/-", defval=5, type=input.float, inline="4", tooltip="5 = 50 Pips") //Symbol 2 Draw lines plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice+(Symbol2_IncVal*0) :na , title='Symbol2 Line1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice+(Symbol2_IncVal*1) :na , title='Symbol2 Line2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice+(Symbol2_IncVal*2) :na , title='Symbol2 Line3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice+(Symbol2_IncVal*3) :na , title='Symbol2 Line4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice+(Symbol2_IncVal*4) :na , title='Symbol2 Line5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice-(Symbol2_IncVal*1) :na , title='Symbol2 Line-1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice-(Symbol2_IncVal*2) :na , title='Symbol2 Line-2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice-(Symbol2_IncVal*3) :na , title='Symbol2 Line-3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice-(Symbol2_IncVal*4) :na , title='Symbol2 Line-4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol2_Pair == syminfo.ticker and ShowSymbol2 ? Symbol2_SelectedPrice-(Symbol2_IncVal*5) :na , title='Symbol2 Line-5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) ///////////////////// - GJ -///////////////////// ShowSymbol3 = input (false, title="Show GBPJPY Bank Levels", inline="5") Symbol3_Pair = "GBPJPY" Symbol3 = security(Symbol3_Pair,timeframe.period,close) Symbol3_SelectedPrice = input(title="Price", defval=152.500, type=input.float, inline="6") Symbol3_IncVal = input(title="Increment By +/-", defval=.500, type=input.float, inline="6" , tooltip="0.5 = 50 Pips") //Symbol 3 Draw lines plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice+(Symbol3_IncVal*0) :na , title='Symbol3 Line1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice+(Symbol3_IncVal*1) :na , title='Symbol3 Line2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice+(Symbol3_IncVal*2) :na , title='Symbol3 Line3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice+(Symbol3_IncVal*3) :na , title='Symbol3 Line4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice+(Symbol3_IncVal*4) :na , title='Symbol3 Line5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice-(Symbol3_IncVal*1) :na , title='Symbol3 Line-1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice-(Symbol3_IncVal*2) :na , title='Symbol3 Line-2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice-(Symbol3_IncVal*3) :na , title='Symbol3 Line-3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice-(Symbol3_IncVal*4) :na , title='Symbol3 Line-4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol3_Pair == syminfo.ticker and ShowSymbol3 ? Symbol3_SelectedPrice-(Symbol3_IncVal*5) :na , title='Symbol3 Line-5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) ///////////////////// - GU -///////////////////// ShowSymbol4 = input (false, title="Show GBPUSD Bank Levels", inline="7") Symbol4_Pair = "GBPUSD" Symbol4 = security(Symbol4_Pair,timeframe.period,close) Symbol4_SelectedPrice = input(title="Price", defval=1.34100, type=input.float, inline="8") Symbol4_IncVal = input(title="Increment By +/-", defval=0.005, type=input.float, inline="8" , tooltip="0.005 = 50 Pips") //Draw lines plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice+(Symbol4_IncVal*0) :na , title='Symbol4 Line1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice+(Symbol4_IncVal*1) :na , title='Symbol4 Line2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice+(Symbol4_IncVal*2) :na , title='Symbol4 Line3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice+(Symbol4_IncVal*3) :na , title='Symbol4 Line4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice+(Symbol4_IncVal*4) :na , title='Symbol4 Line5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice-(Symbol4_IncVal*1) :na , title='Symbol4 Line-1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice-(Symbol4_IncVal*2) :na , title='Symbol4 Line-2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice-(Symbol4_IncVal*3) :na , title='Symbol4 Line-3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice-(Symbol4_IncVal*4) :na , title='Symbol4 Line-4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol4_Pair == syminfo.ticker and ShowSymbol4 ? Symbol4_SelectedPrice-(Symbol4_IncVal*5) :na , title='Symbol4 Line-5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) ///////////////////// - Custom -///////////////////// ShowSymbol5 = input (false, title="Show Custom Bank Levels", inline="9") Symbol5_Pair = input("OANDA:NAS100USD",title=" ", type=input.symbol, inline="9") Symbol5 = security(Symbol5_Pair,timeframe.period,close) Symbol5_SelectedPrice = input(title="Price", defval=16100, type=input.float, inline="10") Symbol5_IncVal = input(title="Increment By +/-", defval=50, type=input.float, inline="10" , tooltip="Decimal placement will vary by symbol") //Draw lines plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice+(Symbol5_IncVal*0) :na , title='Symbol5 Line1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice+(Symbol5_IncVal*1) :na , title='Symbol5 Line2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice+(Symbol5_IncVal*2) :na , title='Symbol5 Line3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice+(Symbol5_IncVal*3) :na , title='Symbol5 Line4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice+(Symbol5_IncVal*4) :na , title='Symbol5 Line5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice-(Symbol5_IncVal*1) :na , title='Symbol5 Line-1', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice-(Symbol5_IncVal*2) :na , title='Symbol5 Line-2', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice-(Symbol5_IncVal*3) :na , title='Symbol5 Line-3', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice-(Symbol5_IncVal*4) :na , title='Symbol5 Line-4', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) //plot(Symbol5_Pair == syminfo.tickerid and ShowSymbol5 ? Symbol5_SelectedPrice-(Symbol5_IncVal*5) :na , title='Symbol5 Line-5', linewidth=1, style=plot.style_line, color=color.new(color.gray,0), editable=true, trackprice=true) // Code to add two ema to the chart. // EmaShow = input (false, title="Show EMA" ) // EmaLength1 = input(50, minval=1, title="EMA 1 Length") // EmaSource1 = input(close, title="EMA 1 Source") // EmaValue1 = ema(EmaSource1, EmaLength1) // plot(EmaShow ? EmaValue1 :na , color=color.new(color.red,0), linewidth=2, title="EMA 1") // EmaLength2 = input(200, minval=1, title="EMA 2 Length") // EmaSource2 = input(close, title="EMA 2 Source") // EmaValue2 = ema(EmaSource2, EmaLength2) // plot(EmaShow ? EmaValue2 :na , color=color.new(color.orange,0), linewidth=2, title="EMA 2")
Bitcoin Bull Runs Mid Cycle Aligned
https://www.tradingview.com/script/xyjmTHlV-Bitcoin-Bull-Runs-Mid-Cycle-Aligned/
ShitCoinInc
https://www.tradingview.com/u/ShitCoinInc/
40
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © ShitCoinInc //@version=4 study("Bitcoin Bull Run Cycles", overlay=true) var dX6 = input(1465, title="2016 Mid Cycle Daily X Offset", type=input.integer) var wX6 = input(210, title="2016 Mid Cycle Weekly X Offset", type=input.integer) var mX6 = input(48, title="2016 Mid Cycle Monthly X Offset", type=input.integer) var Y6 = input(15, title="2016 Monthly Y Offset", type=input.integer) var dX3 = input(2936, title="2013 Mid Cycle Daily X Offset", type=input.integer) var wX3 = input(420, title="2013 Mid Cycle Weekly X Offset", type=input.integer) var mX3 = input(916, title="2013 Mid Cycle Monthly X Offset", type=input.integer) var Y3 = input(445, title="2013 Monthly Y Offset", type=input.integer) var xOffset6 = 0 var xOffset3 = 0 if timeframe.isdaily xOffset6 := dX6 xOffset3 := dX3 else if timeframe.isweekly xOffset6 := wX6 xOffset3 := wX3 else if timeframe.ismonthly xOffset6 := mX6 xOffset3 := mX3 else Y6 := 0 Y3 := 0 plot(close*Y6, title='', color=color.new(#00ffaa, 1), linewidth=1, style=plot.style_line, offset=xOffset6, trackprice=false) plot(close*Y3, title='', color=color.red, linewidth=1, style=plot.style_line, offset=xOffset3, trackprice=false)
Ripple (XRP) Model Price
https://www.tradingview.com/script/p56qHsuN-Ripple-XRP-Model-Price/
BobRivera990
https://www.tradingview.com/u/BobRivera990/
164
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © BobRivera990 //@version=5 indicator("Ripple(XRP) Price Model", overlay = true) // ——————————[Constants and inputs]———————————————————————————————————————————————————————————————————————————————————————————— { // ————— Constants used in calculations // Quandl's Total Bitcoins symbol var string TOTBC = "QUANDL:BCHAIN/TOTBC" // Residual Standard Deviation var float RESIDUAL_STDEV = 0.82188 // Bitcoins mined by Satoshi Nakamoto in 2009 var int SATOSHI_MINED_COINS = 1000000 // Preston Pysh estimates that each cycle of bitcoin is about 463 time span. var int PYSH_LEN = 463 // Colors used in plots var color C_CUR_MODEL = color.rgb(0, 0, 0, 0) var color C_CUR_BAND = color.rgb(0, 0, 0, 60) var color C_CUR_OVER_BOUGHT = color.rgb(255, 0, 0, 95) var color C_CUR_OVER_SOLD = color.rgb(0, 255, 0, 95) var color C_FUT_MODEL = color.rgb(0, 0, 0, 75) var color C_FUT_BAND = color.rgb(0, 0, 0, 80) var color C_FUT_OVER_BOUGHT = color.rgb(200, 120, 120, 95) var color C_FUT_OVER_SOLD = color.rgb(120, 200, 120, 95) // } ————————[Constants and inputs] // ——————————[functions]——————————————————————————————————————————————————————————————————————————————————————————————————————— { // Calculate the duration of each frame in seconds f_resInSeconds() => timeframe.multiplier * ( timeframe.isseconds ? 1 : timeframe.isminutes ? 60 : timeframe.isdaily ? 60 * 60 * 24 : timeframe.isweekly ? 60 * 60 * 24 * 7 : timeframe.ismonthly ? int(60 * 60 * 24 * 30.4375) : na) // Calculate the average number of coins mined per day f_getDailyFlow() => float _dailyFlow = ta.sma(close - close[1], PYSH_LEN) _dailyFlow // Calculate the bitcoin's stock-to-flow ratio f_getBsf() => float _flow = f_getDailyFlow() * 365 float _bsf = (close - SATOSHI_MINED_COINS) / _flow _bsf // Calculate price bands f_getBands(_bsf) => // The basic Equation float _base = 3.3297 * math.log(_bsf) - 12.214 // The basic final Equation float _modelPrc = math.exp(_base) // The Price band Equation float _upper1st = math.exp(_base + RESIDUAL_STDEV) float _lower1st = math.exp(_base - RESIDUAL_STDEV) float _upper2nd = math.exp(_base + RESIDUAL_STDEV * 2) float _lower2nd = math.exp(_base - RESIDUAL_STDEV * 2) [_modelPrc, _upper1st, _lower1st, _upper2nd, _lower2nd] // Calculate number of bitcoin halvings based on block-height f_blockToHalvNum(_blockHgt) => int _halvNum = math.floor(_blockHgt / 210000) _halvNum // Calculate the circulating supply of bitcoin based on the block-height f_blockToCirSuply(_blockHgt, _halvNum) => int _cirSuply = math.floor(21000000 + (50 * _blockHgt - 10500000 * _halvNum - 21000000) * math.pow(0.5, _halvNum)) _cirSuply // Calculate number of bitcoin halvings based on the circulating supply f_cirSuplyToHalvNum(_cirSuply) => int _halvNum = math.floor(-math.log((21000000 - _cirSuply) / 21000000) / math.log(2)) _halvNum // Calculate the block-height of bitcoin based on the circulating supply f_cirSuplyToBlock(_cirSuply, _halvNum) => int _blockHgt = math.floor(210000 * _halvNum + (math.pow(2, _halvNum) / 50) * (_cirSuply - 21000000 * (1 - math.pow(0.5, _halvNum)))) _blockHgt // Calculate the stock-to-flow ratio of bitcoin in the future f_getFutureBsf(_offset, _curCirSuply) => int _offsetInDay = _offset * f_resInSeconds() / 86400 int _curHalvNum = f_cirSuplyToHalvNum(_curCirSuply) int _curBlockHeight = f_cirSuplyToBlock(_curCirSuply, _curHalvNum) float _avgDailyBlock = 144.4 int _futBlockHeight = math.floor(_curBlockHeight + _avgDailyBlock * _offsetInDay) int _futHalvNum = f_blockToHalvNum(_futBlockHeight) int _futCirSuply = f_blockToCirSuply(_futBlockHeight, _futHalvNum) int _dayFromHalv = math.floor((_futBlockHeight % 210000) / _avgDailyBlock) float _futDailyCoin = _avgDailyBlock * 50 * math.pow(0.5, _futHalvNum) float _futDailyFlow = (math.min(_dayFromHalv, PYSH_LEN) * _futDailyCoin + math.max(PYSH_LEN - _dayFromHalv, 0) * 2 * _futDailyCoin) / PYSH_LEN float _futFlow = 365 * _futDailyFlow float _futBsf = (_futCirSuply - SATOSHI_MINED_COINS) / _futFlow _futBsf // } ————————[functions] // ——————————[calculations]———————————————————————————————————————————————————————————————————————————————————————————————————— { // Calculate the bitcoin's stock-to-flow ratio float curBsf = request.security(TOTBC, "D", f_getBsf()) // Calculate XRP price bands [modelPrc, upper1st, lower1st, upper2nd, lower2nd] = f_getBands(curBsf) // Calculate the circulating supply of bitcoin int btcCirSuply = request.security(TOTBC, "D", math.floor(close)) // Estimate the total number of bars var int TOTAL_BAR = (timenow - time) / (f_resInSeconds() * 1000) var int OFSSET = math.min(TOTAL_BAR, 1500) // Estimate the bitcoin stock-to-flow ratio in the future float futureBsf = f_getFutureBsf(OFSSET, btcCirSuply) // Estimate XRP price bands in the future [futureModelPrc, futureUpper1st, futureLower1st, futureUpper2nd, futureLower2nd] = f_getBands(futureBsf) bool cndPlotFuturePrc = timenow < time + (OFSSET - 20) * f_resInSeconds() * 1000 // } ————————[calculations] // ——————————[Plots]——————————————————————————————————————————————————————————————————————————————————————————————————————————— { // plot XRP price model plot(modelPrc, title = "Model Price", color = C_CUR_MODEL, linewidth = 2) // plot XRP price bands p_curUpper1st = plot(upper1st, title ='First Upper Band', color = C_CUR_BAND, linewidth = 1) p_curLower1st = plot(lower1st, title ='First Lower Band', color = C_CUR_BAND, linewidth = 1) p_curUpper2nd = plot(upper2nd, title ='Second Upper Band', color = C_CUR_BAND, linewidth = 1) p_curLower2nd = plot(lower2nd, title ='Second Lower Band', color = C_CUR_BAND, linewidth = 1) fill(p_curLower2nd, p_curLower1st, color = C_CUR_OVER_SOLD , title = "OverSold Zone") fill(p_curUpper1st, p_curUpper2nd, color = C_CUR_OVER_BOUGHT, title = "OverBought Zone") // plot estimated XRP price pattern in the future plot(cndPlotFuturePrc ? futureModelPrc : na, title = "Model Price (Future)", color = C_FUT_MODEL, linewidth = 2, offset = OFSSET) // plot estimated XRP price bands in the future p_futUpper1st = plot(cndPlotFuturePrc ? futureUpper1st : na, title = 'First Upper Band (Future)', color = C_FUT_BAND, linewidth = 1, offset = OFSSET) p_futLower1st = plot(cndPlotFuturePrc ? futureLower1st : na, title = 'First Lower Band (Future)', color = C_FUT_BAND, linewidth = 1, offset = OFSSET) p_futUpper2nd = plot(cndPlotFuturePrc ? futureUpper2nd : na, title = 'Second Upper Band (Future)', color = C_FUT_BAND, linewidth = 1, offset = OFSSET) p_futLower2nd = plot(cndPlotFuturePrc ? futureLower2nd : na, title = 'Second Lower Band (Future)', color = C_FUT_BAND, linewidth = 1, offset = OFSSET) fill(p_futLower2nd, p_futLower1st, color = C_FUT_OVER_SOLD , title = "OverSold Zone (Future)") fill(p_futUpper1st, p_futUpper2nd, color = C_FUT_OVER_BOUGHT, title = "OverBought Zone (Future)") // } ————————[Plots]
Simple Trader - Swing Pivots
https://www.tradingview.com/script/5WIb4Vuf-Simple-Trader-Swing-Pivots/
SimpleTrader66
https://www.tradingview.com/u/SimpleTrader66/
136
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © SimpleTrader66 //@version=4 study(title="My Simple Trader - Swing Pivots", shorttitle="My Simple Trader - Swing Pivots", overlay=true, linktoseries=true) bool inputShowWilliamsFractals = input(defval=true, title="Show Swing Pivots", type=input.bool) int inputWilliamsLeftRange = input(defval=5, minval=1, maxval=50, title="No. of candles backward", group="Swing Settings") int inputWilliamsRightRange = input(defval=5, minval=1, maxval=50, title="No. of candles foreward") f_IsWilliamsFractal(_williamsLeftRange, _williamsRightRange, _type) => _isWilliamsFractal = (_type == "high" and high[_williamsRightRange] >= highest(high,_williamsLeftRange+_williamsRightRange+1)) or (_type == "low" and low[_williamsRightRange] <= lowest(low,_williamsLeftRange+_williamsRightRange+1)) // Passing in the _type allows us to use just one function to do both highs and lows _fractalValue = _isWilliamsFractal and _type == "high" ? high[_williamsRightRange] : _isWilliamsFractal and _type == "low" ? low[_williamsRightRange] : na [_isWilliamsFractal,_fractalValue] [isWilliamsHigh,williamsHighPrice] = f_IsWilliamsFractal(inputWilliamsLeftRange, inputWilliamsRightRange, "high") [isWilliamsLow,williamsLowPrice] = f_IsWilliamsFractal(inputWilliamsLeftRange, inputWilliamsRightRange, "low") isWilliamsHigh := isWilliamsHigh[1] ? false : isWilliamsHigh isWilliamsLow := isWilliamsLow[1] ? false : isWilliamsLow williamsHighOffset = 0 - inputWilliamsRightRange color white10 = color.new(color.white,10) //plot(williamsHighPrice, title="Swing High PivotShape", color=color.purple, offset=williamsHighOffset, linewidth=2, style=plot.style_linebr) plotshape(isWilliamsHigh and inputShowWilliamsFractals, title="Swing High PivotShape", style=shape.labelup, location=location.abovebar, color=white10, size=size.tiny, offset=williamsHighOffset) williamsLowOffset = 0 - inputWilliamsRightRange //plot(williamsLowPrice, title="Swing Low PivotShape", color=color.green, offset=williamsLowOffset, linewidth=1, style=plot.style_linebr) plotshape(isWilliamsLow and inputShowWilliamsFractals, title="Swing Low Pivot Shape", style=shape.labelup, location=location.belowbar, color=white10, size=size.tiny, offset=williamsLowOffset) //plot(williamsHighPrice, "Line", color.green, 2, plot.style_line, true, show_last=1) //plot(williamsLowPrice, "Line", color.red, 2, plot.style_line, true, show_last=1) line.new(bar_index-inputWilliamsLeftRange, williamsHighPrice, bar_index+inputWilliamsRightRange, williamsHighPrice, extend=extend.none,width=1, color=color.white) line.new(bar_index-inputWilliamsLeftRange, williamsLowPrice, bar_index+inputWilliamsRightRange, williamsLowPrice, extend=extend.none,width=1, color=color.white)
EneX Signal
https://www.tradingview.com/script/2eWcEWeT-EneX-Signal/
YohanNaftali
https://www.tradingview.com/u/YohanNaftali/
222
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © YohanNaftali //@version=5 /////////////////////////////////////////////////////////////////////////////// // NX - eNtry and eXit Recommendation on Spot Market (Long Position) // ver 2021.11.16b // © YohanNaftali // This script composed by Yohan Naftali for educational purpose only // Reader who will use this signal must do own research /////////////////////////////////////////////////////////////////////////////// indicator( title = 'NX eNtry and eXit Recommendation', shorttitle = 'NX', format = format.price, precision = 0, overlay = true) // Input showRecomendation = input.bool( defval = true, title = 'Show Recomendation', group = 'Recomendation') showSafeDangerArea = input.bool( defval = true, title = 'Show Safe and Danger Area', group = 'Recomendation') /////////////////////////////////////////////////////////////////////////////// // Williams Fractal // Credit: Built in script from trading view // with additional support and resistance line that connect between fractal // highligted area inside support and resistance /////////////////////////////////////////////////////////////////////////////// // Input showFractals = input.bool( defval = true, title = 'Show Williams Fractals', group = 'Williams Fractal') fractalPeriod = input.int( defval = 2, title = 'Periods', minval = 2, group = 'Williams Fractal') // Functions // UpFractal Function isUpFractal(n) => bool upflagDownFrontier = true bool upflagUpFrontier0 = true bool upflagUpFrontier1 = true bool upflagUpFrontier2 = true bool upflagUpFrontier3 = true bool upflagUpFrontier4 = true for i = 1 to n upflagDownFrontier := upflagDownFrontier and (high[n-i] < high[n]) upflagUpFrontier0 := upflagUpFrontier0 and (high[n+i] < high[n]) upflagUpFrontier1 := upflagUpFrontier1 and (high[n+1] <= high[n] and high[n+i + 1] < high[n]) upflagUpFrontier2 := upflagUpFrontier2 and (high[n+1] <= high[n] and high[n+2] <= high[n] and high[n+i + 2] < high[n]) upflagUpFrontier3 := upflagUpFrontier3 and (high[n+1] <= high[n] and high[n+2] <= high[n] and high[n+3] <= high[n] and high[n+i + 3] < high[n]) upflagUpFrontier4 := upflagUpFrontier4 and (high[n+1] <= high[n] and high[n+2] <= high[n] and high[n+3] <= high[n] and high[n+4] <= high[n] and high[n+i + 4] < high[n]) flagUpFrontier = upflagUpFrontier0 or upflagUpFrontier1 or upflagUpFrontier2 or upflagUpFrontier3 or upflagUpFrontier4 upflagDownFrontier and flagUpFrontier // DownFractal Function isDownFractal(n) => bool downflagDownFrontier = true bool downflagUpFrontier0 = true bool downflagUpFrontier1 = true bool downflagUpFrontier2 = true bool downflagUpFrontier3 = true bool downflagUpFrontier4 = true for i = 1 to n downflagDownFrontier := downflagDownFrontier and (low[n-i] > low[n]) downflagUpFrontier0 := downflagUpFrontier0 and (low[n+i] > low[n]) downflagUpFrontier1 := downflagUpFrontier1 and (low[n+1] >= low[n] and low[n+i + 1] > low[n]) downflagUpFrontier2 := downflagUpFrontier2 and (low[n+1] >= low[n] and low[n+2] >= low[n] and low[n+i + 2] > low[n]) downflagUpFrontier3 := downflagUpFrontier3 and (low[n+1] >= low[n] and low[n+2] >= low[n] and low[n+3] >= low[n] and low[n+i + 3] > low[n]) downflagUpFrontier4 := downflagUpFrontier4 and (low[n+1] >= low[n] and low[n+2] >= low[n] and low[n+3] >= low[n] and low[n+4] >= low[n] and low[n+i + 4] > low[n]) flagDownFrontier = downflagUpFrontier0 or downflagUpFrontier1 or downflagUpFrontier2 or downflagUpFrontier3 or downflagUpFrontier4 downflagDownFrontier and flagDownFrontier // Calculation upFractal = isUpFractal(fractalPeriod) downFractal = isDownFractal(fractalPeriod) var float fractalUpper = na var float fractalLower = na if upFractal and not downFractal fractalUpper := high[fractalPeriod] if downFractal and not upFractal fractalLower := low[fractalPeriod] // Plot plotshape( downFractal and showFractals, title = 'Fractal Bullish', style = shape.arrowup, location = location.belowbar, offset = -fractalPeriod, color = color.new(color.green, 0), size = size.small) plotshape( upFractal and showFractals, title = 'Fractal Bearish', style = shape.arrowdown, location = location.abovebar, offset = -fractalPeriod, color = color.new(color.red, 0), size = size.small) // Plot support line, resistance line, and area between support and resistance fractalUpperPlot = plot( fractalUpper, title = "Support Line", color = color.new(color.red, 50), offset = -fractalPeriod, style = plot.style_linebr) fractalLowerPlot = plot( fractalLower, title = "Resistance Line", color = color.new(color.green, 50), offset = -fractalPeriod, style = plot.style_linebr) /////////////////////////////////////////////////////////////////////////////// // Williams Alligator 8, 13 ,21 // Credit: Built in script from trading view // Williams Alligator indicators will be use as entry and exit recommendation /////////////////////////////////////////////////////////////////////////////// // Input showAlligator = input( defval = true, title = 'Show Williams Alligator', group = 'Williams Alligator') lengthJaw = input.int( defval = 21, minval = 1, title = 'Jaw Length', group = 'Williams Alligator') lengthTeeth = input.int( defval = 13, minval = 1, title = 'Teeth Length', group = 'Williams Alligator') lengthLips = input.int( defval = 8, minval = 1, title = 'Lips Length', group = 'Williams Alligator') // Calculation // Function from built in Technical Analysis SMA valueJaw = ta.sma(close, lengthJaw) valueTeeth = ta.sma(close, lengthTeeth) valueLips = ta.sma(close, lengthLips) // Plot plot( showAlligator ? valueJaw : na, title = 'Jaw', color = color.rgb(0, 0, 255, 0), linewidth = 1) plot( showAlligator ? valueTeeth : na, title = 'Teeth', color = color.rgb(255, 0, 0, 0), linewidth = 1) plot( showAlligator ? valueLips : na, title = 'Lips', color = color.rgb(0, 255, 0, 0), linewidth = 1) /////////////////////////////////////////////////////////////////////////////// // Moving Average Exponential // Credit: Built in script from trading view // Exponential Moving Average indicators will use as lowest criteria on long // position /////////////////////////////////////////////////////////////////////////////// // Input showEma = input( defval = true, title = 'Show EMAs', group = 'EMA') // EMA A lengthEmaA = input.int( defval = 50, minval = 1, title = 'Length', group = 'EMA A') sourceEmaA = input( defval=close, title = 'Source', group = 'EMA A') offsetEmaA = input.int( title = 'Offset', defval = 0, minval = -500, maxval = 500, group = 'EMA A') // EMA B lengthEmaB = input.int( defval = 100, minval = 1, title = 'Length', group = 'EMA B') sourceEmaB = input.source( defval = close, title = 'Source', group = 'EMA B') offsetEmaB = input.int( title = 'Offset', defval = 0, minval = -500, maxval = 500, group = 'EMA B') // EMA C lengthEmaC = input.int( defval = 200, minval = 1, title = 'Length', group = 'EMA C') sourceEmaC = input( defval = close, title = 'Source', group = 'EMA C') offsetEmaC = input.int( title = 'Offset', defval = 0, minval = -500, maxval = 500, group = 'EMA C') // Calculation // Function from built in Technical Analysis EMA valueEmaA = ta.ema(sourceEmaA, lengthEmaA) valueEmaB = ta.ema(sourceEmaB, lengthEmaB) valueEmaC = ta.ema(sourceEmaC, lengthEmaC) // Plot plot( showEma ? valueEmaA : na, title = 'EMA A', color = color.new(color.green, 60), offset = offsetEmaA) plot( showEma ? valueEmaB : na, title = 'EMA B', color = color.new(color.orange, 60), offset = offsetEmaB) plot( showEma ? valueEmaC : na, title = 'EMA C', color = color.new(color.blue, 60), offset = offsetEmaC) /////////////////////////////////////////////////////////////////////////////// // Safe (fuchsia) and Danger (lime) Area // Define border line = highest EMA and JAW // Area above border line consider safe // Area below border line consider danger /////////////////////////////////////////////////////////////////////////////// // Calculation borderLine = math.max(valueJaw, math.max(valueEmaA, math.max(valueEmaB, valueEmaC))) // Plot borderLinePlot = plot( borderLine, title = "Border Line", color = showSafeDangerArea ? color.new(color.teal, 60) : na, style = plot.style_stepline, linewidth = 2) fill( fractalUpperPlot, borderLinePlot, title = 'Safe Area', color = showSafeDangerArea ? color.new(color.lime, 80) : na) fill( borderLinePlot, fractalLowerPlot, title = 'Danger Area', color = showSafeDangerArea ? color.new(color.fuchsia, 80) : na) /////////////////////////////////////////////////////////////////////////////// // Relative Strength Index // Credit: Built in script from trading view // RSI Index use as consideration when take position /////////////////////////////////////////////////////////////////////////////// // Input showRsi = input( defval = true, title = 'Show RSI', group = 'RSI') lengthRsi = input.int( defval = 14, minval = 1, title = 'Length', group = 'RSI') sourceRsi = input.source( defval = close, title = 'Source', group = 'RSI') overboughtRsi = input.int( defval = 80, title = 'RSI Overbought Level', group = 'RSI') oversoldRsi = input.int( defval = 20, title = 'RSI Oversold Level', group = 'RSI') // Calculation valueRsi = ta.rsi(sourceRsi, lengthRsi) isOverboughtRsi = valueRsi >= overboughtRsi isOversoldRsi = valueRsi <= oversoldRsi plotshape( showRsi and isOverboughtRsi, title = 'RSI Overbought', style = shape.flag, location = location.abovebar, color = color.new(color.orange, 0), size = size.tiny) plotshape( showRsi and isOversoldRsi, title = 'RSI Oversold', style = shape.flag, location = location.belowbar, color = color.new(color.purple, 0), size = size.tiny) /////////////////////////////////////////////////////////////////////////////// // Recomendation // enter condition // 1. entry 1 = Entry on Weakness // 2. entry 2 = Entry when price break resistance // All entry condition must above EMA and alligator signal and not in overbought RSI // exit condition: // 1. lowest price < EMA A and < EMA B and < EMA C // 2. lowest price < alligator signal /////////////////////////////////////////////////////////////////////////////// // Calculation varip bool hodlPosition = na if barstate.isfirst hodlPosition := false entryOnWeak = downFractal and (low > valueEmaA) and (low > valueEmaB) and (low > valueEmaC) and (low > valueJaw) and (low > valueTeeth) and (low > valueLips) and not isOverboughtRsi and not isOversoldRsi entryBreakResist = close > fractalUpper and (low > valueEmaA) and (low > valueEmaB) and (low > valueEmaC) and (low > valueJaw) and (low > valueTeeth) and (low > valueLips) and not isOverboughtRsi and not isOversoldRsi exitDrop = low <= valueEmaA or low <= valueEmaB or low <= valueEmaC or low < valueJaw isEntryOnWeak = entryOnWeak and not exitDrop and not hodlPosition isEntryBreakResist = entryBreakResist and not exitDrop and not hodlPosition isExit = exitDrop and hodlPosition[1] if exitDrop hodlPosition := false if entryOnWeak or entryBreakResist hodlPosition := true // Plot plotshape( entryOnWeak, title = 'EOW dot', style = shape.circle, text = '', location = location.bottom, color = color.new(color.teal, 60), textcolor = color.white, size = size.tiny) plotshape( entryBreakResist, title = 'EBR dot', style = shape.circle, text = '', location = location.bottom, color = color.new(color.green, 60), textcolor = color.white, size = size.tiny) plotshape( hodlPosition, title = 'Hodl position dot', style = shape.circle, text = '', location = location.bottom, color = color.new(color.blue, 60), textcolor = color.white, size = size.tiny) plotshape( not hodlPosition, title = 'No hold dot', style = shape.circle, text = '', location = location.bottom, color = color.new(color.red, 60), textcolor = color.white, size = size.tiny) plotshape( showRecomendation and isEntryOnWeak, title = 'eNtry signal on weakness', style = shape.labelup, text='N', location = location.belowbar, color = color.new(color.green, 40), textcolor = color.white, size = size.tiny) plotshape( showRecomendation and isEntryBreakResist, title = 'eNtry signal when break resistance', style = shape.labeldown, text='N', location = location.abovebar, color = color.new(color.green, 40), textcolor = color.white, size = size.tiny) plotshape( showRecomendation and isExit, title = 'eXit signal', style = shape.labeldown, text='X', location = location.abovebar, color = color.new(color.red, 40), textcolor = color.white, size = size.tiny)
[HELPER] Symbol Info Array Table Helper
https://www.tradingview.com/script/2xTniutK-HELPER-Symbol-Info-Array-Table-Helper/
RozaniGhani-RG
https://www.tradingview.com/u/RozaniGhani-RG/
31
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © RozaniGhani-RG //@version=5 indicator('[HELPER] Symbol Info Array Table Helper', shorttitle = 'HSIATH', overlay = true) // 0. Tooltips // 1. Inputs for table // 2. Inputs for array // 3. New array // 4. Custom functions // 5. array values push / set // 6. Construct // ————————————————————————————————————————————————————————————————————————————— 0. Tooltips { T0 = 'Small font size recommended for mobile app or multiple layout' T1 = 'Tick to hide' // } // ————————————————————————————————————————————————————————————————————————————— 1. Inputs for table { i_s_font = input.string('normal', 'Font size', tooltip = T0, options = ['tiny', 'small', 'normal', 'large', 'huge']) i_s_Y = input.string('top', 'Table Position', inline = '0', options = ['top', 'middle', 'bottom']) i_s_X = input.string('right', '', inline = '0', options = ['left', 'center', 'right']) i_c_text = input.color(color.black, 'Text') i_c_bg = input.color(color.white, 'Background') i_c_border = input.color(color.black, 'Border') // } // ————————————————————————————————————————————————————————————————————————————— 2. Inputs for array { i_b_basecurrency = input.bool(false, 'basecurrency', inline ='1', group = 'syminfo') i_b_currency = input.bool(false, 'currency    ', inline ='2', group = 'syminfo') i_b_description = input.bool(false, 'description ', inline ='3', group = 'syminfo') i_b_mintick = input.bool(false, 'mintick     ', inline ='4', group = 'syminfo') i_b_pointvalue = input.bool(false, 'pointvalue  ', inline ='5', group = 'syminfo') i_b_prefix = input.bool(false, 'prefix      ', inline ='6', group = 'syminfo') i_b_root = input.bool(false, 'root', inline ='1', group = 'syminfo', tooltip = T1) i_b_session = input.bool(false, 'session', inline ='2', group = 'syminfo') i_b_ticker = input.bool(false, 'ticker', inline ='3', group = 'syminfo') i_b_tickerid = input.bool(false, 'tickerid', inline ='4', group = 'syminfo') i_b_timezone = input.bool(false, 'timezone', inline ='5', group = 'syminfo') i_b_type = input.bool(false, 'type', inline ='6', group = 'syminfo') // } // ————————————————————————————————————————————————————————————————————————————— 3. New array { arr_info = array.new_string(12) arr_syminfo = array.new_string(12) table[] arr_table = array.new_table() // } // ————————————————————————————————————————————————————————————————————————————— 4. Custom functions { f_table_top() => table.new(position = i_s_Y + '_' + i_s_X, rows = 12, columns = 2, frame_color = i_c_border, frame_width = 1, border_color = i_c_border, border_width = 1) f_set(int _index, string _value1, string _value2) => array.set(arr_info, _index, _value1) array.set(arr_syminfo, _index, _value2) f_input(bool _input, int _row) => if _input table.clear(array.get(arr_table, 0), 0, _row, 1, _row) // } // ————————————————————————————————————————————————————————————————————————————— 5. array values push / set { array.push(arr_table, f_table_top()) f_set( 0, 'basecurrency', syminfo.basecurrency) f_set( 1, 'currency', syminfo.currency) f_set( 2, 'description', syminfo.description) f_set( 3, 'mintick', str.tostring(syminfo.mintick)) f_set( 4, 'pointvalue', str.tostring(syminfo.pointvalue)) f_set( 5, 'prefix', syminfo.prefix) f_set( 6, 'root', syminfo.root) f_set( 7, 'session', syminfo.session) f_set( 8, 'ticker', syminfo.ticker) f_set( 9, 'tickerid', syminfo.tickerid) f_set(10, 'timezone', syminfo.timezone) f_set(11, 'type', syminfo.type) // } // ————————————————————————————————————————————————————————————————————————————— 6. Construct { if barstate.islast for x = 0 to 11 table.cell(array.get(arr_table, 0), 0, x, text_color = i_c_text, text_size = i_s_font, bgcolor = i_c_bg, text = 'syminfo.' + array.get(arr_info, x), text_halign = text.align_left) table.cell(array.get(arr_table, 0), 1, x, text_color = i_c_text, text_size = i_s_font, bgcolor = i_c_bg, text = array.get(arr_syminfo, x)) f_input(i_b_basecurrency, 0) f_input(i_b_currency, 1) f_input(i_b_description, 2) f_input(i_b_mintick, 3) f_input(i_b_pointvalue, 4) f_input(i_b_prefix, 5) f_input(i_b_root, 6) f_input(i_b_session, 7) f_input(i_b_ticker, 8) f_input(i_b_tickerid, 9) f_input(i_b_timezone, 10) f_input(i_b_type, 11) // }
Spread of Scripts
https://www.tradingview.com/script/0DPXiCpV-Spread-of-Scripts/
tv94067
https://www.tradingview.com/u/tv94067/
51
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © tv94067 //@version=5 indicator("Spread of Scripts", precision=6, overlay=false) draw_label(_x, _y, _text, _xloc, _yloc, color, _style, _textcolor, _size, _textalign, _tooltip) => dlabel = label.new(x=_x, y=_y, text=_text, xloc=_xloc, yloc=_yloc, color=color, style=_style, textcolor=_textcolor, size=_size, textalign=_textalign, tooltip=_tooltip) label.delete(dlabel[1]) tifrm = input.timeframe("", title="Timeframe") method = input.string("Difference", title="Method of Spread", options=["Divide", "Difference"]) s1 = input.symbol("NSE:NIFTY1!", title="Symbol 1", confirm=true) s2 = input.symbol("NSE:NIFTY", title="Symbol 2", confirm=true) s1sec = request.security(s1, tifrm, close) s2sec = request.security(s2, tifrm, close) spread = method == "Divide" ? s1sec / s2sec : s1sec - s2sec col = method == "Divide" ? (spread>1 ? color.green : color.red) : spread>0 ? color.green : color.red plot(spread, title="Spread", color=col, style=plot.style_line, linewidth=2) plot(method == "Divide" ? 1 : 0, title="Zero", color=color.black) draw_label(bar_index[0], spread, '' + str.tostring(spread, '0.000000'), xloc.bar_index, yloc.price, col, label.style_label_left, color.white, size.normal, text.align_left, '')
Daily Deviation
https://www.tradingview.com/script/7uSj8c3J-Daily-Deviation/
Electrified
https://www.tradingview.com/u/Electrified/
81
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Electrified // @version=5 // @description Displays the normal deviation levels from the open during the session. indicator('Daily Deviation', overlay=true) import Electrified/SessionInfo/10 as Session import Electrified/DailyLevels/9 as Daily import Electrified/DailyDeviation/1 as Deviation import Electrified/Time/2 days = input.int(50, 'Days to Measure Deviation') maxDeviation = input.float(3, 'Maximum Deviation', group='Data Cleaning', minval=0, tooltip='The maximum deviation before considered an outlier.\nA value of 0 will cause the results to not be filtered.') display = input.int(0, 'Days extra', group='Display', minval=0) exceededOnly = input.bool(true, 'Only levels exceeded (for today)', group='Display') colorHi = color.yellow // warm colorLo = color.blue // cold colorHiClear = color.new(colorHi, 100) colorLoClear = color.new(colorLo, 100) // Track the bar index. var bar = -1 bar += 1 firstBar = Session.firstBarOfDay() barsPerSession = Session.maxBars() barsRemaining = math.max(barsPerSession - Session.bar(), 0) timeLeft = barsRemaining * timeframe.multiplier * 60 * 1000 eod = time + timeLeft day = Time.date() today = Time.date(timenow) ok = not session.ispremarket and time >= today - 86400 * 1000 * display isToday = day == today tx = isToday and exceededOnly makeBox(float top, float bottom, color c, int transp) => var bg = color.new(c, transp) var bgBlank = color.new(c, 100) b = box.new(bar - firstBar, top, bar + barsRemaining, bottom, bg, 0, line.style_solid, extend.none, xloc.bar_index, bg) box.delete(b[1]) if not isToday or top<=bottom box.delete(b) isToday ? bgBlank : bg //// oD = ok ? Daily.O() : na [OH, OL, OC] = Deviation.hlcDeltaArrays(days, maxDeviation) // Plot High Levels hiToday = Daily.H() OHbase = oD + array.avg(OH) Hstdev = array.stdev(OH) OH1 = OHbase + Hstdev OH2 = OH1 + Hstdev OH3 = OH2 + Hstdev OH4 = OH3 + Hstdev h1 = plot(tx and hiToday < OH1 ? na : OH1, 'H1', colorHiClear) h2 = plot(tx and hiToday < OH2 ? na : OH2, 'H2', colorHiClear) h3 = plot(tx and hiToday < OH3 ? na : OH3, 'H3', colorHiClear) h4 = plot(tx and hiToday < OH4 ? na : OH4, 'H4', colorHiClear) // Plot Low Levels loToday = Daily.L() OLbase = oD - array.avg(OL) Lstdev = array.stdev(OL) OL1 = OLbase - Lstdev OL2 = OL1 - Lstdev OL3 = OL2 - Lstdev OL4 = OL3 - Lstdev l1 = plot(tx and loToday > OL1 ? na : OL1, 'L1', colorLoClear) l2 = plot(tx and loToday > OL2 ? na : OL2, 'L2', colorLoClear) l3 = plot(tx and loToday > OL3 ? na : OL3, 'L3', colorLoClear) l4 = plot(tx and loToday > OL4 ? na : OL4, 'L4', colorLoClear) // Plot Open to Close Range Cstdev = array.stdev(OC) cH1 = oD + Cstdev cL1 = oD - Cstdev fill(h1, plot(cH1, 'C1+', isToday and firstBar > 0 ? color.new(colorHi, 50) : colorHiClear, style=plot.style_circles), makeBox(tx ? math.min(hiToday, OH1) : OH1, cH1, colorHi, 95)) fill(plot(cL1, 'C1-', isToday and firstBar > 0 ? color.new(colorLo, 50) : colorLoClear, style=plot.style_circles), l1, makeBox(cL1, tx ? math.max(loToday, OL1) : OL1, colorLo, 95)) fill(h2, h1, makeBox(tx ? math.min(hiToday, OH2) : OH2, OH1, colorHi, 85)) fill(l1, l2, makeBox(OL1, tx ? math.max(loToday, OL2) : OL2, colorLo, 85)) fill(h3, h2, makeBox(tx ? math.min(hiToday, OH3) : OH3, OH2, colorHi, 75)) fill(l2, l3, makeBox(OL2, tx ? math.max(loToday, OL3) : OL3, colorLo, 75)) fill(h4, h3, makeBox(tx ? math.min(hiToday, OH4) : OH4, OH3, colorHi, 95)) fill(l3, l4, makeBox(OL3, tx ? math.max(loToday, OL4) : OL4, colorLo, 95))
string2float v1.0
https://www.tradingview.com/script/HRKeo2XC-string2float-v1-0/
CALobo
https://www.tradingview.com/u/CALobo/
8
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © CA_Lobo //@version=5 indicator("string to float") str2float(xstr) => temp = str.split(xstr,".") integer = str.split(array.get(temp,0),"") fraction = array.size(temp) == 2 ? str.split(array.get(temp,1),"") : array.new_string() // reverse for easier parsing... must be on own line rather than embedded within the ternary operator // as will generate a cannot call operator ?: with argument 'expr1'='call 'array.reverse' (void)' error. array.reverse(fraction) power = 1 // working to the left of the decimal point so use integer rtnValue = 0.0 // make it a float... if you need an integer cast it afterwards... sign = 1 // assume it's positive unless we find a minus sign while array.size(integer) > 0 digit = array.pop(integer) switch digit "1" => rtnValue += (1 * power) "2" => rtnValue += (2 * power) "3" => rtnValue += (3 * power) "4" => rtnValue += (4 * power) "5" => rtnValue += (5 * power) "6" => rtnValue += (6 * power) "7" => rtnValue += (7 * power) "8" => rtnValue += (8 * power) "9" => rtnValue += (9 * power) "-" => sign := -1 // use to make it a negative number (multiplying by -1 doesn't work with a zero rtnValue eg -0.125) => na // everything else is inrelevant... power *= 10 // advance to next LARGER power power2 = 0.1 // working to the right of the decimal point, need float otherwise pinescript complains... while array.size(fraction) > 0 digit = array.pop(fraction) switch digit "1" => rtnValue += (1 * power2) "2" => rtnValue += (2 * power2) "3" => rtnValue += (3 * power2) "4" => rtnValue += (4 * power2) "5" => rtnValue += (5 * power2) "6" => rtnValue += (6 * power2) "7" => rtnValue += (7 * power2) "8" => rtnValue += (8 * power2) "9" => rtnValue += (9 * power2) => na // everything else is inrelevant power2 /= 10 // move to the next SMALLER power rtnValue *= sign // now make the entire number negative if we had a minus sign in the integer portion, rtnValue // and return this value printDebug(txt) => var table t = table.new(position.middle_right, 1, 1), table.cell(t, 0, 0, txt, bgcolor = color.yellow) // test cases var test = str.split('4235,-12134,4236.0,-1568.32, 0.125, -0.256, 9876543210.123456789, -9876543210.123456789',",") testFloats = array.new_float() for i = 0 to array.size(test) - 1 //array.push(testFloats, str2float(array.get(test,i))) array.push(testFloats, str.tonumber(array.get(test,i))) printDebug(str.tostring(testFloats))
node nirvana
https://www.tradingview.com/script/gO78MhxT-node-nirvana/
mohammadakasheh94
https://www.tradingview.com/u/mohammadakasheh94/
123
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © mohammadakasheh94 // Written by mohammadakasheh // Idea by Amir Nirvana //@version=4 //indicator("trading node nirvana") study("grate node nirvana", overlay=true, scale=scale.none) //Input Sensitivity = input(title="LegoutStrength", type=input.float, defval=1.5, minval=1.0, maxval=2.0, step=0.5) //Variable Declaration Candle_Range = high - low Body_Range = abs(close - open) //Boring Candles or Basing Candles Body Range <= 50% of Candle Range barcolor(Body_Range <= Candle_Range * 0.5 ? color.fuchsia : na) //Explosive Candles Logic Bar_Lookback = 100 Volatility = atr(Bar_Lookback) //Sensitivity = 1.5 Strength = Volatility * Sensitivity barcolor(Body_Range > Candle_Range * 0.6 and Candle_Range >= Strength ? color.black : na)
Reversal zone finder
https://www.tradingview.com/script/CeXTaFlR-Reversal-zone-finder/
MoriFX
https://www.tradingview.com/u/MoriFX/
1,245
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © MoriFX //@version=4 study("Reversal zone finder", overlay=true) // User inputs longAlerts = input(title="Trigger Long Alerts", type=input.bool, defval=true) shortAlerts = input(title="Trigger Short Alerts", type=input.bool, defval=true) rsiOB = input(title="RSI OverBought Value", type=input.integer, defval=65) rsiOS = input(title="RSI OverSold Value", type=input.integer, defval=35) // Big candle detector lastCandleSize = abs(high[1] - low[1]) curCandleSize = abs(high - low) bullishCandle = (curCandleSize > (lastCandleSize * 1.5)) and (close > open) bearishCandle = (curCandleSize > (lastCandleSize * 1.5)) and (close < open) // RSI rsiValue = rsi(close[1],14) // Plot signal plotshape(bullishCandle and ((rsiValue[1] < rsiOS) or (rsiValue < rsiOS)) , color=color.green, style=shape.triangleup, size=size.tiny, location=location.belowbar) plotshape(bearishCandle and ((rsiValue[1] > rsiOB) or (rsiValue > rsiOB)) , color=color.red, style=shape.triangledown, size=size.tiny, location=location.abovebar) // Two Way Alert generator alertcondition((bullishCandle and longAlerts) or (bearishCandle and shortAlerts), title="Alert", message="Alert for {{ticker}}")
Michigan Consumer Sentiment
https://www.tradingview.com/script/tDyiNaEH-Michigan-Consumer-Sentiment/
callmejaytrader
https://www.tradingview.com/u/callmejaytrader/
27
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © callmejaytrader //@version=5 indicator("Consumer Sentiment") quandl_ticker = "QUANDL:UMICH/SOC1" data = request.security(quandl_ticker, "D", close) plot(data,"Sentiment",color=color.red) interval = 260 if (timeframe.isweekly) interval := 52 if (timeframe.ismonthly) interval := 12 min = ta.lowest(data, interval) max = ta.highest(data, interval) sentimentStock = ta.stoch(data, max, min, interval) plot(sentimentStock, "Stochastic sentiment", color=color.black)
Alino Forex System
https://www.tradingview.com/script/VkDsXCEM/
emailappoggio
https://www.tradingview.com/u/emailappoggio/
66
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © ceyhun //@version=4 study("Alino Forex System",overlay=true) no=input(3,title="Swing") Barcolor=input(true,title="Barcolor") Bgcolor=input(false,title="Bgcolor") res=highest(high,no) sup=lowest(low,no) avd=iff(close>res[1],1,iff(close<sup[1],-1,0)) avn=valuewhen(avd!=0,avd,0) tsl=iff(avn==1,sup,res) Buy=crossover(close,tsl) Sell=crossunder(close,tsl) plotshape(Buy,"BUY", shape.labelup, location.belowbar, color.green, text="BUY",textcolor=color.black) plotshape(Sell,"SELL", shape.labeldown, location.abovebar, color.red, text="SELL",textcolor=color.black) colr = close>=tsl ? color.green : close<=tsl ? color.red : na plot(tsl, color=colr, linewidth=3, title="TSL") barcolor(Barcolor ? colr : na) bgcolor(Bgcolor ? colr :na) alertcondition(Buy, title="Buy Signal", message="Buy") alertcondition(Sell, title="Sell Signal", message="Sell") alen = input( 14, "ATR Length (default 14)" ) smooth = input( 3, "Smoothing" ) a1 = input( 0.5, "Multiplier 1" ) a2 = input( 1, "Multiplier 2" ) a3 = input( 3, "Multiplier 3" ) a4 = input( 5, "Multiplier 4" ) a5 = input( 10, "Multiplier 5" ) datr = atr( alen ) sclose = sma( close, smooth ) priceup1 = sclose + ( datr * a1 ) pricedn1 = sclose - ( datr * a1 ) priceup2 = sclose + ( datr * a2 ) pricedn2 = sclose - ( datr * a2 ) priceup3 = sclose + ( datr * a3 ) pricedn3 = sclose - ( datr * a3 ) priceup4 = sclose + ( datr * a4 ) pricedn4 = sclose - ( datr * a4 ) priceup5 = sclose + ( datr * a5 ) pricedn5 = sclose - ( datr * a5 ) //plot(priceup1, color=color.green ) //plot(pricedn1, color=color.red ) //plot(priceup2, color=color.green ) //plot(pricedn2, color=color.red ) //plot(priceup3, color=color.green ) plot(pricedn3, color=color.red ) plot(priceup4, color=color.green ) //plot(pricedn4, color=color.red ) plot(priceup5, color=color.green ) //plot(pricedn5, color=color.red ) //var labelu1 = label.new(bar_index, high, text='+'+tostring(a1)+'x', style= label.style_label_left) //var labeld1 = label.new(bar_index, high, text='-'+tostring(a1)+'x', style= label.style_label_left) //var labelu2 = label.new(bar_index, high, text='+'+tostring(a2)+'x', style= label.style_label_left) //var labeld2 = label.new(bar_index, high, text='-'+tostring(a2)+'x', style= label.style_label_left) var labelu3 = label.new(bar_index, high, text='+'+tostring(a3)+'x', style= label.style_label_left) var labeld3 = label.new(bar_index, high, text='-'+tostring(a3)+'x', style= label.style_label_left) var labelu4 = label.new(bar_index, high, text='+'+tostring(a4)+'x', style= label.style_label_left) //var labeld4 = label.new(bar_index, high, text='-'+tostring(a4)+'x', style= label.style_label_left) var labelu5 = label.new(bar_index, high, text='+'+tostring(a5)+'x', style= label.style_label_left) //var labeld5 = label.new(bar_index, high, text='-'+tostring(a5)+'x', style= label.style_label_left) //label.set_x(labelu1, 0) //label.set_y(labelu1, priceup1) //label.set_xloc(labelu1, time, xloc.bar_time) // label.set_yloc(labelu1, yloc.abovebar) //label.set_color(labelu1, color.green) //label.set_textcolor(labelu1, color.white) //label.set_x(labeld1, 0) //label.set_y(labeld1, pricedn1) //label.set_xloc(labeld1, time, xloc.bar_time) // label.set_yloc(labelu1, yloc.belowbar) //label.set_color(labeld1, color.red) //label.set_textcolor(labeld1, color.white) //label.set_x(labelu2, 0) //label.set_y(labelu2, priceup2) //label.set_xloc(labelu2, time, xloc.bar_time) //label.set_color(labelu2, color.green) //label.set_textcolor(labelu2, color.white) //label.set_x(labeld2, 0) //label.set_y(labeld2, pricedn2) //label.set_xloc(labeld2, time, xloc.bar_time) //label.set_color(labeld2, color.red) //label.set_textcolor(labeld2, color.white) //label.set_x(labelu3, 0) //label.set_y(labelu3, priceup3) //label.set_xloc(labelu3, time, xloc.bar_time) //label.set_color(labelu3, color.green) //label.set_textcolor(labelu3, color.white) label.set_x(labeld3, 0) label.set_y(labeld3, pricedn3) label.set_xloc(labeld3, time, xloc.bar_time) label.set_color(labeld3, color.red) label.set_textcolor(labeld3, color.white) label.set_x(labelu4, 0) label.set_y(labelu4, priceup4) label.set_xloc(labelu4, time, xloc.bar_time) label.set_color(labelu4, color.green) label.set_textcolor(labelu4, color.white) //label.set_x(labeld4, 0) //label.set_y(labeld4, pricedn4) //label.set_xloc(labeld4, time, xloc.bar_time) //label.set_color(labeld4, color.red) //label.set_textcolor(labeld4, color.white) label.set_x(labelu5, 0) label.set_y(labelu5, priceup5) label.set_xloc(labelu5, time, xloc.bar_time) label.set_color(labelu5, color.green) label.set_textcolor(labelu5, color.white) //label.set_x(labeld5, 0) //label.set_y(labeld5, pricedn5) //label.set_xloc(labeld5, time, xloc.bar_time) //label.set_color(labeld5, color.red) //label.set_textcolor(labeld5, color.white)
Distance from peak
https://www.tradingview.com/script/QPXMIBPB-Distance-from-peak/
harisCodes
https://www.tradingview.com/u/harisCodes/
15
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © harisCodes //@version=5 indicator("Distance from peak") var top = float(0) if (close>top) top := close distance = (top-close)/top plot(distance)
HarunoVolatility
https://www.tradingview.com/script/YJNUoeRo/
Sora_Haruno
https://www.tradingview.com/u/Sora_Haruno/
6
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Sora_Haruno //@version=5 indicator(title="HarunoVolatility", shorttitle="HaruVola", overlay=true,max_bars_back=5000,max_labels_count=500) tk = time(timeframe.period, "1900-2600") rd = time(timeframe.period, "0200-0800") ny = time(timeframe.period, "0800-1600") TOKYO = na(tk) ? na : color.new(color.blue, 75) London = na(rd) ? na : color.new(color.green, 75) NewYork = na(ny) ? na : color.new(color.red, 75) bgcolor(TOKYO, title="TK") bgcolor(London, title="RD") bgcolor(NewYork, title="NY") //市場ごとのボラティリティ関数 span_vola(int open_time,int close_time) => int span = na int s = na int now = hour //onaji = ERR if(open_time == close_time)//openとcloseが一緒だった時はエラー na //Nomal else if(open_time < close_time)//市場が日を跨がない時 if (0 <= now and now < open_time)//市場が開く前 s := now + 24 - close_time + 1 span := close_time - open_time else if(open_time <= now and now < close_time)//市場が開いている時 s := 0 span := now - open_time + 1 else if(close_time <= now and now <= 24)//市場が開いた後 s := now - close_time + 1 span := close_time - open_time else na //OverDay else if(open_time > close_time)//市場が日を跨ぐ時 if(open_time <= now or now < close_time)//市場が開いている時 s := 0 if(open_time <= now)//市場が開く前 span := now - open_time + 1 else//市場が開いた後 span := now + 24 - open_time + 1//なんか引っかかる else s := now - close_time + 1 span := close_time + 24 - open_time else//当てはまらない時 na hi_arr = array.new_float(span, 0.0) lo_arr = array.new_float(span, 0.0) for i = 0 to span-1 array.set(hi_arr,i,high[s+i]) array.set(lo_arr,i,low[s+i]) vola_hi = array.max(hi_arr) vola_lo = array.min(lo_arr) vola = vola_hi - vola_lo //ここまでが市場ごとのボラティリティ関数 //市場ごとの平均ボラティリティ関数 ave_vola(int open_time,int close_time,int days) => int s = na int span = na int now = hour float avola = na float total_high = 0.0 float total_low = 0.0 float total_v = na float vhi = na float vlo =na int k = na //開始位置 if(now < close_time) s := now - close_time + 25 else s := now - close_time + 1 //期間 if(open_time < close_time) span := close_time - open_time else span := close_time - open_time + 24 // hi_arr = array.new_float(span, 0.0) lo_arr = array.new_float(span, 0.0) for i = 0 to days-1 k := s + 24 * i for ii = 0 to span-1 array.set(hi_arr,ii,high[k+ii]) array.set(lo_arr,ii,low[k+ii]) vhi := array.max(hi_arr) vlo := array.min(lo_arr) total_high := vhi + total_high total_low := vlo + total_low //total_v := vhi - vlo + total_v total_v := total_high - total_low avola := total_v / days //市場ごとの平均ボラティリティ関数終了 //pips関数 pips_change() => int acp = na if(syminfo.mintick == 0.001) acp := 100 else if(syminfo.mintick == 0.00001) acp := 10000 else acp := 1000000000 //pips関数終了 //日足平均ボラティリティ関数 ave_Day_v(aDays) => total_hi = 0.0 total_lo = 0.0 dh = request.security(syminfo.ticker,"D",high) dl = request.security(syminfo.ticker,"D",low) for i = 0 to aDays-1 voHigh = dh[i] voLow = dl[i] total_hi := voHigh + total_hi total_lo := voLow + total_lo total_vo = total_hi - total_lo ave_vo = total_vo / aDays //日足平均関数終了 //日足ボラティリティ day_vola() => TodayHigh = request.security(syminfo.ticker,"D",high[0]) TodayLow = request.security(syminfo.ticker,"D",low[0]) TodayAverage = TodayHigh - TodayLow //日足ボラティリティ終了 dy1 =math.round(day_vola() * pips_change(),1) tk1 =math.round(span_vola(17,2) * pips_change(),1) rd1 =math.round(span_vola(2,8) * pips_change(),1) ny1 =math.round(span_vola(8,16) * pips_change(),1) dy5 =math.round(ave_Day_v(5) * pips_change(),1) tk5 =math.round(ave_vola(17,2,5) * pips_change(),1) rd5 =math.round(ave_vola(2,8,5) * pips_change(),1) ny5 =math.round(ave_vola(8,16,5) * pips_change(),1) dy25 =math.round(ave_Day_v(25) * pips_change(),1) tk25 =math.round(ave_vola(17,2,25) * pips_change(),1) rd25 =math.round(ave_vola(2,8,25) * pips_change(),1) ny25 =math.round(ave_vola(8,16,25) * pips_change(),1) dy75 =math.round(ave_Day_v(75) * pips_change(),1) tk75 =math.round(ave_vola(17,2,75) * pips_change(),1) rd75 =math.round(ave_vola(2,8,75) * pips_change(),1) ny75 =math.round(ave_vola(8,16,75) * pips_change(),1) var testTable = table.new(position = position.top_right, columns = 5, rows = 5, bgcolor = color.yellow, border_width = 1) if barstate.islast table.cell(table_id = testTable, column = 0, row = 0, text = "", bgcolor=color.teal) table.cell(table_id = testTable, column = 1, row = 0, text = "Day", bgcolor=color.teal) table.cell(table_id = testTable, column = 2, row = 0, text = "TK", bgcolor=color.teal) table.cell(table_id = testTable, column = 3, row = 0, text = "RD", bgcolor=color.teal) table.cell(table_id = testTable, column = 4, row = 0, text = "NY", bgcolor=color.teal) table.cell(table_id = testTable, column = 0, row = 1, text = "Today", bgcolor=color.teal) table.cell(table_id = testTable, column = 0, row = 2, text = "5D", bgcolor=color.teal) table.cell(table_id = testTable, column = 0, row = 3, text = "25D", bgcolor=color.teal) table.cell(table_id = testTable, column = 0, row = 4, text = "75D", bgcolor=color.teal) table.cell(table_id = testTable, column = 1, row = 1, text = str.tostring(dy1), bgcolor=color.teal) table.cell(table_id = testTable, column = 2, row = 1, text = str.tostring(tk1), bgcolor=color.teal) table.cell(table_id = testTable, column = 3, row = 1, text = str.tostring(rd1), bgcolor=color.teal) table.cell(table_id = testTable, column = 4, row = 1, text = str.tostring(ny1), bgcolor=color.teal) table.cell(table_id = testTable, column = 1, row = 2, text = str.tostring(dy5), bgcolor=color.teal) table.cell(table_id = testTable, column = 2, row = 2, text = str.tostring(tk5), bgcolor=color.teal) table.cell(table_id = testTable, column = 3, row = 2, text = str.tostring(rd5), bgcolor=color.teal) table.cell(table_id = testTable, column = 4, row = 2, text = str.tostring(ny5), bgcolor=color.teal) table.cell(table_id = testTable, column = 1, row = 3, text = str.tostring(dy25), bgcolor=color.teal) table.cell(table_id = testTable, column = 2, row = 3, text = str.tostring(tk25), bgcolor=color.teal) table.cell(table_id = testTable, column = 3, row = 3, text = str.tostring(rd25), bgcolor=color.teal) table.cell(table_id = testTable, column = 4, row = 3, text = str.tostring(ny25), bgcolor=color.teal) table.cell(table_id = testTable, column = 1, row = 4, text = str.tostring(dy75), bgcolor=color.teal) table.cell(table_id = testTable, column = 2, row = 4, text = str.tostring(tk75), bgcolor=color.teal) table.cell(table_id = testTable, column = 3, row = 4, text = str.tostring(rd75), bgcolor=color.teal) table.cell(table_id = testTable, column = 4, row = 4, text = str.tostring(ny75), bgcolor=color.teal)
PRAVIN HAJARE SMALL ENTRY & SMALL EXIT
https://www.tradingview.com/script/XcanM2qz-PRAVIN-HAJARE-SMALL-ENTRY-SMALL-EXIT/
pravinhajare
https://www.tradingview.com/u/pravinhajare/
23
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © ceyhun //@version=4 study("PRAVIN HAJARE SMALL ENTRY & SMALL EXIT", overlay=true) boxp = input(defval=5, title="Length", minval=1, maxval=500) LL = lowest(low, boxp) k1 = highest(high, boxp) k2 = highest(high, boxp - 1) k3 = highest(high, boxp - 2) NH = valuewhen(high > k1[1], high, 0) box1 = k3 < k2 TopBox = valuewhen(barssince(high > k1[1]) == boxp - 2 and box1, NH, 0) BottomBox = valuewhen(barssince(high > k1[1]) == boxp - 2 and box1, LL, 0) //plot(TopBox, linewidth=2, color=#4CAF50, title="TBbox") //plot(BottomBox, linewidth=2, color=#FF0000, title="BBbox") Buy = crossover(close, TopBox) Sell = crossunder(close, BottomBox) alertcondition(Buy, title="Buy Signal", message="B") alertcondition(Sell, title="Sell Signal", message="S") plotshape(Buy, style=shape.labelup, location=location.belowbar, color=#4CAF50, size=size.tiny, title="Buy Signal", text="B", textcolor=color.black) plotshape(Sell, style=shape.labeldown, location=location.abovebar, color=#FF0000, size=size.tiny, title="Sell Signal", text="S", textcolor=color.black)
PRAVIN HAJARE SMALL ENTRY & SMALL EXIT
https://www.tradingview.com/script/h7sYPzo2-PRAVIN-HAJARE-SMALL-ENTRY-SMALL-EXIT/
pravinhajare
https://www.tradingview.com/u/pravinhajare/
14
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © ceyhun //@version=4 study("PRAVIN HAJARE SMALL ENTRY & SMALL EXIT", overlay=true) boxp = input(defval=5, title="Length", minval=1, maxval=500) LL = lowest(low, boxp) k1 = highest(high, boxp) k2 = highest(high, boxp - 1) k3 = highest(high, boxp - 2) NH = valuewhen(high > k1[1], high, 0) box1 = k3 < k2 TopBox = valuewhen(barssince(high > k1[1]) == boxp - 2 and box1, NH, 0) BottomBox = valuewhen(barssince(high > k1[1]) == boxp - 2 and box1, LL, 0) //plot(TopBox, linewidth=2, color=#4CAF50, title="TBbox") //plot(BottomBox, linewidth=2, color=#FF0000, title="BBbox") Buy = crossover(close, TopBox) Sell = crossunder(close, BottomBox) alertcondition(Buy, title="Buy Signal", message="B") alertcondition(Sell, title="Sell Signal", message="S") plotshape(Buy, style=shape.labelup, location=location.belowbar, color=#4CAF50, size=size.tiny, title="Buy Signal", text="B", textcolor=color.black) plotshape(Sell, style=shape.labeldown, location=location.abovebar, color=#FF0000, size=size.tiny, title="Sell Signal", text="S", textcolor=color.black)
Mayer MA
https://www.tradingview.com/script/w1QSsnCA-mayer-ma/
diemock
https://www.tradingview.com/u/diemock/
63
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © diemock //@version=4 study("Mayer MA", overlay = true) res = input("D", "Resolution") d_tckr=security(syminfo.tickerid, "D", close) w_tckr=security(syminfo.tickerid, "W", close) tckr = security(syminfo.tickerid, res, close) getMaLen() => if bar_index < 200 bar_index + 1 else 200 //200 Week Moving Average Heatmap MA200 = sma(d_tckr, getMaLen()) wMA200 = wma(d_tckr, getMaLen()) Mayer = hl2 / MA200 lowMA=plot(MA200 * 0.55, transp = 100) buylvl=plot(MA200 * 1.1, color=color.green) plot(MA200 * 1.7, color=color.white) selllvl=plot(MA200 * 2.5,color=color.red) hiMA=plot(MA200 * 5, transp = 100) lowWMA=plot(wMA200 * 0.55, color = color.white, transp = 100) hiWMA=plot(wMA200 * 5, color = color.white, transp = 100) fill(lowMA, lowWMA, color = color.green, transp = 50) fill(hiMA, hiWMA, color = color.red, transp = 50) //RSI r = sma(rsi(d_tckr, 8), 4) ob=0.0 os=0.0 ob := cross(r, 70) and rising(r, 2)? d_tckr : ob[1] os := cross(r, 30) and falling(r, 2)? d_tckr : os[1] fill(lowWMA,hiMA,d_tckr<os?#34ebb4:na, transp=90) fill(lowWMA,hiMA,d_tckr>ob?#e62595:na, transp=90) //Stoch RSI rsi1 = rsi(d_tckr, 14) stoch = sma(stoch(rsi1, rsi1, rsi1, 14), 3) //RSI up = rma(max(change(d_tckr), 0), 14) down = rma(-min(change(d_tckr), 0), 14) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) fill(lowWMA,hiMA,stoch<20 and rsi < 30?color.aqua:na, transp=65) fill(lowWMA,hiMA,stoch>80 and rsi > 70?color.maroon:na, transp=60)
Bollys Perfect Candle Entry
https://www.tradingview.com/script/9Co9xhi7-Bollys-Perfect-Candle-Entry/
essjayeire
https://www.tradingview.com/u/essjayeire/
45
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // This indicator is a combination of multiple open sources indicators // Squeeze Momentum Indicator [LazyBear] SQZMOM_LB // [NM]Improved Linear Regression Bull and Bear Power v02 BBP_NM_v02 // Cheezus by matheaufx // © essjayeire //@version=5 indicator(title="Bollys Perfect Candle Entry", shorttitle="Bollys Perfect Candle Entry", overlay=true, max_bars_back = 2000, max_labels_count=500) src_1 = close src_2 = close[1] src_3 = close[2] // [NM]Improved Linear Regression Bull and Bear Power v02 BBP_NM_v02 window = input.int(title='BBP Lookback Window:', defval=10) smap = input.int(title='BBP Smooth factor', defval=5, minval=2, maxval=10) sigma = input.int(title='BBP Sigma', defval=6) f_exp_lr(_height, _length)=> _ret = _height + (_height/_length) h_value = ta.highest(src_1, window) l_value = ta.lowest(src_1, window) h_bar = bar_index - ta.highestbars(src_1, window) l_bar = bar_index - ta.lowestbars(src_1, window) bbp_bear = 0-(f_exp_lr(h_value-src_1, bar_index-h_bar) > 0 ? f_exp_lr(h_value-src_1, bar_index-h_bar) : 0) bbp_bull = 0+(f_exp_lr(src_1-l_value, bar_index-l_bar) > 0 ? f_exp_lr(src_1-l_value, bar_index-l_bar) : 0) direction = true ? ta.alma(bbp_bull + bbp_bear, smap, 0.9, sigma) : bbp_bull*3 + bbp_bear*3 bbp_signal = true ? direction[0] > direction[1] ? 0 : direction[0] < direction[1] ? 1 : -1 : direction > bbp_bull ? 0 : direction < bbp_bear ? 1 : -1 // Squeeze Momentum Indicator [LazyBear] SQZMOM_LB lengthKC=input.int(20, title="SQZMOM KC Length") val = ta.linreg(src_1 - math.avg(math.avg(ta.highest(high, lengthKC), ta.lowest(low, lengthKC)),ta.sma(src_1,lengthKC)), lengthKC,0) bull_candle_signal = val > 0 ? val > nz(val[1]) ? 0 : -1 : -1 bear_candle_signal = val < 0 ? val < nz(val[1]) ? 1 : -1 : -1 // Cheezus by matheaufx hmalength = input.int(9, minval=1, title="CHEEZUS HMA Length") smoothK = input.int(5, minval=1, title="CHEEZUS K Smoothing") smoothD = input.int(5, minval=1, title="CHEEZUS D Smoothing") lengthRSI = input.int(15, minval=1, title="CHEEZUS RSI Length") lengthStoch = input.int(15, minval=1, title="CHEEZUS Stoch Length") shift = input.int(2, minval=0, title="CHEEZUS HMA Line Shift") hullMA2 = ta.hma(src_3, hmalength) hullMA3 = ta.hma(src_2, hmalength) buyLabels = input.string(title="Buy Label", defval="On", options=["On", "Off"]) sellLabels = input.string(title="Sell Label", defval="On", options=["On", "Off"]) lossLabel = input.string(title="Loss Label" , defval="Off", options=["On", "Off"]) bull = input(#7357c2, title="Up Trend") bear = input(#c3025d, title="Down Trend") loss = input(#2079f4, "downTrend") colorLogic = src_1 > hullMA2 ? bull : bear plot(hullMA2, offset=shift, style=plot.style_line, color=colorLogic, linewidth=4, title="WM", editable=false) rsi1 = ta.rsi(src_1, lengthRSI) k = ta.hma(ta.stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK) d = ta.ema(k, smoothD) // Vol symbols = syminfo.mintick == 1 ? 1 : syminfo.mintick == 0.1 ? 10 : syminfo.mintick == 0.001 ? 100 : syminfo.mintick == 0.0001 ? 10000 : syminfo.mintick == 0.01 ? 100 : na pipsBuy = (high - open) * symbols pipsBuyClose = (close - open) * symbols pipsSell = (low - open) * symbols pipsSellClose = (close - open) * symbols pipsSellLogic = pipsSell * -1 pipsSellCloseLogic = pipsSellClose * -1 // Find Lowest Pip Value pipsLossH = pipsBuy < 10 ? loss : bull pipsLossL = pipsSellLogic < 10 ? loss : bear HH = lossLabel == "On" and pipsBuy < 10 ? loss : bull LL = lossLabel == "On" and pipsSellLogic < 10 ? loss : bear // logic and labels buy2= close[1] > hullMA2 and k[1] >= 66 and k >= 66 and close[1] >= close[2] and close[1] > hullMA3 if(buy2 and buyLabels == "On" and bull_candle_signal == 0 and bbp_signal == 0) label.new(bar_index, low, text="buy", color=HH, textcolor=color.white, size = size.normal, style= label.style_label_up) sell2 = close[1] < hullMA2 and k[1] <= 33 and k<=33 and close[1] <= close[2] and close[1] < hullMA3 if(sell2 and sellLabels == "On" and bear_candle_signal == 1 and bbp_signal == 1) label.new(bar_index, high, text="Sell", color=LL, textcolor=color.white, size=size.normal, style = label.style_label_down) //label.new(bar_index, low, text=str.tostring(pipsSellLogic) + " Pips", color=LL, textcolor=color.white, size=size.normal, style=label.style_label_up)
ATR Trailing Stop v5
https://www.tradingview.com/script/77F1NKh1-ATR-Trailing-Stop-v5/
TradeAutomation
https://www.tradingview.com/u/TradeAutomation/
842
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // @version = 5 // Author = TradeAutomation indicator(title="ATR Trailing Stop v5", shorttitle="ATR Trailing Stop", overlay=true, timeframe="", timeframe_gaps=false) ATRPeriod = input.int(12, "ATR Period", tooltip = "This is the number of bars back that the script uses to calculate the Average True Range.") ATRMultiplier = input.float(3, "ATR Multiplier", step=.1, tooltip = "This is the multiple of the ATR average that will function as the trail.") ATR = ta.atr(ATRPeriod) Stop = ATRMultiplier*ATR var ATRTrailingStop = 0.0 ATRTrailingStop := if close>ATRTrailingStop[1] and close[1]>ATRTrailingStop[1] math.max(ATRTrailingStop[1], close-Stop) else if close<ATRTrailingStop[1] and close[1]<ATRTrailingStop[1] math.min(ATRTrailingStop[1], close+Stop) else if close>ATRTrailingStop[1] close-Stop else close+Stop var Position = 0.0 Position := if close[1]<ATRTrailingStop[1] and close>ATRTrailingStop[1] 1 else if close[1]>ATRTrailingStop[1] and close<ATRTrailingStop[1] -1 else Position[1] PlotColor = Position == -1 ? color.red: Position == 1 ? color.green : color.navy plot(ATRTrailingStop, color=PlotColor, linewidth=input(1, "Line Width"), title="ATR Trailing Stop")
Circular Barplot - Oscillators Sentiment [LuxAlgo]
https://www.tradingview.com/script/JzrxU03D-Circular-Barplot-Oscillators-Sentiment-LuxAlgo/
LuxAlgo
https://www.tradingview.com/u/LuxAlgo/
745
study
5
CC-BY-NC-SA-4.0
// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/ // © LuxAlgo //@version=5 indicator("Circular Barplot - Oscillators Sentiment [LuxAlgo]",overlay=true,max_lines_count=500,scale=scale.none) width = input.int(50,step=10) spacing = input.float(4.,minval=1) thickness = input.int(3) offset = input.int(10) src = input(close) gradient = input(false,inline='gradient') grad_a = input(#ff1100,'',inline='gradient') grad_b = input(#2157f3,'',inline='gradient') grad_c = input(#00bcd4,'',inline='gradient') //---- rsi_len = input(14,'RSI     ',inline='inline1',group='Oscillators') rsi_col = input(#ff1100,'',inline='inline1',group='Oscillators') st_len = input(14,'%K     ',inline='inline1',group='Oscillators') st_col = input(#ff5d00,'',inline='inline1',group='Oscillators') r_len = input(14,'ROSC  ',inline='inline2',group='Oscillators') r_col = input(#0cb51a,'',inline='inline2',group='Oscillators') wpr_len = input(14,'WPR   ',inline='inline2',group='Oscillators') wpr_col = input(#2157f3,'',inline='inline2',group='Oscillators') pr_len = input(14,'%RANK',inline='inline3',group='Oscillators') pr_col = input(#673ab7,'',inline='inline3',group='Oscillators') mfi_len = input(14,'MFI    ',inline='inline3',group='Oscillators') mfi_col = input(#e91e63,'',inline='inline3',group='Oscillators') //------------------------------------------------------------------------------ n = bar_index+width+offset lset(l,x1,y1,x2,y2,col,width)=> line.set_xy1(l,x1,y1) line.set_xy2(l,x2,y2) line.set_color(l,col) line.set_width(l,width) var rsi_lines = array.new_line(0) var st_lines = array.new_line(0) var r_lines = array.new_line(0) var wpr_lines = array.new_line(0) var pr_lines = array.new_line(0) var mfi_lines = array.new_line(0) if barstate.isfirst for i = 0 to 360 by 10 array.push(rsi_lines,line.new(na,na,na,na)) array.push(st_lines,line.new(na,na,na,na)) array.push(r_lines,line.new(na,na,na,na)) array.push(wpr_lines,line.new(na,na,na,na)) array.push(pr_lines,line.new(na,na,na,na)) array.push(mfi_lines,line.new(na,na,na,na)) l(Line,r,len,col_a,col_b,width_a,width_b)=> int prev_x = na float prev_y = na nl = 0 for i = 0 to 360 by 10 x = r*math.sin(math.toradians(i)) y = r*math.cos(math.toradians(i)) css = gradient ? color.from_gradient(i,180,360,color.from_gradient(i,0,180,grad_a,grad_b),grad_c) : col_a lset(array.get(Line,nl),prev_x,prev_y,n+math.round(x),y, i > len ? col_b : css, i > len ? width_b : width_a) prev_x := n+math.round(x) prev_y := y nl += 1 //------------------------------------------------------------------------------ rsi = ta.rsi(src,rsi_len) angle_rsi = math.round(rsi/100*360) stoch = ta.stoch(src,src,src,st_len) angle_stoch = math.round(stoch/100*360) rosc = ta.correlation(src,n,r_len) angle_rosc = math.round((.5*rosc+.5)*360) wpr = ta.wpr(wpr_len) angle_wpr = math.round((wpr/100 + 1)*360) pr = ta.percentrank(src,pr_len) angle_pr = math.round(pr/100*360) mfi = ta.mfi(src,mfi_len) angle_mfi = math.round(mfi/100*360) //------------------------------------------------------------------------------ var tb = table.new(position.top_right,2,6) if barstate.islast //Circular Plot l(rsi_lines,width,angle_rsi,rsi_col,color.gray,thickness,1) l(st_lines,width-spacing,angle_stoch,st_col,color.gray,thickness,1) l(r_lines,width-spacing*2,angle_rosc,r_col,color.gray,thickness,1) l(wpr_lines,width-spacing*3,angle_wpr,wpr_col,color.gray,thickness,1) l(pr_lines,width-spacing*4,angle_pr,pr_col,color.gray,thickness,1) l(mfi_lines,width-spacing*5,angle_mfi,mfi_col,color.gray,thickness,1) //Center Labels avg = math.avg(angle_rsi,angle_stoch,angle_rosc,angle_wpr,angle_pr,angle_mfi)/3.6 avg_css = gradient ? color.from_gradient(avg,50,100,color.from_gradient(avg,0,50,grad_a,grad_b),grad_c) : color.gray label.delete(label.new(n,0,str.tostring(avg,'#.##')+'%',color=avg_css, style=label.style_label_center,textcolor=color.white,textalign=text.align_center,size=size.normal)[1]) //Table Cells table.cell(tb,0,0,'1 - RSI',text_color=color.white,bgcolor=rsi_col,text_halign=text.align_left) table.cell(tb,0,1,'2 - %K',text_color=color.white,bgcolor=st_col,text_halign=text.align_left) table.cell(tb,0,2,'3 - ROSC',text_color=color.white,bgcolor=r_col,text_halign=text.align_left) table.cell(tb,0,3,'4 - WPR',text_color=color.white,bgcolor=wpr_col,text_halign=text.align_left) table.cell(tb,0,4,'5 - %RANK',text_color=color.white,bgcolor=pr_col,text_halign=text.align_left) table.cell(tb,0,5,'6 - MFI',text_color=color.white,bgcolor=mfi_col,text_halign=text.align_left) table.cell(tb,1,0,str.tostring(rsi,'#.##'),text_color=color.white,bgcolor=rsi_col) table.cell(tb,1,1,str.tostring(stoch,'#.##'),text_color=color.white,bgcolor=st_col) table.cell(tb,1,2,str.tostring(rosc,'#.##'),text_color=color.white,bgcolor=r_col) table.cell(tb,1,3,str.tostring(wpr,'#.##'),text_color=color.white,bgcolor=wpr_col) table.cell(tb,1,4,str.tostring(pr,'#.##'),text_color=color.white,bgcolor=pr_col) table.cell(tb,1,5,str.tostring(mfi,'#.##'),text_color=color.white,bgcolor=mfi_col)
KDJ stochastic indicator
https://www.tradingview.com/script/BNpuF7dG-KDJ-stochastic-indicator/
farzinsabbagh
https://www.tradingview.com/u/farzinsabbagh/
610
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © farzinsabbagh // This Calculation is Based on this post https://www.learnforexc.com/what-is-the-kdj-stochastic-oscillator-and-the-calculation-method-of-the-kdj-indicator/ //@version=4 study("KDJ stochastic indicator",shorttitle="KDJ",overlay=false) RangeLength = input(14, title="Range Length(K Length)", minval=1) KsmoothLength = input(3, title="K Smoothing Length", minval=1, type=input.integer) DsmoothLength = input(3, title="D Smoothing Length", minval=1, type=input.integer) JsmoothLength = input(3, title="J Smoothing Length", minval=1, type=input.integer) //immature stochastic index or RSV RSV = stoch(close, high, low, RangeLength) var K = 0.0 var D = 0.0 K := (0.666)*nz(K[1],50)+(0.334)*nz(RSV,50) D := (0.666)*nz(D[1],50)+(0.334)*nz(K,50) J = sma(3 * K - 2 * D,JsmoothLength) // Colors and Plots K_Color = color.rgb(26, 147, 111,0) D_Color = color.rgb(136, 212, 152,0) J_Color = color.rgb(198, 218, 191,0) h0 = hline(80, "UpperBought",editable=false) h1 = hline(20, "OverSold",editable=false) h2 = hline(50, "Middle Line",editable=false) hzero = hline(0, "Zero Line",editable=false) hmax = hline(100,"Max Line",editable=false) K_Smoothed = sma(K,KsmoothLength) D_Smoothed = sma(D,DsmoothLength) Buy = crossover(J,0) Sell = crossunder(J,100) fill(h0, h1, color=color.rgb(17, 75, 95, 90), title="Background",editable=false) fill(hzero,h1,color=color.green,editable=false) fill(hmax,h0, color=color.red,editable=false) plot(K_Smoothed, color = K_Color,title="K") plot(D_Smoothed, color = D_Color,title="D") plot(J, color = J_Color,title="J")
RSI Trend Strategy
https://www.tradingview.com/script/rZoODrO4-RSI-Trend-Strategy/
cultivateforex
https://www.tradingview.com/u/cultivateforex/
25
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © cultivateforex //@version=5 indicator('RSI Trend Strategy', overlay=true) dirmov(len) => up = ta.change(high) down = -ta.change(low) truerange = ta.rma(ta.tr, len) plus = fixnan(100 * ta.rma(up > down and up > 0 ? up : 0, len) / truerange) minus = fixnan(100 * ta.rma(down > up and down > 0 ? down : 0, len) / truerange) [plus, minus] adx(LWdilength, LWadxlength) => [plus, minus] = dirmov(LWdilength) sum = plus + minus adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), LWadxlength) [adx, plus, minus] CalcADX() => LWadxlength = input(8, title='ADX period',group="ADX") LWdilength = input(9, title='DMI Length',group="ADX") [ADX, up, down] = adx(LWdilength, LWadxlength) LWADX = (ADX - 15) * 2.5 [LWADX,up > down] CalcRSI() => len = input.int(14, minval=1, title="Length",group="RSI") src = input(close, "Source",group="RSI") up = ta.rma(math.max(ta.change(src), 0), len) down = ta.rma(-math.min(ta.change(src), 0), len) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) [LWADX,adx_bull] = CalcADX() rsi_v = CalcRSI() ADXThreshold = input.int(100,group="Signal") RSIBuyThreshold = input.int(70,group="Signal") RSISellThreshold = input.int(30,group="Signal") BuySignal_ = adx_bull and LWADX > ADXThreshold and rsi_v > RSIBuyThreshold SellSignal_ = adx_bull==false and LWADX > ADXThreshold and rsi_v < RSISellThreshold BuySignal = BuySignal_ and BuySignal_[1]==false SellSignal = SellSignal_ and SellSignal_[1] == false plotshape(BuySignal, title='Buy Signal', text='BUY', textcolor=color.new(color.white, 0), style=shape.labelup, size=size.normal, location=location.belowbar, color=color.new(color.green, 0)) plotshape(SellSignal, title='Sell Signal', text='SELL', textcolor=color.new(color.white, 0), style=shape.labeldown, size=size.normal, location=location.abovebar, color=color.new(color.red, 0)) alertcondition(BuySignal,'BuySignal','BuySignal') alertcondition(SellSignal,'SellSignal','SellSignal')
RKs Notepad++ Pine Script V5
https://www.tradingview.com/script/6Jacp8xE-RKs-Notepad-Pine-Script-V5/
RodrigoKazuma
https://www.tradingview.com/u/RodrigoKazuma/
284
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © RodrigoKazuma //@version=5 // ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ // ├───── Notepad++ Pine Script Editor Dark Theme, Syntax Highlighting and Auto-Completion for v5 ────────┤ { // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ // // ┌──────────────────────────────────────────────● Notes ●───────────────────────────────────────────────┐ // │ │ // │ After reading all the new names and renames that Pine Script V5 brought to us, I knew that my old Notepad++ │ // │ User Defined Language (UDL) would need a big update, so I decided to do a complete remake using the same Dark │ // │ color scheme theme of the Pine Editor. │ // │ │ // │ Then, I create a Notepad++ Theme and the Auto-Completion file with the Parameter hints for every built-in │ // │ function to make everything look nicer. │ // │ │ // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ // ┌──────────────────────────────────────────● Installation ●────────────────────────────────────────────┐ // │ │ // │ • This is not an indicator!! │ // │ • These are 3 XML files to copy and paste inside the Notepad++ folder. │ // │ • You can use any Notepad Software to create the XML files. │ // │ • The main Notepad++ folder is normally on %AppData%\Notepad++\ │ // │ • To avoid mistakes, always make a Backup of your files before anything. │ // │ │ // │ • Just follow these steps: │ // │ 1. open a New Document File; │ // │ 2. Copy everything between ↓↓↓ and ↑↑↑ symbols to this new document; │ // | 3. Remove the "//" of every single line; │ // │ 4. Save each document with the correct name in the right folder; │ // │ 5. Restart the Notepad++ │ // │ │ // │ • If you have some problem to install, just ask me here. │ // │ │ // │ • But, in any case, here the link to these files on my gitHub: │ // │ https://github.com/RodrigoKazuma/PineScript-Utils │ // │ │ } // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ // // // @description Notepad++ Pine Script Editor Dark Theme, Syntax Highlighting and Auto-Completion for v5 indicator("RKs Notepad++ Pine Script V5", overlay=true) plot(close, "Nothing to see here", color(na)) // ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ // ├────────────────────────────── Pine Script User Defined Language (UDL) ───────────────────────────────┤ { // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ // @description .xml file to make Notepad++ Syntax Highlighting Pine Script keywords via UDL // @path %AppData%\Notepad++\userDefineLangs // @filename PineScript.xml // Code to Copy ↓↓↓ // // <!--// // File name: PineScript.xml // Description: PineScript User Defined Language (UDL) Dark Color Scheme by RK. // Inspired by the TradingView Pine Editor Theme // Notepad++ User Defined Language // Supported version: Pine V5 - October 2021 Version // Created by: Rodrigo Felipe Silveira RK (rodrigokazuma at gmail dot com) // Released: 2021-11-08 // License: MIT // //--> // <NotepadPlus> // <UserLang name="PineScript" ext="pine" udlVersion="2.1"> // <Settings> // <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="2" /> // <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> // </Settings> // <KeywordLists> // <Keywords name="Comments">00// 01 02 03 04</Keywords> // <Keywords name="Numbers, prefix1"></Keywords> // <Keywords name="Numbers, prefix2">#</Keywords> // <Keywords name="Numbers, extras1">A B C D E F a b c d e f</Keywords> // <Keywords name="Numbers, extras2"></Keywords> // <Keywords name="Numbers, suffix1"></Keywords> // <Keywords name="Numbers, suffix2"></Keywords> // <Keywords name="Numbers, range"></Keywords> // <Keywords name="Operators1">!= % %= * *= + += , - -= / /= : ; &lt; &lt;= = == =&gt; &gt; ?</Keywords> // <Keywords name="Operators2"></Keywords> // <Keywords name="Folders in code1, open">( alert( alertcondition( array.avg( array.clear( array.concat( array.copy( array.covariance( array.fill( array.from( array.get( array.includes( array.indexof( array.insert( array.join( array.lastindexof( array.max( array.median( array.min( array.mode( array.new_bool( array.new_box( array.new_color( array.new_float( array.new_int( array.new_label( array.new_line( array.new_string( array.new_table( array.pop( array.push( array.range( array.remove( array.reverse( array.set( array.shift( array.size( array.slice( array.sort( array.standardize( array.stdev( array.sum( array.unshift( array.variance( barcolor( bgcolor( bool( box( box.delete( box.get_bottom( box.get_left( box.get_right( box.get_top( box.new( box.set_bgcolor( box.set_border_color( box.set_border_style( box.set_border_width( box.set_bottom( box.set_extend( box.set_left( box.set_lefttop( box.set_right( box.set_rightbottom( box.set_top( color( color.b( color.from_gradient( color.g( color.new( color.r( color.rgb( color.t( dayofmonth( dayofweek( fill( fixnan( float( hline( hour( input( input.bool( input.color( input.float( input.int( input.price( input.session( input.source( input.string( input.symbol( input.time( input.timeframe( int( label( label.delete( label.get_text( label.get_x( label.get_y( label.new( label.set_color( label.set_size( label.set_style( label.set_text( label.set_textalign( label.set_textcolor( label.set_tooltip( label.set_x( label.set_xloc( label.set_xy( label.set_y( label.set_yloc( line( line.delete( line.get_price( line.get_x1( line.get_x2( line.get_y1( line.get_y2( line.new( line.set_color( line.set_extend( line.set_style( line.set_width( line.set_x1( line.set_x2( line.set_xloc( line.set_xy1( line.set_xy2( line.set_y1( line.set_y2( math.abs( math.acos( math.asin( math.atan( math.avg( math.ceil( math.cos( math.exp( math.floor( math.log( math.log10( math.max( math.min( math.pow( math.random( math.round( math.round_to_mintick( math.sign( math.sin( math.sqrt( math.sum( math.tan( math.todegrees( math.toradians( max_bars_back( minute( month( na( nz( plot( plotarrow( plotbar( plotcandle( plotchar( plotshape( request.dividends( request.earnings( request.financial( request.quandl( request.security( request.splits( runtime.error( second( str.format( str.length( str.replace_all( str.split( str.tonumber( str.tostring( strategy.cancel( strategy.cancel_all( strategy.close( strategy.close_all( strategy.closedtrades.commission( strategy.closedtrades.entry_bar_index( strategy.closedtrades.entry_price( strategy.closedtrades.entry_time( strategy.closedtrades.exit_bar_index( strategy.closedtrades.exit_price( strategy.closedtrades.exit_time( strategy.closedtrades.max_drawdown( strategy.closedtrades.max_runup( strategy.closedtrades.profit( strategy.closedtrades.size( strategy.convert_to_account( strategy.convert_to_symbol( strategy.entry( strategy.exit( strategy.opentrades.commission( strategy.opentrades.entry_bar_index( strategy.opentrades.entry_price( strategy.opentrades.entry_time( strategy.opentrades.max_drawdown( strategy.opentrades.max_runup( strategy.opentrades.profit( strategy.opentrades.size( strategy.order( strategy.risk.allow_entry_in( strategy.risk.max_cons_loss_days( strategy.risk.max_drawdown( strategy.risk.max_intraday_filled_orders( strategy.risk.max_intraday_loss( strategy.risk.max_position_size( string( ta.alma( ta.atr( ta.barssince( ta.bb( ta.bbw( ta.cci( ta.change( ta.cmo( ta.cog( ta.correlation( ta.cross( ta.crossover( ta.crossunder( ta.cum( ta.dev( ta.dmi( ta.ema( ta.falling( ta.highest( ta.highestbars( ta.hma( ta.kc( ta.kcw( ta.linreg( ta.lowest( ta.lowestbars( ta.macd( ta.median( ta.mfi( ta.mode( ta.mom( ta.percentile_linear_interpolation( ta.percentile_nearest_rank( ta.percentrank( ta.pivothigh( ta.pivotlow( ta.range( ta.rising( ta.rma( ta.roc( ta.rsi( ta.sar( ta.sma( ta.stdev( ta.stoch( ta.supertrend( ta.swma( ta.tr( ta.tsi( ta.valuewhen( ta.variance( ta.vwap( ta.vwma( ta.wma( ta.wpr( table( table.cell( table.cell_set_bgcolor( table.cell_set_height( table.cell_set_text( table.cell_set_text_color( table.cell_set_text_halign( table.cell_set_text_size( table.cell_set_text_valign( table.cell_set_width( table.clear( table.delete( table.new( table.set_bgcolor( table.set_border_color( table.set_border_width( table.set_frame_color( table.set_frame_width( table.set_position( ticker.heikinashi( ticker.kagi( ticker.linebreak( ticker.modify( ticker.new( ticker.pointfigure( ticker.renko( time( time_close( timestamp( weekofyear( year(</Keywords> // <Keywords name="Folders in code1, middle"></Keywords> // <Keywords name="Folders in code1, close">)</Keywords> // <Keywords name="Folders in code2, open"></Keywords> // <Keywords name="Folders in code2, middle"></Keywords> // <Keywords name="Folders in code2, close"></Keywords> // <Keywords name="Folders in comment, open">{ [ (</Keywords> // <Keywords name="Folders in comment, middle"></Keywords> // <Keywords name="Folders in comment, close">} ] )</Keywords> // <Keywords name="Keywords1">and not or break continue else &apos;else if&apos; if while for export import series simple switch var varip bool box color float int label line string table</Keywords> // <Keywords name="Keywords2">@description @version @function @param @returns @ &#x2190; &#x2192; &#x21B3; &#x2234; &#x25BA; &#x25C4; &#x25CF; &#x2B9A; &#x2022; &#x00A9;</Keywords> // <Keywords name="Keywords3">ANY ATR FIFO FQ FY NaN TTM Traditional adjustment.dividends adjustment.none adjustment.splits alert.freq_all alert.freq_once_per_bar alert.freq_once_per_bar_close barmerge.gaps_off barmerge.gaps_on barmerge.lookahead_off barmerge.lookahead_on currency.AUD currency.CAD currency.CHF currency.EUR currency.GBP currency.HKD currency.JPY currency.NOK currency.NONE currency.NZD currency.RUB currency.SEK currency.SGD currency.TRY currency.USD currency.ZAR dayofweek.friday dayofweek.monday dayofweek.saturday dayofweek.sunday dayofweek.thursday dayofweek.tuesday dayofweek.wednesday display.all display.none dividends.gross dividends.net earnings.actual earnings.estimate earnings.standardized extend.both extend.left extend.none extend.right format.inherit format.mintick format.percent format.price format.volume hline.style_dashed hline.style_dotted hline.style_solid label.style_arrowdown label.style_arrowup label.style_circle label.style_cross label.style_diamond label.style_flag label.style_label_center label.style_label_down label.style_label_left label.style_label_lower_left label.style_label_lower_right label.style_label_right label.style_label_up label.style_label_upper_left label.style_label_upper_right label.style_none label.style_square label.style_triangledown label.style_triangleup label.style_xcross line.style_arrow_both line.style_arrow_left line.style_arrow_right line.style_dashed line.style_dotted line.style_solid location.abovebar location.absolute location.belowbar location.bottom location.top order.ascending order.descending plot.style_area plot.style_areabr plot.style_circles plot.style_columns plot.style_cross plot.style_histogram plot.style_line plot.style_linebr plot.style_stepline plot.style_stepline_diamond position.bottom_center position.bottom_left position.bottom_right position.middle_center position.middle_left position.middle_right position.top_center position.top_left position.top_right scale.left scale.none scale.right session.extended session.regular shape.arrowdown shape.arrowup shape.circle shape.cross shape.diamond shape.flag shape.labeldown shape.labelup shape.square shape.triangledown shape.triangleup shape.xcross size.auto size.huge size.large size.normal size.small size.tiny splits.denominator splits.numerator strategy.cash strategy.commission.cash_per_contract strategy.commission.cash_per_order strategy.commission.percent strategy.direction.all strategy.direction.long strategy.direction.short strategy.fixed strategy.long strategy.oca.cancel strategy.oca.none strategy.oca.reduce strategy.percent_of_equity strategy.short text.align_bottom text.align_center text.align_left text.align_right text.align_top xloc.bar_index xloc.bar_time yloc.abovebar yloc.belowbar yloc.price color.aqua color.black color.blue color.fuchsia color.gray color.green color.lime color.maroon color.navy color.olive color.orange color.purple color.red color.silver color.teal color.white color.yellow</Keywords> // <Keywords name="Keywords4">false true library indicator strategy study</Keywords> // <Keywords name="Keywords5">aadjustment adxSmoothing alert_message angle atrPeriod backtest_fill_limits_assumption base blue border_color border_style border_width bordercolor bottom bottom_color bottom_value calc_on_every_tick calc_on_order_fills char close_entries_rule colordown colorup column columns comment commission_type commission_value condition confirm contracts count currency dateString day default_qty_type default_qty_value defval degrees diLength direction display editable end_column end_row explicit_plot_zorder exponent expression extend factor fastlen field fillgaps financial_id floor format formatString frame_color frame_width freq from_entry gaps green group handle_na height histbase hline1 hline2 id1 id2 id ignore_invalid_symbol inc index index_from index_to initial_capital initial_value inline join left leftbars length limit linestyle linewidth location long_length lookahead loss margin_long margin_short max max_boxes_count max_labels_count max_lines_count maxheight maxval message min minheight minval mult num number number_of_lines oca_name oca_type offset options order overlay param percentage period plot1 plot2 position precision prefix price process_orders_on_close profit pyramiding qty qty_percent radians red replacement reversal right rightbars row rows scale seed separator session short_length shorttitle show_last siglen sigma size slippage slowlen source1 source2 source start start_column start_row step stop style symbol table_id target text text_color text_halign text_size text_valign textalign textcolor ticker tickerid timeframe timeframe_gaps timezone title tooltip top top_color top_value trackprice trade_num trail_offset trail_points trail_price transp type useTrueRange value when wickcolor width x1 x2 x xloc y1 y2 y yloc &#x000D;&#x000A;max_bars_back bgcolor</Keywords> // <Keywords name="Keywords6">catch class do ellipse in is polygon range return struct throw try</Keywords> // <Keywords name="Keywords7">barstate.isconfirmed barstate.isfirst barstate.ishistory barstate.islast barstate.islastconfirmedhistory barstate.isnew barstate.isrealtime session.ismarket session.ispostmarket session.ispremarket timeframe.isdaily timeframe.isdwm timeframe.isintraday timeframe.isminutes timeframe.ismonthly timeframe.isseconds timeframe.isweekly box.all chart.bg_color chart.fg_color label.all line.all table.all</Keywords> // <Keywords name="Keywords8">bar_index hl2 hlc3 math.e math.phi math.pi math.rphi ohlc4 strategy.account_currency strategy.closedtrades strategy.equity strategy.eventrades strategy.grossloss strategy.grossprofit strategy.initial_capital strategy.losstrades strategy.max_contracts_held_all strategy.max_contracts_held_long strategy.max_contracts_held_short strategy.max_drawdown strategy.netprofit strategy.openprofit strategy.opentrades strategy.position_avg_price strategy.position_entry_name strategy.position_size strategy.wintrades syminfo.basecurrency syminfo.currency syminfo.description syminfo.mintick syminfo.pointvalue syminfo.prefix syminfo.root syminfo.session syminfo.ticker syminfo.tickerid syminfo.timezone syminfo.type ta.accdist ta.iii ta.nvi ta.obv ta.pvi ta.pvt ta.wad ta.wvad time_tradingday timeframe.multiplier timeframe.period timenow volume close dayofmonth dayofweek high hour low minute month na open second ta.tr ta.vwap time time_close weekofyear year</Keywords> // <Keywords name="Delimiters">00&apos; 01\ 02&apos; 03&quot; 04\ 05&quot; 06[ 07 08] 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords> // </KeywordLists> // <Styles> // <WordsStyle name="DEFAULT" fgColor="C5C8C6" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="COMMENTS" fgColor="8080FF" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="LINE COMMENTS" fgColor="969896" bgColor="131722" fontStyle="0" nesting="117446656" /> // <WordsStyle name="NUMBERS" fgColor="DE935F" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="KEYWORDS1" fgColor="8ABEB7" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="KEYWORDS2" fgColor="7EE787" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="KEYWORDS3" fgColor="CC6666" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="KEYWORDS4" fgColor="DE935F" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="KEYWORDS5" fgColor="328132" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="KEYWORDS6" fgColor="FF374B" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="KEYWORDS7" fgColor="CC6666" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="KEYWORDS8" fgColor="CC6666" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="OPERATORS" fgColor="8ABEB7" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="FOLDER IN CODE1" fgColor="81A2BE" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="FOLDER IN CODE2" fgColor="FF7B72" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="FOLDER IN COMMENT" fgColor="8ABEB7" bgColor="131722" fontStyle="0" nesting="0" /> // <WordsStyle name="DELIMITERS1" fgColor="FFFF80" bgColor="131722" fontStyle="0" nesting="3072" /> // <WordsStyle name="DELIMITERS2" fgColor="B5BD68" bgColor="131722" fontStyle="0" nesting="3072" /> // <WordsStyle name="DELIMITERS3" fgColor="8ABEB7" bgColor="131722" fontStyle="0" nesting="67108864" /> // <WordsStyle name="DELIMITERS4" fgColor="C9D1D9" bgColor="FFFF80" fontStyle="0" nesting="0" /> // <WordsStyle name="DELIMITERS5" fgColor="C9D1D9" bgColor="80FF00" fontStyle="0" nesting="0" /> // <WordsStyle name="DELIMITERS6" fgColor="FFFF80" bgColor="FFFFFF" fontStyle="0" nesting="117701887" /> // <WordsStyle name="DELIMITERS7" fgColor="D2A8FF" bgColor="004000" fontStyle="0" nesting="117702528" /> // <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> // </Styles> // </UserLang> // </NotepadPlus> // // // ↑↑↑ End of Code } // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ // ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ // ├────────────────────────────────── Pine Editor Theme for Notepad++ ───────────────────────────────────┤ { // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ // @description .xml file with Dark Color Scheme Theme from Pine Script Editor to Notepad++ // @path %AppData%\Notepad++\themes // @filename RKs PineScript Dark.xml // Code to Copy ↓↓↓ // // <?xml version="1.0" encoding="UTF-8" ?> // <!-- // File name: RKs PineScript Dark.xml // Style Name: RKs PineScript Dark // Description: PineScript Dark Color Scheme style for Notepad++. // Inspired by the TradingView Pine Editor Theme // Supported languages: All the languages supported by release 8.0 // Created by: Rodrigo Felipe Silveira RK (rodrigokazuma at gmail dot com) // Released: 2021-11-11 // License: MIT // --> // <NotepadPlus> // <LexerStyles> // <LexerType name="actionscript" desc="ActionScript" ext=""> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="FUNCTION" styleID="20" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT" styleID="23" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT DOC" styleID="24" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="ada" desc="ADA" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="1" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="IDENTIFIER" styleID="2" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DELIMITER" styleID="4" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="5" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LABEL" styleID="9" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="10" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ILLEGAL" styleID="11" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="asn1" desc="ASN.1" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIERS" styleID="2" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DOUBLE QUOTED STRING" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMERIC OID DEFINITION" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="NON OID NUMBERS" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORDS" styleID="6" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" /> // <WordsStyle name="ATTRIBUTES" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="DESCRIPTORS" styleID="8" fgColor="C5C8C6" bgColor="161B22" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="TYPES" styleID="9" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="OPERATORS" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="asp" desc="asp" ext="asp"> // <WordsStyle name="DEFAULT" styleID="81" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="82" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="83" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="WORD" styleID="84" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="85" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="86" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ASP SYMBOL" styleID="15" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SCRIPT TYPE" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="asm" desc="Assembly" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="4" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="5" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CPU INSTRUCTION" styleID="6" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="MATH INSTRUCTION" styleID="7" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="REGISTER" styleID="8" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="DIRECTIVE" styleID="9" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="DIRECTIVE OPERAND" styleID="10" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type3" /> // <WordsStyle name="COMMENT BLOCK" styleID="11" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="12" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="EXT INSTRUCTION" styleID="14" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="type4" /> // </LexerType> // <LexerType name="autoit" desc="autoIt" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="FUNCTION" styleID="4" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="MACRO" styleID="6" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="STRING" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="8" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VARIABLE" styleID="9" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="SENT" styleID="10" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="PREPROCESSOR" styleID="11" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <WordsStyle name="SPECIAL" styleID="12" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type4" /> // <WordsStyle name="EXPAND" styleID="13" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type5" /> // <WordsStyle name="COMOBJ" styleID="14" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="avs" desc="AviSynth" ext=""> // <WordsStyle name="DEFAULT" styleID="32" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="WHITE SPACE" styleID="0" fgColor="C5C8C6" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT: /* */" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT: [* *]" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LINE COMMENT: " styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATORS" styleID="5" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIERS" styleID="6" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOUBLE QUOTED STRING" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING WITH THREE DOUBLE QUOTES" styleID="8" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD" styleID="9" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="FILTER" styleID="10" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="PLUGIN" styleID="11" fgColor="F85149" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="FUNCTION" styleID="12" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="CLIP PROPERTIES" styleID="13" fgColor="F0F6FC" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <WordsStyle name="USER DEFINED" styleID="14" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type4" /> // </LexerType> // <LexerType name="baanc" desc="BaanC" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="3" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="3" fontSize="" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="KEYWORDS" styleID="4" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="5" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="PREPROCESSOR" styleID="6" fgColor="F5C052" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="7" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="8" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING EOL NC" styleID="9" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="3" fontSize="" /> // <WordsStyle name="FUNCTIONS" styleID="10" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="FUNCTIONS ABRIDGED" styleID="11" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="SUB SECTIONS" styleID="12" fgColor="FF8888" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type2" /> // <WordsStyle name="MAIN SECTIONS" styleID="13" fgColor="88FF88" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type3" /> // <WordsStyle name="PREDEFINED VARIABLE" styleID="14" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type4" /> // <WordsStyle name="PREDEFINED ATTRIBUTES" styleID="15" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type5" /> // <WordsStyle name="ENUM DOMAINS" styleID="16" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type6" /> // <WordsStyle name="USER DEFINED" styleID="17" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type7" /> // <WordsStyle name="TABLE DEFINITIONS" styleID="18" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="5" fontSize="" /> // <WordsStyle name="TABLE SQL" styleID="19" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DLL FUNCTIONS" styleID="20" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DOMAIN DEFINITIONS" styleID="21" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="5" fontSize="" /> // <WordsStyle name="FUNCTION DEFINITIONS" styleID="22" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="5" fontSize="" /> // <WordsStyle name="OBJECT DEFINITIONS" styleID="23" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="5" fontSize="" /> // <WordsStyle name="PREPROC DEFINITIONS" styleID="24" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="5" fontSize="" /> // </LexerType> // <LexerType name="bash" desc="bash" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ERROR" styleID="1" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="4" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="5" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="6" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="7" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="8" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SCALAR" styleID="9" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PARAM" styleID="10" fgColor="80EEEE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BACKTICKS" styleID="11" fgColor="F0F6FC" bgColor="9E6A03" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="HERE DELIM" styleID="12" fgColor="F0F6FC" bgColor="B62324" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="HERE Q" styleID="13" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="batch" desc="Batch" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORDS" styleID="2" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="LABEL" styleID="3" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="HIDE SYMBOL" styleID="4" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMAND" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VARIABLE" styleID="6" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="7" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="blitzbasic" desc="BlitzBasic" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD1" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="7" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD2" styleID="10" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORD3" styleID="11" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="KEYWORD4" styleID="12" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="LABEL" styleID="15" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ERROR" styleID="16" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HEXNUMBER" styleID="17" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BINNUMBER" styleID="18" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="c" desc="C" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT" styleID="23" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT DOC" styleID="24" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="cpp" desc="C++" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT" styleID="23" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT DOC" styleID="24" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="cs" desc="C" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT" styleID="23" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT DOC" styleID="24" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="caml" desc="Caml" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="1" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAGNAME" styleID="2" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="3" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="BUILIN FUNC &amp; TYPE" styleID="4" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="TYPE" styleID="5" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="LINENUM" styleID="6" fgColor="484F58" bgColor="58A6FF" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="7" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="NUMBER" styleID="8" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="9" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="11" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="12" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="13" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="14" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="cmake" desc="CMakeFile" ext="cmake"> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING D" styleID="2" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING L" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="STRING R" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="4" fontSize="" /> // <WordsStyle name="COMMAND" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="PARAMETER" styleID="6" fgColor="80EEEE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VARIABLE" styleID="7" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="USER DEFINED" styleID="8" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="WHILEDEF" styleID="9" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="FOREACHDEF" styleID="10" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IFDEF" styleID="11" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="MACRODEF" styleID="12" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="STRING VARIABLE" styleID="13" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="NUMBER" styleID="14" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="cobol" desc="COBOL" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DECLARATION" styleID="5" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="INSTRUCTION WORD" styleID="16" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORD" styleID="8" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="csound" desc="Csound" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="3" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTR" styleID="4" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="5" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPCODE" styleID="6" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="HEADER STATEMENT" styleID="7" fgColor="388BFD" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="USER KEYWORDS" styleID="8" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="COMMENT BLOCK" styleID="9" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PARAMETER" styleID="10" fgColor="80EEEE" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="A-RATE VARIABLE" styleID="11" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="K-RATE VARIABLE" styleID="12" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="I-RATE VARIABLE" styleID="13" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="GLOBAL VARIABLE" styleID="14" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="END OF LINE WHERE STRING IS NOT CLOSED" styleID="15" fgColor="F0F6FC" bgColor="B62324" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="coffeescript" desc="CoffeeScript" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREDEFINED CONSTANT" styleID="19" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type2" /> // <WordsStyle name="COMMENT BLOCK" styleID="22" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VERBOSE REGEX" styleID="23" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="3" fontSize="" /> // <WordsStyle name="VERBOSE REGEX COMMENT" styleID="24" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="css" desc="CSS" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAG" styleID="1" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CLASS" styleID="2" fgColor="88FFFF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PSEUDOCLASS" styleID="3" fgColor="C9D180" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="UNKNOWN PSEUDOCLASS" styleID="4" fgColor="FF8888" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="5" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="6" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="UNKNOWN IDENTIFIER" styleID="7" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VALUE" styleID="8" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="9" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ID" styleID="10" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IMPORTANT" styleID="11" fgColor="BD561D" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DIRECTIVE" styleID="12" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOUBLE STRING" styleID="13" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SINGLE STRING" styleID="14" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <!--WordsStyle name="IDENTIFIER2" styleID="15" fgColor="" bgColor="" fontName="" fontStyle="0" fontSize="" /--> // <WordsStyle name="ATTRIBUTE" styleID="16" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <!--WordsStyle name="IDENTIFIER3" styleID="17" fgColor="" bgColor="" fontName="" fontStyle="0" fontSize="" /--> // <WordsStyle name="PSEUDOELEMENT" styleID="18" fgColor="CDE159" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <!--WordsStyle name="EXTENDED_IDENTIFIER" styleID="19" fgColor="" bgColor="" fontName="" fontStyle="0" fontSize="" /--> // <!-- LEGACY_PSEUDOELEMENT == EXTENDED_PSEUDOCLASS --> // <WordsStyle name="LEGACY PSEUDOELEMENT" styleID="20" fgColor="FFA068" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type5" /> // <!--WordsStyle name="EXTENDED_PSEUDOELEMENT" styleID="21" fgColor="" bgColor="" fontName="" fontStyle="0" fontSize="" /--> // <WordsStyle name="MEDIA" styleID="22" fgColor="388BFD" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VARIABLE" styleID="23" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="d" desc="D" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="14" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="6" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="KEWORD1" styleID="7" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEWORD2" styleID="8" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="KEWORD3" styleID="9" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="KEWORD4" styleID="20" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <WordsStyle name="KEWORD5" styleID="21" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type4" /> // <WordsStyle name="KEWORD6" styleID="22" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type5" /> // <WordsStyle name="NUMBER" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="10" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="12" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="13" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT NESTED" styleID="4" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="16" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING B" styleID="18" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING R" styleID="19" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="diff" desc="DIFF" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMAND" styleID="2" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="HEADER" styleID="3" fgColor="388BFD" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="POSITION" styleID="4" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DELETED" styleID="5" fgColor="FFDCD7" bgColor="67060C" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ADDED" styleID="6" fgColor="AFF5B4" bgColor="033A16" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="erlang" desc="Erlang" ext=""> // <WordsStyle name="DEFAULT STYLE" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="FUNCTION COMMENT" styleID="14" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MODULE COMMENT" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOCUMENTATION HELPER IN COMMENT" styleID="16" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type3" /> // <WordsStyle name="DOCUMENTATION MACRO IN COMMENT" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="3" fontSize="" keywordClass="type4" /> // <WordsStyle name="VARIABLE" styleID="2" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="5" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="9" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MACRO" styleID="10" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MACRO QUOTED" styleID="19" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECORD" styleID="11" fgColor="FF8888" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="RECORD QUOTED" styleID="20" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="ATOM" styleID="7" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ATOM QUOTED" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NODE NAME" styleID="13" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NODE NAME QUOTED" styleID="21" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RESERVED WORDS" styleID="4" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="BUILT-IN FUNCTIONS" styleID="22" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="FUNCTION NAME" styleID="8" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MODULE NAME" styleID="23" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MODULE ATTRIBUTES" styleID="24" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="PREPROCESSOR" styleID="12" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="OPERATORS" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="UNKNOWN: ERROR" styleID="31" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="escript" desc="ESCRIPT" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LINE COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOC COMMENT" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" /> // <WordsStyle name="DOUBLE QUOTED STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATORS" styleID="7" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIERS" styleID="8" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BRACES" styleID="9" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORDS2" styleID="10" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORDS3" styleID="11" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // </LexerType> // <LexerType name="forth" desc="Forth" ext=""> // <WordsStyle name="WHITESPACE" styleID="0" fgColor="C5C8C6" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ML COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="3" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="CONTROL" styleID="4" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="KEYWORDS" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="DEFWORDS" styleID="6" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="PREWORD1" styleID="7" fgColor="F85149" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type2" /> // <WordsStyle name="PREWORD2" styleID="8" fgColor="F85149" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type3" /> // <WordsStyle name="NUMBER" styleID="9" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOUBLE QUOTED STRING" styleID="10" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type4" /> // <WordsStyle name="LOCALE" styleID="11" fgColor="388BFD" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="fortran" desc="Fortran (free form)" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING2" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="7" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="8" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="FUNCTION1" styleID="9" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="FUNCTION2" styleID="10" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="PREPROCESSOR" styleID="11" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR2" styleID="12" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LABEL" styleID="13" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="CONTINUATION" styleID="14" fgColor="3FB950" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="fortran77" desc="Fortran (fixed form)" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING2" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="7" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="8" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="FUNCTION1" styleID="9" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="FUNCTION2" styleID="10" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="PREPROCESSOR" styleID="11" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR2" styleID="12" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LABEL" styleID="13" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="CONTINUATION" styleID="14" fgColor="3FB950" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="freebasic" desc="FreeBasic" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD1" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR" styleID="5" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="7" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD2" styleID="10" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORD3" styleID="11" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="KEYWORD4" styleID="12" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="LABEL" styleID="15" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ERROR" styleID="16" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HEXNUMBER" styleID="17" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BINNUMBER" styleID="18" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="gui4cli" desc="GUI4CLI" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="GLOBAL" styleID="5" fgColor="80EEEE" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="EVENT" styleID="5" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="ATTRIBUTE" styleID="16" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="CONTROL" styleID="16" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="COMMAND" styleID="16" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="haskell" desc="Haskell" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="1" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD" styleID="2" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="5" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CLASS" styleID="6" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="MODULE" styleID="7" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CAPITAL" styleID="8" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATA" styleID="9" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IMPORT" styleID="10" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="11" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTANCE" styleID="12" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="13" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT BLOCK" styleID="14" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT BLOCK2" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT BLOCK3" styleID="16" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="html" desc="HTML" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="9" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOUBLE STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SINGLE STRING" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="TAG" styleID="1" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAG END" styleID="11" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAG UNKNOWN" styleID="2" fgColor="238636" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ATTRIBUTE" styleID="3" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ATTRIBUTE UNKNOWN" styleID="4" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SGML DEFAULT" styleID="21" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CDATA" styleID="17" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VALUE" styleID="19" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ENTITY" styleID="10" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // </LexerType> // <LexerType name="ihex" desc="Intel HEX" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECSTART" styleID="1" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECTYPE" styleID="2" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECTYPE_UNKNOWN" styleID="3" fgColor="F85149" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="BYTECOUNT" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BYTECOUNT_WRONG" styleID="5" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NOADDRESS" styleID="6" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATAADDRESS" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <!-- RECCOUNT 8 N/A --> // <WordsStyle name="STARTADDRESS" styleID="9" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ADDRESSFIELD_UNKNOWN" styleID="10" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="EXTENDEDADDRESS" styleID="11" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATA_ODD" styleID="12" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DATA_EVEN" styleID="13" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATA_UNKNOWN" styleID="14" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="DATA_EMPTY" styleID="15" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHECKSUM" styleID="16" fgColor="3FB950" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHECKSUM_WRONG" styleID="17" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="GARBAGE" styleID="18" fgColor="DA3633" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // </LexerType> // <LexerType name="ini" desc="ini file" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SECTION" styleID="2" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="ASSIGNMENT" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DEFVAL" styleID="4" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEY" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // </LexerType> // <LexerType name="inno" desc="InnoSetup" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD" styleID="2" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="PARAMETER" styleID="3" fgColor="80EEEE" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="SECTION" styleID="4" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="PREPROCESSOR" styleID="5" fgColor="F85149" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type2" /> // <WordsStyle name="PREPROCESSOR INLINE" styleID="6" fgColor="484F58" bgColor="58A6FF" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT PASCAL" styleID="7" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD PASCAL" styleID="8" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type3" /> // <WordsStyle name="KEYWORD USER" styleID="9" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type4" /> // <WordsStyle name="STRING DOUBLE" styleID="10" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING SINGLE" styleID="11" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="12" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="java" desc="Java" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="javascript" desc="JavaScript (embedded)" ext=""> // <WordsStyle name="DEFAULT" styleID="41" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="45" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="WORD" styleID="46" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD" styleID="47" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="3" fontSize="" keywordClass="instre1" /> // <WordsStyle name="DOUBLE STRING" styleID="48" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SINGLE STRING" styleID="49" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SYMBOLS" styleID="50" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="REGEX" styleID="52" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="42" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="43" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="44" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="javascript.js" desc="JavaScript" ext=""> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="WINDOW INSTRUCTION" styleID="19" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING RAW" styleID="20" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="json" desc="JSON" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="1" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="2" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING EOL" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PROPERTY NAME" styleID="4" fgColor="F0F6FC" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ESCAPE SEQUENCE" styleID="5" fgColor="F0F6FC" bgColor="B62324" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="LINE COMMENT" styleID="6" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BLOCK COMMENT" styleID="7" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="8" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="URI" styleID="9" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMPACT IRI" styleID="10" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="KEYWORD" styleID="11" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="LD KEYWORD" styleID="12" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="ERROR" styleID="13" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="kix" desc="KiXtart" ext=""> // <WordsStyle name="DEFAULT" styleID="31" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="2" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING2" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VAR" styleID="5" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MACRO" styleID="6" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="INSTRUCTION WORD" styleID="7" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="FUNCTION" styleID="8" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="OPERATOR" styleID="9" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="lisp" desc="LISP" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="FUNCTION WORD" styleID="3" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="FUNCTION WORD2" styleID="4" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="SYMBOL" styleID="5" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="9" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="SPECIAL" styleID="11" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="12" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="latex" desc="LaTeX" ext=""> // <WordsStyle name="WHITE SPACE" styleID="0" fgColor="C5C8C6" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMAND" styleID="1" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="TAG OPENING" styleID="2" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="MATH INLINE" styleID="3" fgColor="484F58" bgColor="58A6FF" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="4" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAG CLOSING" styleID="5" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="MATH BLOCK" styleID="6" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT BLOCK" styleID="7" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VERBATIM SEGMENT" styleID="8" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SHORT COMMAND" styleID="9" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SPECIAL CHAR" styleID="10" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMAND OPTIONAL ARGUMENT" styleID="11" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SYNTAX ERROR" styleID="12" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="lua" desc="Lua" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LITERAL STRING" styleID="8" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="FUNC1" styleID="13" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="FUNC2" styleID="14" fgColor="DB6D28" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="FUNC3" styleID="15" fgColor="3FB950" bgColor="131722" fontName="" fontStyle="3" fontSize="" keywordClass="type2" /> // <WordsStyle name="IDENTIFIER" styleID="11" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LABEL" styleID="20" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="makefile" desc="Makefile" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR" styleID="2" fgColor="F85149" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="3" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="4" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="TARGET" styleID="5" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDEOL" styleID="9" fgColor="388BFD" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // </LexerType> // <LexerType name="matlab" desc="Matlab" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMAND" styleID="2" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="4" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="5" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="7" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOUBLE QUOTE STRING" styleID="8" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="mmixal" desc="MMIXAL" ext=""> // <WordsStyle name="DIVSION OF LEADING WHITESPACE IN LINE" styleID="0" fgColor="C5C8C6" bgColor="58A6FF" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LABEL" styleID="2" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPCODE" styleID="3" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DIVISION BETWEEN LABEL AND OPCODE" styleID="4" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VALID OPCODE" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="UNKNOWN OPCODE" styleID="6" fgColor="F85149" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DIVISION BETWEEN OPCODE AND OPERANDS" styleID="7" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DIVISION OF OPERANDS" styleID="8" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="9" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REFERENCE (TO A LABEL)" styleID="10" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHAR" styleID="11" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="12" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGISTER" styleID="13" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="HEXADECIMAL NUMBER" styleID="14" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="15" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SYMBOL" styleID="16" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="COMMENT OTHERWISE" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="nfo" desc="Dos Style" ext=""> // <WordsStyle name="DEFAULT" styleID="32" fgColor="C5C8C6" bgColor="131722" fontStyle="0" /> // </LexerType> // <LexerType name="nsis" desc="NSIS" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING DOUBLE QUOTE" styleID="2" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING LEFT QUOTE" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING RIGHT QUOTE" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="FUNCTION" styleID="5" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" /> // <WordsStyle name="VARIABLE" styleID="6" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="LABEL" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="USER DEFINED" styleID="8" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="4" fontSize="" keywordClass="type2" /> // <WordsStyle name="SECTION" styleID="9" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SUBSECTION" styleID="10" fgColor="CDE159" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IF DEFINE" styleID="11" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MACRO" styleID="12" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="STRING VAR" styleID="13" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="14" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SECTION GROUP" styleID="15" fgColor="3FB950" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="PAGE EX" styleID="16" fgColor="D29922" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="FUNCTION DEFINITIONS" styleID="17" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="nim" desc="Nim" ext=""> // <WordsStyle name="WHITE SPACE" styleID="0" fgColor="C5C8C6" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SINGLE QUOTED STRING" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TRIPLE QUOTES" styleID="6" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TRIPLE DOUBLE QUOTES" styleID="7" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CLASS NAME DEFINITION" styleID="8" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="FUNCTION OR METHOD NAME DEFINITION" styleID="9" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATORS" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIERS" styleID="11" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT-BLOCKS" styleID="12" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="END OF LINE WHERE STRING IS NOT CLOSED" styleID="13" fgColor="F0F6FC" bgColor="B62324" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HIGHLIGHTED IDENTIFIERS" styleID="14" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DECORATORS" styleID="15" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="nncrontab" desc="extended crontab" ext=""> // <WordsStyle name="WHITE SPACE" styleID="0" fgColor="C5C8C6" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TASK START/END" styleID="2" fgColor="238636" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SECTION KEYWORDS" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="KEYWORDS" styleID="4" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="MODIFICATORS" styleID="5" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="2" fontSize="" keywordClass="type1" /> // <WordsStyle name="ASTERISK" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="NUMBER" styleID="7" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOUBLE QUOTED STRING" styleID="8" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ENVIRONMENT VARIABLE" styleID="9" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="10" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="oscript" desc="OScript" ext=""> // <WordsStyle name="DEFAULT TEXT STYLE" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SINGLE-LINE COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MULTI-LINE COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IFDEF DOC AND ENDIF" styleID="3" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR DIRECTIVE" styleID="4" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING SINGLE QUOTES" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING DOUBLE QUOTES" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CONSTANT LITERAL" styleID="8" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="IDENTIFIER" styleID="9" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SERVER-GLOBAL VARIABLE (PREFIXED BY $)" styleID="10" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LANGUAGE NATIVE KEYWORD OR RESERVED WORD" styleID="11" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="OPERATOR; EITHER SYMBOLIC OR LITERAL" styleID="12" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="LABEL TO JUMP TO WITH THE GOTO STATEMENT" styleID="13" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TYPE" styleID="14" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="FUNCTION" styleID="15" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <WordsStyle name="STATIC BUILT-IN OBJECT" styleID="16" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type4" /> // <WordsStyle name="OBJECT PROPERTY" styleID="17" fgColor="F0F6FC" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OBJECT METHOD" styleID="18" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="objc" desc="Objective-C" ext=""> // <WordsStyle name="DIRECTIVE" styleID="19" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="QUALIFIER" styleID="20" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="pascal" desc="Pascal" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="1" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="4" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR" styleID="5" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR2" styleID="6" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="7" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HEX NUMBER" styleID="8" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="9" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="10" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="12" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="13" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="ASM" styleID="14" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="perl" desc="Perl" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="REGEX" styleID="17" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SCALAR" styleID="12" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ARRAY" styleID="13" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HASH" styleID="14" fgColor="88FF88" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SYMBOL TABLE" styleID="15" fgColor="DA3633" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="PUNCTUATION" styleID="8" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="POD" styleID="3" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ERROR" styleID="1" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="3" fontSize="" /> // <WordsStyle name="LONGQUOTE" styleID="19" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATASECTION" styleID="21" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGSUBST" styleID="18" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BACKTICKS" styleID="20" fgColor="F0F6FC" bgColor="9E6A03" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="php" desc="php" ext=""> // <WordsStyle name="QUESTION MARK" styleID="18" fgColor="DA3633" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="118" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="119" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMPLEX VARIABLE" styleID="104" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="STRING VARIABLE" styleID="126" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SIMPLE STRING" styleID="120" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="WORD" styleID="121" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="NUMBER" styleID="122" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VARIABLE" styleID="123" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="124" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="125" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="127" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="postscript" desc="Postscript" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DSC COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DSC VALUE" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="Name" styleID="5" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION" styleID="6" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="LITERAL" styleID="7" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IMMEVAL" styleID="8" fgColor="88FF88" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="PAREN ARRAY" styleID="9" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="PAREN DICT" styleID="10" fgColor="CDE159" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="PAREN PROC" styleID="11" fgColor="FFA068" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="TEXT" styleID="12" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HEX STRING" styleID="13" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BASE85 STRING" styleID="14" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BAD STRING CHAR" styleID="15" fgColor="F85149" bgColor="161B22" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="powershell" desc="PowerShell" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="2" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="3" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VARIABLE" styleID="5" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="8" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="CMDLET" styleID="9" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="ALIAS" styleID="10" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="COMMENT STREAM" styleID="13" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HERE STRING" styleID="14" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HERE CHARACTER" styleID="15" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="16" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type4" /> // </LexerType> // <LexerType name="props" desc="Properties file" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SECTION" styleID="2" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="ASSIGNMENT" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DEFVAL" styleID="4" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEY" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // </LexerType> // <LexerType name="purebasic" desc="PureBasic" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD1" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="7" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD2" styleID="10" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORD3" styleID="11" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="KEYWORD4" styleID="12" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="CONSTANT" styleID="13" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LABEL" styleID="15" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ERROR" styleID="16" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HEXNUMBER" styleID="17" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BINNUMBER" styleID="18" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="python" desc="Python" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="4" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORDS" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TRIPLE" styleID="6" fgColor="388BFD" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TRIPLE DOUBLE" styleID="7" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CLASS NAME" styleID="8" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DEF NAME" styleID="9" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="11" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT BLOCK" styleID="12" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BUILTINS" styleID="14" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="DECORATOR" styleID="15" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="F STRING" styleID="16" fgColor="A5D6FF" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="F CHARACTER" styleID="17" fgColor="7EE787" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="F TRIPLE" styleID="18" fgColor="79C0FF" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="F TRIPLEDOUBLE" styleID="19" fgColor="79C0FF" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="r" desc="R" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="2" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="BASE WORD" styleID="3" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORD" styleID="4" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING2" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="8" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="INFIX" styleID="10" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="9" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="rc" desc="RC" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT" styleID="23" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT DOC" styleID="24" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="rebol" desc="REBOL" ext=""> // <WordsStyle name="DEFAULT" styleID="32" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ANY OTHER TEXT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="LINE COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BLOCK COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREFACE" styleID="3" fgColor="F85149" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATORS" styleID="4" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="CHARACTERS" styleID="5" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING WITH QUOTES" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING WITH BRACES" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="8" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PAIR ( 800X600 )" styleID="9" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TUPLE ( 127.0.0.1 )" styleID="10" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BINARY ( 16{1A803F59} )" styleID="11" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MONEY" styleID="12" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ISSUE { 123-CD-456 }" styleID="13" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAG { &lt;TITLE HEIGHT=100&gt; }" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="FILE { %/C/WINNT/SOME.DLL }" styleID="15" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="EMAIL { [email protected] }" styleID="16" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="URL { FTP://THERE.DOM }" styleID="17" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATE { 17-FEB-2004 1/3/99 }" styleID="18" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TIME { 12:30 11:22:59 01:59:59.123 }" styleID="19" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIERS" styleID="20" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD (ALL)" styleID="21" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="KEYWORD (TEST FUNCTIONS)" styleID="22" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORD (DATATYPES)" styleID="23" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="KEYWORD 4" styleID="24" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="KEYWORD 5" styleID="25" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <WordsStyle name="KEYWORD 6" styleID="26" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type4" /> // <WordsStyle name="KEYWORD 7" styleID="27" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type5" /> // </LexerType> // <LexerType name="registry" desc="registry" ext=""> // <WordsStyle name="DEFAULT STYLE" styleID="32" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VALUE NAME" styleID="2" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="3" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HEX DIGIT" styleID="4" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VALUE TYPE" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="ADDED KEY" styleID="6" fgColor="AFF5B4" bgColor="033A16" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REMOVED KEY" styleID="7" fgColor="FFDCD7" bgColor="67060C" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ESCAPED CHARACTERS IN STRINGS" styleID="8" fgColor="F0F6FC" bgColor="B62324" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="GUID IN KEY PATH" styleID="9" fgColor="C5C8C6" bgColor="1158C7" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="GUID IN STRING" styleID="10" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PARAMETER" styleID="11" fgColor="80EEEE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATORS" styleID="12" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // </LexerType> // <LexerType name="ruby" desc="Ruby" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ERROR" styleID="1" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="POD" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CLASS NAME" styleID="8" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DEF NAME" styleID="9" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="11" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="12" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="GLOBAL" styleID="13" fgColor="80EEEE" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SYMBOL" styleID="14" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MODULE NAME" styleID="15" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="INSTANCE VAR" styleID="16" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CLASS VAR" styleID="17" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BACKTICKS" styleID="18" fgColor="F0F6FC" bgColor="9E6A03" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATA SECTION" styleID="19" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING Q" styleID="24" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="rust" desc="Rust" ext=""> // <WordsStyle name="DEFAULT" styleID="32" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="WHITESPACE" styleID="0" fgColor="C5C8C6" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BLOCK COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LINE COMMENT" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BLOCK DOC COMMENT" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LINE DOC COMMENT" styleID="4" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORDS 1" styleID="6" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="KEYWORDS 2" styleID="7" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORDS 3" styleID="8" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="KEYWORDS 4" styleID="9" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type2" /> // <WordsStyle name="KEYWORDS 5" styleID="10" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type3" /> // <WordsStyle name="KEYWORDS 6" styleID="11" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type4" /> // <WordsStyle name="KEYWORDS 7" styleID="12" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type5" /> // <WordsStyle name="REGULAR STRING" styleID="13" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RAW STRING" styleID="14" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="15" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="16" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="17" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LIFETIME" styleID="18" fgColor="C5C8C6" bgColor="1158C7" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MACRO" styleID="19" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LEXICAL ERROR" styleID="20" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BYTE STRING" styleID="21" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RAW BYTE STRING" styleID="22" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BYTE CHARACTER" styleID="23" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="scheme" desc="Scheme" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="FUNCTION WORD" styleID="3" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="FUNCTION WORD2" styleID="4" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="SYMBOL" styleID="5" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="9" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="SPECIAL" styleID="11" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="12" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="smalltalk" desc="Smalltalk" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="1" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SYMBOL" styleID="4" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="BINARY" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BOOL" styleID="6" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SELF" styleID="7" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SUPER" styleID="8" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="NIL" styleID="9" fgColor="C5C8C6" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="GLOBAL" styleID="10" fgColor="80EEEE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RETURN" styleID="11" fgColor="F0F6FC" bgColor="B62324" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SPECIAL" styleID="12" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KWS END" styleID="13" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ASSIGN" styleID="14" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="15" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SPECIAL SELECTOR" styleID="16" fgColor="A371F7" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="spice" desc="spice" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIERS" styleID="1" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="KEYWORD" styleID="2" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" /> // <WordsStyle name="KEYWORD2" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORD3" styleID="4" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATORS (DELIMITERS)" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VALUE" styleID="7" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="8" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="sql" desc="SQL" ext=""> // <WordsStyle name="KEYWORD" styleID="5" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="USER1" styleID="16" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="KEYWORD2" styleID="19" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING2" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="Q OPERATOR" styleID="24" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="srec" desc="S-Record" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECSTART" styleID="1" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECTYPE" styleID="2" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECTYPE_UNKNOWN" styleID="3" fgColor="F85149" bgColor="161B22" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="BYTECOUNT" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BYTECOUNT_WRONG" styleID="5" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NOADDRESS" styleID="6" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATAADDRESS" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECCOUNT" styleID="8" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STARTADDRESS" styleID="9" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ADDRESSFIELD_UNKNOWN" styleID="10" fgColor="7EE787" bgColor="161B22" fontName="" fontStyle="2" fontSize="" /> // <!-- EXTENDEDADDRESS 11 N/A --> // <WordsStyle name="DATA_ODD" styleID="12" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DATA_EVEN" styleID="13" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DATA_UNKNOWN" styleID="14" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="DATA_EMPTY" styleID="15" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHECKSUM" styleID="16" fgColor="3FB950" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHECKSUM_WRONG" styleID="17" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="GARBAGE" styleID="18" fgColor="DA3633" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // </LexerType> // <LexerType name="swift" desc="Swift" ext=""> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT" styleID="23" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR COMMENT DOC" styleID="24" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="tcl" desc="TCL" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MODIFIER" styleID="10" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="EXPAND" styleID="11" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="12" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="13" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SUB BRACE" styleID="9" fgColor="FEB258" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SUBSTITUTION" styleID="8" fgColor="D29922" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="7" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="WORD IN QUOTE" styleID="4" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IN QUOTE" styleID="5" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT BOX" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="BLOCK COMMENT" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="tehex" desc="Tektronix extended HEX" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECSTART" styleID="1" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECTYPE" styleID="2" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="RECTYPE_UNKNOWN" styleID="3" fgColor="F85149" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="BYTECOUNT" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BYTECOUNT_WRONG" styleID="5" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <!-- NOADDRESS 6 N/A --> // <WordsStyle name="DATAADDRESS" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <!-- RECCOUNT 8 N/A --> // <WordsStyle name="STARTADDRESS" styleID="9" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ADDRESSFIELD_UNKNOWN" styleID="10" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <!-- EXTENDEDADDRESS 11 N/A --> // <WordsStyle name="DATA_ODD" styleID="12" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DATA_EVEN" styleID="13" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <!-- DATA_UNKNOWN 14 N/A --> // <!-- DATA_EMPTY 15 N/A --> // <WordsStyle name="CHECKSUM" styleID="16" fgColor="3FB950" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHECKSUM_WRONG" styleID="17" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="GARBAGE" styleID="18" fgColor="DA3633" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // </LexerType> // <LexerType name="tex" desc="TeX" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SPECIAL" styleID="1" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="GROUP" styleID="2" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SYMBOL" styleID="3" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMAND" styleID="4" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="TEXT" styleID="5" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="txt2tags" desc="txt2tags" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SPECIAL" styleID="1" fgColor="A371F7" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRONG" styleID="2" fgColor="F0F6FC" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="STRONG 2 (NOT USED)" styleID="3" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="EM1 (ITALIC)" styleID="4" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="EM2 (UNDERLINE)" styleID="5" fgColor="484F58" bgColor="58A6FF" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="H1" styleID="6" fgColor="FF8888" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="H2" styleID="7" fgColor="FF9A6E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="H3" styleID="8" fgColor="FEB258" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="H4" styleID="9" fgColor="E8CD50" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="H5" styleID="10" fgColor="C2E75F" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="H6" styleID="11" fgColor="88FF88" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="PRECHAR (NOT USED)" styleID="12" fgColor="F85149" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="ULIST" styleID="13" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OLIST" styleID="14" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="BLOCKQUOTE" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRIKEOUT" styleID="16" fgColor="DB6D28" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="HRULE" styleID="17" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="LINK" styleID="18" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // <WordsStyle name="CODE" styleID="19" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CODE2" styleID="20" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CODEBLOCK" styleID="21" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="22" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPTION" styleID="23" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROC" styleID="24" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="POSTPROC" styleID="25" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="typescript" desc="TypeScript" ext=""> // <WordsStyle name="DEFAULT" styleID="11" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="TYPE WORD" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="WINDOW INSTRUCTION" styleID="19" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING RAW" styleID="20" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="7" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="VERBATIM" styleID="13" fgColor="388BFD" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REGEX" styleID="14" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="vb" desc="VB / VBS" ext=""> // <WordsStyle name="DEFAULT" styleID="7" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="2" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="WORD" styleID="3" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STRING" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR" styleID="5" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="6" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="DATE" styleID="8" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="verilog" desc="Verilog" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="11" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAGNAME" styleID="2" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="KEYWORD" styleID="7" fgColor="FF7B72" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="OPERATOR" styleID="10" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE BANG" styleID="3" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="USER" styleID="19" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="vhdl" desc="VHDL" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LIne" styleID="2" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT BLOCK" styleID="15" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="3" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="4" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING EOL" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="5" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="6" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION" styleID="8" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="STD OPERATOR" styleID="9" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> // <WordsStyle name="ATTRIBUTE" styleID="10" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type1" /> // <WordsStyle name="STD FUNCTION" styleID="11" fgColor="F2CC60" bgColor="131722" fontName="" fontStyle="1" fontSize="" keywordClass="type2" /> // <WordsStyle name="STD PACKAGE" styleID="12" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type3" /> // <WordsStyle name="STD TYPE" styleID="13" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type4" /> // <WordsStyle name="USER DEFINE" styleID="14" fgColor="EE88EE" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type5" /> // </LexerType> // <LexerType name="visualprolog" desc="Visual Prolog" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="MAJOR" styleID="1" fgColor="88FF88" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" /> // <WordsStyle name="MINOR" styleID="2" fgColor="CDE159" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> // <WordsStyle name="DIRECTIVE" styleID="3" fgColor="EEBBEE" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> // <WordsStyle name="COMMENT BLOCK" styleID="4" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT LINE" styleID="5" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="COMMENT KEY" styleID="6" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> // <WordsStyle name="COMMENT KEY ERROR" styleID="7" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="8" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="VARIABLE" styleID="9" fgColor="FFA657" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ANONYMOUS" styleID="10" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="11" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="OPERATOR" styleID="12" fgColor="FFFF00" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER" styleID="13" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER TOO MANY" styleID="14" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CHARACTER ESCAPE ERROR" styleID="15" fgColor="F0F6FC" bgColor="B62324" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING" styleID="16" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING ESCAPE" styleID="17" fgColor="DA3633" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING ESCAPE ERROR" styleID="18" fgColor="F0F6FC" bgColor="B62324" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING EOL OPEN" styleID="19" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING VERBATIM" styleID="20" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING VERBATIM SPECIAL" styleID="21" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="STRING VERBATIM EOL" styleID="22" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="xml" desc="XML" ext=""> // <WordsStyle name="XML START" styleID="12" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="XML END" styleID="13" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="9" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="NUMBER" styleID="5" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOUBLE STRING" styleID="6" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="SINGLE STRING" styleID="7" fgColor="A5D6FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="TAG" styleID="1" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAG END" styleID="11" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TAG UNKNOWN" styleID="2" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ATTRIBUTE" styleID="3" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ATTRIBUTE UNKNOWN" styleID="4" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="SGML DEFAULT" styleID="21" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="CDATA" styleID="17" fgColor="F0F6FC" bgColor="161B22" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="ENTITY" styleID="10" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="2" fontSize="" /> // </LexerType> // <LexerType name="yaml" desc="YAML" ext=""> // <WordsStyle name="DEFAULT" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="IDENTIFIER" styleID="2" fgColor="D2A8FF" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="COMMENT" styleID="1" fgColor="8B949E" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="INSTRUCTION WORD" styleID="3" fgColor="8B949E" bgColor="161B22" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> // <WordsStyle name="NUMBER" styleID="4" fgColor="79C0FF" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="REFERENCE" styleID="5" fgColor="7EE787" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="DOCUMENT" styleID="6" fgColor="1F6FEB" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="TEXT" styleID="7" fgColor="C5C8C6" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="ERROR" styleID="8" fgColor="F0F6FC" bgColor="8E1519" fontName="" fontStyle="0" fontSize="" /> // </LexerType> // <LexerType name="searchResult" desc="Search result" ext=""> // <WordsStyle name="Search Header" styleID="1" fgColor="D79922" bgColor="032552" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="File Header" styleID="2" fgColor="F1F3FD" bgColor="000019" fontName="" fontStyle="1" fontSize="" /> // <WordsStyle name="Line Number" styleID="3" fgColor="00FF00" bgColor="242529" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="Hit Word" styleID="4" fgColor="FFFF80" bgColor="000080" fontName="" fontStyle="0" fontSize="" /> // <WordsStyle name="Current line background colour" styleID="6" bgColor="092D62" fontStyle="0" /> // </LexerType> // </LexerStyles> // <GlobalStyles> // <!-- Attention : Don't modify the name of styleID="0" --> // <WidgetStyle name="Global override" styleID="0" fgColor="C5C8C6" bgColor="131722" fontName="Source Code Pro" fontStyle="0" fontSize="10" /> // <WidgetStyle name="Default Style" styleID="32" fgColor="C5C8C6" bgColor="131722" fontName="Consolas" fontStyle="0" fontSize="10" /> // <WidgetStyle name="Indent guideline style" styleID="37" fgColor="C0C0C0" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WidgetStyle name="Brace highlight style" styleID="34" fgColor="800000" bgColor="131722" fontName="" fontStyle="1" fontSize="" /> // <WidgetStyle name="Bad brace colour" styleID="35" fgColor="F85149" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WidgetStyle name="Current line background colour" styleID="0" bgColor="324158" fontStyle="0" /> // <WidgetStyle name="Selected text colour" styleID="0" fgColor="000000" bgColor="373B41" fontStyle="0" /> // <WidgetStyle name="Caret colour" styleID="2069" fgColor="8FAF9F" fontStyle="0" /> // <WidgetStyle name="Edge colour" styleID="0" fgColor="3A3A74" fontStyle="0" /> // <WidgetStyle name="Line number margin" styleID="33" fgColor="F8F8F3" bgColor="131722" fontName="" fontStyle="0" fontSize="" /> // <WidgetStyle name="Bookmark margin" styleID="0" bgColor="131722" fontStyle="0" /> // <WidgetStyle name="Fold" styleID="0" fgColor="21262D" bgColor="808080" fontStyle="0" /> // <WidgetStyle name="Fold active" styleID="0" fgColor="FFFF00" fontStyle="0" /> // <WidgetStyle name="Fold margin" styleID="0" fgColor="21262D" bgColor="131722" fontStyle="0" /> // <WidgetStyle name="White space symbol" styleID="0" fgColor="FFB56A" fontStyle="0" /> // <WidgetStyle name="Smart HighLighting" styleID="29" bgColor="FFFF00" fontStyle="0" /> // <WidgetStyle name="Find Mark Style" styleID="31" bgColor="FF0080" fontStyle="0" /> // <WidgetStyle name="Mark Style 1" styleID="25" bgColor="88FF88" fontStyle="0" /> // <WidgetStyle name="Mark Style 2" styleID="24" bgColor="CDE159" fontStyle="0" /> // <WidgetStyle name="Mark Style 3" styleID="23" bgColor="F5C052" fontStyle="0" /> // <WidgetStyle name="Mark Style 4" styleID="22" bgColor="FFA068" fontStyle="0" /> // <WidgetStyle name="Mark Style 5" styleID="21" bgColor="FF8888" fontStyle="0" /> // <WidgetStyle name="Incremental highlight all" styleID="28" bgColor="408040" fontStyle="0" /> // <WidgetStyle name="Tags match highlighting" styleID="27" bgColor="C6C600" fontStyle="0" /> // <WidgetStyle name="Tags attribute" styleID="26" bgColor="FFFFBF" fontStyle="0" /> // <WidgetStyle name="Active tab focused indicator" styleID="0" fgColor="80D4B2" fontStyle="0" /> // <WidgetStyle name="Active tab unfocused indicator" styleID="0" fgColor="287757" fontStyle="0" /> // <WidgetStyle name="Active tab text" styleID="0" fgColor="101010" fontStyle="0" /> // <WidgetStyle name="Inactive tabs" styleID="0" fgColor="808080" bgColor="FFFFFF" fontStyle="0" /> // <WidgetStyle name="URL hovered" styleID="0" fgColor="0064FF" fontStyle="0" /> // <WidgetStyle name="Document map" styleID="0" fgColor="DDDDDD" bgColor="484F58" fontStyle="0" /> // </GlobalStyles> // </NotepadPlus> // // ↑↑↑ End of Code } // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ // ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ // ├─────────────────────────────── Auto-Completion Pine Script keywords ─────────────────────────────────┤ { // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ // @description .xml file to make Notepad++ recognize and Auto-Completion Pine Script keywords and names // @path %AppData%\Notepad++\autoCompletion // @filename PineScript.xml // Code to Copy ↓↓↓ // // <?xml version="1.0" encoding="UTF-8" ?> // <!-- // File name: PineScript.xml // Description: PineScript autoCompletion Language operators, Built-in variables, functions, parameters and keywords by RK. // Notepad++ Auto complete with the parameters for functions. // Supported version: Pine V5 - October 2021 Version // Created by: Rodrigo Felipe Silveira RK (rodrigokazuma at gmail dot com) // Released: 2021-11-08 // License: MIT // --> // <NotepadPlus> // <AutoComplete language="PineScript"> // <Environment ignoreCase="yes" startFunc="(" stopFunc=")" paramSeparator="," terminal="" additionalWordChar = ".:#"/> // <KeyWord name="ANY" /> // <KeyWord name="ATR" /> // <KeyWord name="FIFO" /> // <KeyWord name="FQ" /> // <KeyWord name="FY" /> // <KeyWord name="NaN" /> // <KeyWord name="TTM" /> // <KeyWord name="Traditional" /> // <KeyWord name="adjustment" /> // <KeyWord name="adjustment.dividends" /> // <KeyWord name="adjustment.none" /> // <KeyWord name="adjustment.splits" /> // <KeyWord name="adxSmoothing" /> // <KeyWord name="alert" func="yes" ><Overload retVal="void" > <Param name="message" /><Param name=" freq" /> </Overload></KeyWord> // <KeyWord name="alert.freq_all" /> // <KeyWord name="alert.freq_once_per_bar" /> // <KeyWord name="alert.freq_once_per_bar_close" /> // <KeyWord name="alert_message" /> // <KeyWord name="alertcondition" func="yes" ><Overload retVal="void" > <Param name="condition" /><Param name=" title" /><Param name=" message" /> </Overload></KeyWord> // <KeyWord name="and" /> // <KeyWord name="angle" /> // <KeyWord name="array.avg" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.clear" func="yes" ><Overload retVal="void" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.concat" func="yes" ><Overload retVal="id1" > <Param name="id1" /><Param name=" id2" /> </Overload></KeyWord> // <KeyWord name="array.copy" func="yes" ><Overload retVal="array" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.covariance" func="yes" ><Overload retVal="series float" > <Param name="id1" /><Param name=" id2" /> </Overload></KeyWord> // <KeyWord name="array.fill" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" value" /><Param name=" index_from" /><Param name=" index_to" /> </Overload></KeyWord> // <KeyWord name="array.from" func="yes" ><Overload retVal="bool[], box[], color[], float[], int[], label[], line[], string[], table[]" > <Param name="arg0" /><Param name=" arg1" /> </Overload></KeyWord> // <KeyWord name="array.get" func="yes" ><Overload retVal="series <type of the array's elements>" > <Param name="id" /><Param name=" index" /> </Overload></KeyWord> // <KeyWord name="array.includes" func="yes" ><Overload retVal="series bool" > <Param name="id" /><Param name=" value" /> </Overload></KeyWord> // <KeyWord name="array.indexof" func="yes" ><Overload retVal="series int" > <Param name="id" /><Param name=" value" /> </Overload></KeyWord> // <KeyWord name="array.insert" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" index" /><Param name=" value" /> </Overload></KeyWord> // <KeyWord name="array.join" func="yes" ><Overload retVal="series string" > <Param name="id" /><Param name=" separator" /> </Overload></KeyWord> // <KeyWord name="array.lastindexof" func="yes" ><Overload retVal="series int" > <Param name="id" /><Param name=" value" /> </Overload></KeyWord> // <KeyWord name="array.max" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.median" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.min" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.mode" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.new_bool" func="yes" ><Overload retVal="bool[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.new_box" func="yes" ><Overload retVal="box[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.new_color" func="yes" ><Overload retVal="color[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.new_float" func="yes" ><Overload retVal="float[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.new_int" func="yes" ><Overload retVal="int[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.new_label" func="yes" ><Overload retVal="label[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.new_line" func="yes" ><Overload retVal="line[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.new_string" func="yes" ><Overload retVal="string[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.new_table" func="yes" ><Overload retVal="table[]" > <Param name="size" /><Param name=" initial_value" /> </Overload></KeyWord> // <KeyWord name="array.pop" func="yes" ><Overload retVal="series <type of the array's elements>" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.push" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" value" /> </Overload></KeyWord> // <KeyWord name="array.range" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.remove" func="yes" ><Overload retVal="series <type of the array's elements>" > <Param name="id" /><Param name=" index" /> </Overload></KeyWord> // <KeyWord name="array.reverse" func="yes" ><Overload retVal="void" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.set" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" index" /><Param name=" value" /> </Overload></KeyWord> // <KeyWord name="array.shift" func="yes" ><Overload retVal="series <type of the array's elements>" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.size" func="yes" ><Overload retVal="series int" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.slice" func="yes" ><Overload retVal="array" > <Param name="id" /><Param name=" index_from" /><Param name=" index_to" /> </Overload></KeyWord> // <KeyWord name="array.sort" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" order" /> </Overload></KeyWord> // <KeyWord name="array.standardize" func="yes" ><Overload retVal="float[] int[]" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.stdev" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.sum" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="array.unshift" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" value" /> </Overload></KeyWord> // <KeyWord name="array.variance" func="yes" ><Overload retVal="series (float int)" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="atrPeriod" /> // <KeyWord name="backtest_fill_limits_assumption" /> // <KeyWord name="bar_index" /> // <KeyWord name="barcolor" func="yes" ><Overload retVal="void" > <Param name="color" /><Param name=" offset" /><Param name=" editable" /><Param name=" show_last" /><Param name=" title" /> </Overload></KeyWord> // <KeyWord name="barmerge.gaps_off" /> // <KeyWord name="barmerge.gaps_on" /> // <KeyWord name="barmerge.lookahead_off" /> // <KeyWord name="barmerge.lookahead_on" /> // <KeyWord name="barstate.isconfirmed" /> // <KeyWord name="barstate.isfirst" /> // <KeyWord name="barstate.ishistory" /> // <KeyWord name="barstate.islast" /> // <KeyWord name="barstate.islastconfirmedhistory" /> // <KeyWord name="barstate.isnew" /> // <KeyWord name="barstate.isrealtime" /> // <KeyWord name="base" /> // <KeyWord name="bgcolor" func="yes" ><Overload retVal="void" > <Param name="color" /><Param name=" offset" /><Param name=" editable" /><Param name=" show_last" /><Param name=" title" /> </Overload></KeyWord> // <KeyWord name="blue" /> // <KeyWord name="bool" func="yes" ><Overload retVal="(const input series simple) bool" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="border_color" /> // <KeyWord name="border_style" /> // <KeyWord name="border_width" /> // <KeyWord name="bordercolor" /> // <KeyWord name="bottom" /> // <KeyWord name="bottom_color" /> // <KeyWord name="bottom_value" /> // <KeyWord name="box" func="yes" ><Overload retVal="series box" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="box.all" /> // <KeyWord name="box.delete" func="yes" ><Overload retVal="void" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="box.get_bottom" func="yes" ><Overload retVal="series float" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="box.get_left" func="yes" ><Overload retVal="series int" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="box.get_right" func="yes" ><Overload retVal="series int" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="box.get_top" func="yes" ><Overload retVal="series float" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="box.new" func="yes" ><Overload retVal="series box" > <Param name="left" /><Param name=" top" /><Param name=" right" /><Param name=" bottom" /><Param name=" border_color" /><Param name=" border_width" /><Param name=" border_style" /><Param name=" extend" /><Param name=" xloc" /><Param name=" bgcolor" /> </Overload></KeyWord> // <KeyWord name="box.set_bgcolor" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" color" /> </Overload></KeyWord> // <KeyWord name="box.set_border_color" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" color" /> </Overload></KeyWord> // <KeyWord name="box.set_border_style" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" style" /> </Overload></KeyWord> // <KeyWord name="box.set_border_width" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" width" /> </Overload></KeyWord> // <KeyWord name="box.set_bottom" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" bottom" /> </Overload></KeyWord> // <KeyWord name="box.set_extend" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" extend" /> </Overload></KeyWord> // <KeyWord name="box.set_left" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" left" /> </Overload></KeyWord> // <KeyWord name="box.set_lefttop" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" left" /><Param name=" top" /> </Overload></KeyWord> // <KeyWord name="box.set_right" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" right" /> </Overload></KeyWord> // <KeyWord name="box.set_rightbottom" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" right" /><Param name=" bottom" /> </Overload></KeyWord> // <KeyWord name="box.set_top" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" top" /> </Overload></KeyWord> // <KeyWord name="break" /> // <KeyWord name="calc_on_every_tick" /> // <KeyWord name="calc_on_order_fills" /> // <KeyWord name="char" /> // <KeyWord name="chart.bg_color" /> // <KeyWord name="chart.fg_color" /> // <KeyWord name="close" /> // <KeyWord name="close_entries_rule" /> // <KeyWord name="color" func="yes" ><Overload retVal="(const input series simple) color" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="color.aqua" /> // <KeyWord name="color.b" func="yes" ><Overload retVal="(const input series) float" > <Param name="color" /> </Overload></KeyWord> // <KeyWord name="color.black" /> // <KeyWord name="color.blue" /> // <KeyWord name="color.from_gradient" func="yes" ><Overload retVal="series color" > <Param name="value" /><Param name=" bottom_value" /><Param name=" top_value" /><Param name=" bottom_color" /><Param name=" top_color" /> </Overload></KeyWord> // <KeyWord name="color.fuchsia" /> // <KeyWord name="color.g" func="yes" ><Overload retVal="(const input series) float" > <Param name="color" /> </Overload></KeyWord> // <KeyWord name="color.gray" /> // <KeyWord name="color.green" /> // <KeyWord name="color.lime" /> // <KeyWord name="color.maroon" /> // <KeyWord name="color.navy" /> // <KeyWord name="color.new" func="yes" ><Overload retVal="const color" > <Param name="color" /><Param name=" transp" /> </Overload></KeyWord> // <KeyWord name="color.olive" /> // <KeyWord name="color.orange" /> // <KeyWord name="color.purple" /> // <KeyWord name="color.r" func="yes" ><Overload retVal="(const input series) float" > <Param name="color" /> </Overload></KeyWord> // <KeyWord name="color.red" /> // <KeyWord name="color.rgb" func="yes" ><Overload retVal="(const input series) color" > <Param name="red" /><Param name=" green" /><Param name=" blue" /><Param name=" transp" /> </Overload></KeyWord> // <KeyWord name="color.silver" /> // <KeyWord name="color.t" func="yes" ><Overload retVal="(const input series) float" > <Param name="color" /> </Overload></KeyWord> // <KeyWord name="color.teal" /> // <KeyWord name="color.white" /> // <KeyWord name="color.yellow" /> // <KeyWord name="colordown" /> // <KeyWord name="colorup" /> // <KeyWord name="column" /> // <KeyWord name="columns" /> // <KeyWord name="comment" /> // <KeyWord name="commission_type" /> // <KeyWord name="commission_value" /> // <KeyWord name="condition" /> // <KeyWord name="confirm" /> // <KeyWord name="continue" /> // <KeyWord name="contracts" /> // <KeyWord name="count" /> // <KeyWord name="currency" /> // <KeyWord name="currency.AUD" /> // <KeyWord name="currency.CAD" /> // <KeyWord name="currency.CHF" /> // <KeyWord name="currency.EUR" /> // <KeyWord name="currency.GBP" /> // <KeyWord name="currency.HKD" /> // <KeyWord name="currency.JPY" /> // <KeyWord name="currency.NOK" /> // <KeyWord name="currency.NONE" /> // <KeyWord name="currency.NZD" /> // <KeyWord name="currency.RUB" /> // <KeyWord name="currency.SEK" /> // <KeyWord name="currency.SGD" /> // <KeyWord name="currency.TRY" /> // <KeyWord name="currency.USD" /> // <KeyWord name="currency.ZAR" /> // <KeyWord name="dateString" /> // <KeyWord name="day" /> // <KeyWord name="dayofmonth" func="yes" ><Overload retVal="series int" > <Param name="time" /><Param name=" *timezone" /> </Overload></KeyWord> // <KeyWord name="dayofweek" func="yes" ><Overload retVal="series int" > <Param name="time" /><Param name=" *timezone" /> </Overload></KeyWord> // <KeyWord name="dayofweek.friday" /> // <KeyWord name="dayofweek.monday" /> // <KeyWord name="dayofweek.saturday" /> // <KeyWord name="dayofweek.sunday" /> // <KeyWord name="dayofweek.thursday" /> // <KeyWord name="dayofweek.tuesday" /> // <KeyWord name="dayofweek.wednesday" /> // <KeyWord name="default_qty_type" /> // <KeyWord name="default_qty_value" /> // <KeyWord name="defval" /> // <KeyWord name="degrees" /> // <KeyWord name="diLength" /> // <KeyWord name="direction" /> // <KeyWord name="display" /> // <KeyWord name="display.all" /> // <KeyWord name="display.none" /> // <KeyWord name="dividends.gross" /> // <KeyWord name="dividends.net" /> // <KeyWord name="earnings.actual" /> // <KeyWord name="earnings.estimate" /> // <KeyWord name="earnings.standardized" /> // <KeyWord name="editable" /> // <KeyWord name="else if" /> // <KeyWord name="else" /> // <KeyWord name="end_column" /> // <KeyWord name="end_row" /> // <KeyWord name="explicit_plot_zorder" /> // <KeyWord name="exponent" /> // <KeyWord name="export" /> // <KeyWord name="expression" /> // <KeyWord name="extend" /> // <KeyWord name="extend.both" /> // <KeyWord name="extend.left" /> // <KeyWord name="extend.none" /> // <KeyWord name="extend.right" /> // <KeyWord name="factor" /> // <KeyWord name="false" /> // <KeyWord name="fastlen" /> // <KeyWord name="field" /> // <KeyWord name="fill" func="yes" ><Overload retVal="void" > <Param name="hline1 plot1" /><Param name=" hline2 plot2" /><Param name=" color" /><Param name=" title" /><Param name=" editable" /><Param name=" *show_last" /><Param name=" fillgaps" /> </Overload></KeyWord> // <KeyWord name="fillgaps" /> // <KeyWord name="financial_id" /> // <KeyWord name="fixnan" func="yes" ><Overload retVal="series (bool color float int)" > <Param name="source" /> </Overload></KeyWord> // <KeyWord name="float" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="floor" /> // <KeyWord name="for" /> // <KeyWord name="format" /> // <KeyWord name="format.inherit" /> // <KeyWord name="format.mintick" /> // <KeyWord name="format.percent" /> // <KeyWord name="format.price" /> // <KeyWord name="format.volume" /> // <KeyWord name="formatString" /> // <KeyWord name="frame_color" /> // <KeyWord name="frame_width" /> // <KeyWord name="freq" /> // <KeyWord name="from_entry" /> // <KeyWord name="gaps" /> // <KeyWord name="green" /> // <KeyWord name="group" /> // <KeyWord name="handle_na" /> // <KeyWord name="height" /> // <KeyWord name="high" /> // <KeyWord name="histbase" /> // <KeyWord name="hl2" /> // <KeyWord name="hlc3" /> // <KeyWord name="hline1" /> // <KeyWord name="hline2" /> // <KeyWord name="hline" func="yes" ><Overload retVal="hline" > <Param name="price" /><Param name=" title" /><Param name=" color" /><Param name=" linestyle" /><Param name=" linewidth" /><Param name=" editable" /> </Overload></KeyWord> // <KeyWord name="hline.style_dashed" /> // <KeyWord name="hline.style_dotted" /> // <KeyWord name="hline.style_solid" /> // <KeyWord name="hour" func="yes" ><Overload retVal="series int" > <Param name="time" /><Param name=" *timezone" /> </Overload></KeyWord> // <KeyWord name="id1" /> // <KeyWord name="id2" /> // <KeyWord name="id" /> // <KeyWord name="if" /> // <KeyWord name="ignore_invalid_symbol" /> // <KeyWord name="import" /> // <KeyWord name="inc" /> // <KeyWord name="index" /> // <KeyWord name="index_from" /> // <KeyWord name="index_to" /> // <KeyWord name="indicator" func="yes" ><Overload retVal="void" > <Param name="title" /><Param name=" shorttitle" /><Param name=" overlay" /><Param name=" format" /><Param name=" precision" /><Param name=" scale" /><Param name=" max_bars_back" /><Param name=" timeframe" /><Param name=" timeframe_gaps" /><Param name=" explicit_plot_zorder" /><Param name=" max_lines_count" /><Param name=" max_labels_count" /><Param name=" max_boxes_count" /> </Overload></KeyWord> // <KeyWord name="initial_capital" /> // <KeyWord name="initial_value" /> // <KeyWord name="inline" /> // <KeyWord name="input" func="yes" ><Overload retVal="(input series) (bool color float int string)" > <Param name="defval" /><Param name=" title" /><Param name=" inline" /><Param name=" group" /><Param name=" tooltip" /> </Overload></KeyWord> // <KeyWord name="input.bool" func="yes" ><Overload retVal="input bool" > <Param name="defval" /><Param name=" title" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.color" func="yes" ><Overload retVal="input color" > <Param name="defval" /><Param name=" title" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.float" func="yes" ><Overload retVal="input float" > <Param name="defval" /><Param name=" title" /><Param name=" options (minval; maxval; step)" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.int" func="yes" ><Overload retVal="input int" > <Param name="defval" /><Param name=" title" /><Param name=" options (minval; maxval; step)" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.price" func="yes" ><Overload retVal="input float" > <Param name="defval" /><Param name=" title" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.session" func="yes" ><Overload retVal="input string" > <Param name="defval" /><Param name=" title" /><Param name=" options" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.source" func="yes" ><Overload retVal="series float" > <Param name="defval" /><Param name=" title" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /> </Overload></KeyWord> // <KeyWord name="input.string" func="yes" ><Overload retVal="input string" > <Param name="defval" /><Param name=" title" /><Param name=" options" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.symbol" func="yes" ><Overload retVal="input string" > <Param name="defval" /><Param name=" title" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.time" func="yes" ><Overload retVal="input int" > <Param name="defval" /><Param name=" title" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="input.timeframe" func="yes" ><Overload retVal="input string" > <Param name="defval" /><Param name=" title" /><Param name=" options" /><Param name=" tooltip" /><Param name=" inline" /><Param name=" group" /><Param name=" confirm" /> </Overload></KeyWord> // <KeyWord name="int" func="yes" ><Overload retVal="(const input series simple) int" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="join" /> // <KeyWord name="label" func="yes" ><Overload retVal="series label" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="label.all" /> // <KeyWord name="label.delete" func="yes" ><Overload retVal="void" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="label.get_text" func="yes" ><Overload retVal="series string" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="label.get_x" func="yes" ><Overload retVal="series int" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="label.get_y" func="yes" ><Overload retVal="series float" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="label.new" func="yes" ><Overload retVal="series label" > <Param name="x" /><Param name=" y" /><Param name=" text" /><Param name=" xloc" /><Param name=" yloc" /><Param name=" color" /><Param name=" style" /><Param name=" textcolor" /><Param name=" size" /><Param name=" textalign" /><Param name=" tooltip" /> </Overload></KeyWord> // <KeyWord name="label.set_color" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" color" /> </Overload></KeyWord> // <KeyWord name="label.set_size" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" size" /> </Overload></KeyWord> // <KeyWord name="label.set_style" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" style" /> </Overload></KeyWord> // <KeyWord name="label.set_text" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" text" /> </Overload></KeyWord> // <KeyWord name="label.set_textalign" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" textalign" /> </Overload></KeyWord> // <KeyWord name="label.set_textcolor" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" textcolor" /> </Overload></KeyWord> // <KeyWord name="label.set_tooltip" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" tooltip" /> </Overload></KeyWord> // <KeyWord name="label.set_x" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" x" /> </Overload></KeyWord> // <KeyWord name="label.set_xloc" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" x" /><Param name=" xloc" /> </Overload></KeyWord> // <KeyWord name="label.set_xy" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" x" /><Param name=" y" /> </Overload></KeyWord> // <KeyWord name="label.set_y" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" y" /> </Overload></KeyWord> // <KeyWord name="label.set_yloc" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" yloc" /> </Overload></KeyWord> // <KeyWord name="label.style_arrowdown" /> // <KeyWord name="label.style_arrowup" /> // <KeyWord name="label.style_circle" /> // <KeyWord name="label.style_cross" /> // <KeyWord name="label.style_diamond" /> // <KeyWord name="label.style_flag" /> // <KeyWord name="label.style_label_center" /> // <KeyWord name="label.style_label_down" /> // <KeyWord name="label.style_label_left" /> // <KeyWord name="label.style_label_lower_left" /> // <KeyWord name="label.style_label_lower_right" /> // <KeyWord name="label.style_label_right" /> // <KeyWord name="label.style_label_up" /> // <KeyWord name="label.style_label_upper_left" /> // <KeyWord name="label.style_label_upper_right" /> // <KeyWord name="label.style_none" /> // <KeyWord name="label.style_square" /> // <KeyWord name="label.style_triangledown" /> // <KeyWord name="label.style_triangleup" /> // <KeyWord name="label.style_xcross" /> // <KeyWord name="left" /> // <KeyWord name="leftbars" /> // <KeyWord name="length" /> // <KeyWord name="library" func="yes" ><Overload retVal="void" > <Param name="title" /><Param name=" overlay" /> </Overload></KeyWord> // <KeyWord name="limit" /> // <KeyWord name="line" func="yes" ><Overload retVal="series line" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="line.all" /> // <KeyWord name="line.delete" func="yes" ><Overload retVal="void" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="line.get_price" func="yes" ><Overload retVal="series float" > <Param name="id" /><Param name=" x" /> </Overload></KeyWord> // <KeyWord name="line.get_x1" func="yes" ><Overload retVal="series int" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="line.get_x2" func="yes" ><Overload retVal="series int" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="line.get_y1" func="yes" ><Overload retVal="series float" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="line.get_y2" func="yes" ><Overload retVal="series float" > <Param name="id" /> </Overload></KeyWord> // <KeyWord name="line.new" func="yes" ><Overload retVal="series line" > <Param name="x1" /><Param name=" y1" /><Param name=" x2" /><Param name=" y2" /><Param name=" xloc" /><Param name=" extend" /><Param name=" color" /><Param name=" style" /><Param name=" width" /> </Overload></KeyWord> // <KeyWord name="line.set_color" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" color" /> </Overload></KeyWord> // <KeyWord name="line.set_extend" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" extend" /> </Overload></KeyWord> // <KeyWord name="line.set_style" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" style" /> </Overload></KeyWord> // <KeyWord name="line.set_width" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" width" /> </Overload></KeyWord> // <KeyWord name="line.set_x1" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" x" /> </Overload></KeyWord> // <KeyWord name="line.set_x2" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" x" /> </Overload></KeyWord> // <KeyWord name="line.set_xloc" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" x1" /><Param name=" x2" /><Param name=" xloc" /> </Overload></KeyWord> // <KeyWord name="line.set_xy1" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" x" /><Param name=" y" /> </Overload></KeyWord> // <KeyWord name="line.set_xy2" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" x" /><Param name=" y" /> </Overload></KeyWord> // <KeyWord name="line.set_y1" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" y" /> </Overload></KeyWord> // <KeyWord name="line.set_y2" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" y" /> </Overload></KeyWord> // <KeyWord name="line.style_arrow_both" /> // <KeyWord name="line.style_arrow_left" /> // <KeyWord name="line.style_arrow_right" /> // <KeyWord name="line.style_dashed" /> // <KeyWord name="line.style_dotted" /> // <KeyWord name="line.style_solid" /> // <KeyWord name="linestyle" /> // <KeyWord name="linewidth" /> // <KeyWord name="location" /> // <KeyWord name="location.abovebar" /> // <KeyWord name="location.absolute" /> // <KeyWord name="location.belowbar" /> // <KeyWord name="location.bottom" /> // <KeyWord name="location.top" /> // <KeyWord name="long_length" /> // <KeyWord name="lookahead" /> // <KeyWord name="loss" /> // <KeyWord name="low" /> // <KeyWord name="margin_long" /> // <KeyWord name="margin_short" /> // <KeyWord name="math.abs" func="yes" ><Overload retVal="(const input series simple) (float int)" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.acos" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="angle" /> </Overload></KeyWord> // <KeyWord name="math.asin" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="angle" /> </Overload></KeyWord> // <KeyWord name="math.atan" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="angle" /> </Overload></KeyWord> // <KeyWord name="math.avg" func="yes" ><Overload retVal="(series simple) float" > <Param name="number0" /><Param name=" number1" /> </Overload></KeyWord> // <KeyWord name="math.ceil" func="yes" ><Overload retVal="(const input series simple) int" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.cos" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="angle" /> </Overload></KeyWord> // <KeyWord name="math.e" /> // <KeyWord name="math.exp" func="yes" ><Overload retVal="(const input series simple) int" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.floor" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.log10" func="yes" ><Overload retVal="(input series simple) (float int)" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.log" func="yes" ><Overload retVal="(input series simple) (float int)" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.max" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="number0" /><Param name=" number1" /> </Overload></KeyWord> // <KeyWord name="math.min" func="yes" ><Overload retVal="series float" > <Param name="number0" /><Param name=" number1" /> </Overload></KeyWord> // <KeyWord name="math.phi" /> // <KeyWord name="math.pi" /> // <KeyWord name="math.pow" func="yes" ><Overload retVal="(series simple) float" > <Param name="base" /><Param name=" exponent" /> </Overload></KeyWord> // <KeyWord name="math.random" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="min" /><Param name=" max" /><Param name=" seed" /> </Overload></KeyWord> // <KeyWord name="math.round" func="yes" ><Overload retVal="(const input series simple) (int float)" > <Param name="number" /><Param name=" *precision" /> </Overload></KeyWord> // <KeyWord name="math.round_to_mintick" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.rphi" /> // <KeyWord name="math.sign" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.sin" func="yes" ><Overload retVal="series float" > <Param name="angle" /> </Overload></KeyWord> // <KeyWord name="math.sqrt" func="yes" ><Overload retVal="(const input series simple) float" > <Param name="number" /> </Overload></KeyWord> // <KeyWord name="math.sum" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="math.tan" func="yes" ><Overload retVal="series float" > <Param name="angle" /> </Overload></KeyWord> // <KeyWord name="math.todegrees" func="yes" ><Overload retVal="void" > <Param name="radians" /> </Overload></KeyWord> // <KeyWord name="math.toradians" func="yes" ><Overload retVal="(series simple) bool" > <Param name="degrees" /> </Overload></KeyWord> // <KeyWord name="max" /> // <KeyWord name="max_bars_back" func="yes" ><Overload retVal="plot" > <Param name="var" /><Param name=" num" /> </Overload></KeyWord> // <KeyWord name="max_boxes_count" /> // <KeyWord name="max_labels_count" /> // <KeyWord name="max_lines_count" /> // <KeyWord name="maxheight" /> // <KeyWord name="maxval" /> // <KeyWord name="message" /> // <KeyWord name="min" /> // <KeyWord name="minheight" /> // <KeyWord name="minute" func="yes" ><Overload retVal="series int" > <Param name="time" /><Param name=" *timezone" /> </Overload></KeyWord> // <KeyWord name="minval" /> // <KeyWord name="month" func="yes" ><Overload retVal="series int" > <Param name="time" /><Param name=" *timezone" /> </Overload></KeyWord> // <KeyWord name="mult" /> // <KeyWord name="na" func="yes" ><Overload retVal="void" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="not" /> // <KeyWord name="num" /> // <KeyWord name="number" /> // <KeyWord name="number_of_lines" /> // <KeyWord name="nz" func="yes" ><Overload retVal="(series simple) (bool color float int)" > <Param name="source" /><Param name=" *replacement" /> </Overload></KeyWord> // <KeyWord name="oca_name" /> // <KeyWord name="oca_type" /> // <KeyWord name="offset" /> // <KeyWord name="ohlc4" /> // <KeyWord name="open" /> // <KeyWord name="options" /> // <KeyWord name="or" /> // <KeyWord name="order" /> // <KeyWord name="order.ascending" /> // <KeyWord name="order.descending" /> // <KeyWord name="overlay" /> // <KeyWord name="param" /> // <KeyWord name="percentage" /> // <KeyWord name="period" /> // <KeyWord name="plot1" /> // <KeyWord name="plot2" /> // <KeyWord name="plot" func="yes" ><Overload retVal="void" > <Param name="series" /><Param name=" title" /><Param name=" color" /><Param name=" linewidth" /><Param name=" style" /><Param name=" trackprice" /><Param name=" histbase" /><Param name=" offset" /><Param name=" join" /><Param name=" editable" /><Param name=" show_last" /><Param name=" display" /> </Overload></KeyWord> // <KeyWord name="plot.style_area" /> // <KeyWord name="plot.style_areabr" /> // <KeyWord name="plot.style_circles" /> // <KeyWord name="plot.style_columns" /> // <KeyWord name="plot.style_cross" /> // <KeyWord name="plot.style_histogram" /> // <KeyWord name="plot.style_line" /> // <KeyWord name="plot.style_linebr" /> // <KeyWord name="plot.style_stepline" /> // <KeyWord name="plot.style_stepline_diamond" /> // <KeyWord name="plotarrow" func="yes" ><Overload retVal="void" > <Param name="series" /><Param name=" title" /><Param name=" colorup" /><Param name=" colordown" /><Param name=" offset" /><Param name=" minheight" /><Param name=" maxheight" /><Param name=" editable" /><Param name=" show_last" /><Param name=" display" /> </Overload></KeyWord> // <KeyWord name="plotbar" func="yes" ><Overload retVal="void" > <Param name="open" /><Param name=" high" /><Param name=" low" /><Param name=" close" /><Param name=" title" /><Param name=" color" /><Param name=" editable" /><Param name=" show_last" /><Param name=" display" /> </Overload></KeyWord> // <KeyWord name="plotcandle" func="yes" ><Overload retVal="void" > <Param name="open" /><Param name=" high" /><Param name=" low" /><Param name=" close" /><Param name=" title" /><Param name=" color" /><Param name=" wickcolor" /><Param name=" editable" /><Param name=" show_last" /><Param name=" bordercolor" /><Param name=" display" /> </Overload></KeyWord> // <KeyWord name="plotchar" func="yes" ><Overload retVal="series float" > <Param name="series" /><Param name=" title" /><Param name=" char" /><Param name=" location" /><Param name=" color" /><Param name=" offset" /><Param name=" text" /><Param name=" textcolor" /><Param name=" editable" /><Param name=" size" /><Param name=" show_last" /><Param name=" display" /> </Overload></KeyWord> // <KeyWord name="plotshape" func="yes" ><Overload retVal="series float" > <Param name="series" /><Param name=" title" /><Param name=" style" /><Param name=" location" /><Param name=" color" /><Param name=" offset" /><Param name=" text" /><Param name=" textcolor" /><Param name=" editable" /><Param name=" size" /><Param name=" show_last" /><Param name=" display" /> </Overload></KeyWord> // <KeyWord name="position" /> // <KeyWord name="position.bottom_center" /> // <KeyWord name="position.bottom_left" /> // <KeyWord name="position.bottom_right" /> // <KeyWord name="position.middle_center" /> // <KeyWord name="position.middle_left" /> // <KeyWord name="position.middle_right" /> // <KeyWord name="position.top_center" /> // <KeyWord name="position.top_left" /> // <KeyWord name="position.top_right" /> // <KeyWord name="precision" /> // <KeyWord name="prefix" /> // <KeyWord name="price" /> // <KeyWord name="process_orders_on_close" /> // <KeyWord name="profit" /> // <KeyWord name="pyramiding" /> // <KeyWord name="qty" /> // <KeyWord name="qty_percent" /> // <KeyWord name="radians" /> // <KeyWord name="red" /> // <KeyWord name="replacement" /> // <KeyWord name="request.dividends" func="yes" ><Overload retVal="series float" > <Param name="ticker" /><Param name=" field" /><Param name=" gaps" /><Param name=" lookahead" /><Param name=" ignore_invalid_symbol" /><Param name=" currency" /> </Overload></KeyWord> // <KeyWord name="request.earnings" func="yes" ><Overload retVal="series float" > <Param name="ticker" /><Param name=" field" /><Param name=" gaps" /><Param name=" lookahead" /><Param name=" ignore_invalid_symbol" /><Param name=" currency" /> </Overload></KeyWord> // <KeyWord name="request.financial" func="yes" ><Overload retVal="series (bool color float int)" > <Param name="symbol" /><Param name=" financial_id" /><Param name=" period" /><Param name=" gaps" /><Param name=" ignore_invalid_symbol" /><Param name=" currency" /> </Overload></KeyWord> // <KeyWord name="request.quandl" func="yes" ><Overload retVal="series float" > <Param name="ticker" /><Param name=" gaps" /><Param name=" index" /><Param name=" ignore_invalid_symbol" /> </Overload></KeyWord> // <KeyWord name="request.security" func="yes" ><Overload retVal="void" > <Param name="symbol" /><Param name=" timeframe" /><Param name=" expression" /><Param name=" gaps" /><Param name=" lookahead" /><Param name=" ignore_invalid_symbol" /><Param name=" currency" /> </Overload></KeyWord> // <KeyWord name="request.splits" func="yes" ><Overload retVal="(series simple) string string" > <Param name="ticker" /><Param name=" field" /><Param name=" gaps" /><Param name=" lookahead" /><Param name=" ignore_invalid_symbol" /> </Overload></KeyWord> // <KeyWord name="reversal" /> // <KeyWord name="right" /> // <KeyWord name="rightbars" /> // <KeyWord name="row" /> // <KeyWord name="rows" /> // <KeyWord name="runtime.error" func="yes" ><Overload retVal="(const series simple) int" > <Param name="message" /> </Overload></KeyWord> // <KeyWord name="scale" /> // <KeyWord name="scale.left" /> // <KeyWord name="scale.none" /> // <KeyWord name="scale.right" /> // <KeyWord name="second" func="yes" ><Overload retVal="series int" > <Param name="time" /><Param name=" *timezone" /> </Overload></KeyWord> // <KeyWord name="seed" /> // <KeyWord name="separator" /> // <KeyWord name="series" /> // <KeyWord name="session" /> // <KeyWord name="session.extended" /> // <KeyWord name="session.ismarket" /> // <KeyWord name="session.ispostmarket" /> // <KeyWord name="session.ispremarket" /> // <KeyWord name="session.regular" /> // <KeyWord name="shape.arrowdown" /> // <KeyWord name="shape.arrowup" /> // <KeyWord name="shape.circle" /> // <KeyWord name="shape.cross" /> // <KeyWord name="shape.diamond" /> // <KeyWord name="shape.flag" /> // <KeyWord name="shape.labeldown" /> // <KeyWord name="shape.labelup" /> // <KeyWord name="shape.square" /> // <KeyWord name="shape.triangledown" /> // <KeyWord name="shape.triangleup" /> // <KeyWord name="shape.xcross" /> // <KeyWord name="short_length" /> // <KeyWord name="shorttitle" /> // <KeyWord name="show_last" /> // <KeyWord name="siglen" /> // <KeyWord name="sigma" /> // <KeyWord name="simple" /> // <KeyWord name="size" /> // <KeyWord name="size.auto" /> // <KeyWord name="size.huge" /> // <KeyWord name="size.large" /> // <KeyWord name="size.normal" /> // <KeyWord name="size.small" /> // <KeyWord name="size.tiny" /> // <KeyWord name="slippage" /> // <KeyWord name="slowlen" /> // <KeyWord name="source1" /> // <KeyWord name="source2" /> // <KeyWord name="source" /> // <KeyWord name="splits.denominator" /> // <KeyWord name="splits.numerator" /> // <KeyWord name="start" /> // <KeyWord name="start_column" /> // <KeyWord name="start_row" /> // <KeyWord name="step" /> // <KeyWord name="stop" /> // <KeyWord name="str.format" func="yes" ><Overload retVal="(series simple) string" > <Param name="formatString" /><Param name=" arg0" /><Param name=" arg1" /> </Overload></KeyWord> // <KeyWord name="str.length" func="yes" ><Overload retVal="string[]" > <Param name="string" /> </Overload></KeyWord> // <KeyWord name="str.replace_all" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" target" /><Param name=" replacement" /> </Overload></KeyWord> // <KeyWord name="str.split" func="yes" ><Overload retVal="void" > <Param name="string" /><Param name=" separator" /> </Overload></KeyWord> // <KeyWord name="str.tonumber" func="yes" ><Overload retVal="void" > <Param name="string" /> </Overload></KeyWord> // <KeyWord name="str.tostring" func="yes" ><Overload retVal="(series simple) string" > <Param name="value" /><Param name=" *format" /> </Overload></KeyWord> // <KeyWord name="strategy" func="yes" ><Overload retVal="void" > <Param name="title" /><Param name=" shorttitle" /><Param name=" overlay" /><Param name=" format" /><Param name=" precision" /><Param name=" scale" /><Param name=" pyramiding" /><Param name=" calc_on_order_fills" /><Param name=" calc_on_every_tick" /><Param name=" max_bars_back" /><Param name=" backtest_fill_limits_assumption" /><Param name=" default_qty_type" /><Param name=" default_qty_value" /><Param name=" initial_capital" /><Param name=" currency" /><Param name=" slippage" /><Param name=" commission_type" /><Param name=" commission_value" /><Param name=" process_orders_on_close" /><Param name=" close_entries_rule" /><Param name=" margin_long" /><Param name=" margin_short" /><Param name=" explicit_plot_zorder" /><Param name=" max_lines_count" /><Param name=" max_labels_count" /><Param name=" max_boxes_count" /> </Overload></KeyWord> // <KeyWord name="strategy.account_currency" /> // <KeyWord name="strategy.cancel" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" when" /> </Overload></KeyWord> // <KeyWord name="strategy.cancel_all" func="yes" ><Overload retVal="void" > <Param name="when" /> </Overload></KeyWord> // <KeyWord name="strategy.cash" /> // <KeyWord name="strategy.close" func="yes" ><Overload retVal="series float" > <Param name="id" /><Param name=" when" /><Param name=" comment" /><Param name=" qty" /><Param name=" qty_percent" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.close_all" func="yes" ><Overload retVal="series int" > <Param name="when" /><Param name=" comment" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades" /> // <KeyWord name="strategy.closedtrades.commission" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.entry_bar_index" func="yes" ><Overload retVal="series int" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.entry_price" func="yes" ><Overload retVal="series int" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.entry_time" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.exit_bar_index" func="yes" ><Overload retVal="series int" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.exit_price" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.exit_time" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.max_drawdown" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.max_runup" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.profit" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.closedtrades.size" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.commission.cash_per_contract" /> // <KeyWord name="strategy.commission.cash_per_order" /> // <KeyWord name="strategy.commission.percent" /> // <KeyWord name="strategy.convert_to_account" func="yes" ><Overload retVal="void" > <Param name="value" /> </Overload></KeyWord> // <KeyWord name="strategy.convert_to_symbol" func="yes" ><Overload retVal="void" > <Param name="value" /> </Overload></KeyWord> // <KeyWord name="strategy.direction.all" /> // <KeyWord name="strategy.direction.long" /> // <KeyWord name="strategy.direction.short" /> // <KeyWord name="strategy.entry" func="yes" ><Overload retVal="series float" > <Param name="id" /><Param name=" direction" /><Param name=" qty" /><Param name=" limit" /><Param name=" stop" /><Param name=" oca_name" /><Param name=" oca_type" /><Param name=" comment" /><Param name=" when" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.equity" /> // <KeyWord name="strategy.eventrades" /> // <KeyWord name="strategy.exit" func="yes" ><Overload retVal="series int" > <Param name="id" /><Param name=" from_entry" /><Param name=" qty" /><Param name=" qty_percent" /><Param name=" profit" /><Param name=" limit" /><Param name=" loss" /><Param name=" stop" /><Param name=" trail_price" /><Param name=" trail_points" /><Param name=" trail_offset" /><Param name=" oca_name" /><Param name=" comment" /><Param name=" when" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.fixed" /> // <KeyWord name="strategy.grossloss" /> // <KeyWord name="strategy.grossprofit" /> // <KeyWord name="strategy.initial_capital" /> // <KeyWord name="strategy.long" /> // <KeyWord name="strategy.losstrades" /> // <KeyWord name="strategy.max_contracts_held_all" /> // <KeyWord name="strategy.max_contracts_held_long" /> // <KeyWord name="strategy.max_contracts_held_short" /> // <KeyWord name="strategy.max_drawdown" /> // <KeyWord name="strategy.netprofit" /> // <KeyWord name="strategy.oca.cancel" /> // <KeyWord name="strategy.oca.none" /> // <KeyWord name="strategy.oca.reduce" /> // <KeyWord name="strategy.openprofit" /> // <KeyWord name="strategy.opentrades" /> // <KeyWord name="strategy.opentrades.commission" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.opentrades.entry_bar_index" func="yes" ><Overload retVal="series int" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.opentrades.entry_price" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.opentrades.entry_time" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.opentrades.max_drawdown" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.opentrades.max_runup" func="yes" ><Overload retVal="series float" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.opentrades.profit" func="yes" ><Overload retVal="void" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.opentrades.size" func="yes" ><Overload retVal="void" > <Param name="trade_num" /> </Overload></KeyWord> // <KeyWord name="strategy.order" func="yes" ><Overload retVal="void" > <Param name="id" /><Param name=" direction" /><Param name=" qty" /><Param name=" limit" /><Param name=" stop" /><Param name=" oca_name" /><Param name=" oca_type" /><Param name=" comment" /><Param name=" when" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.percent_of_equity" /> // <KeyWord name="strategy.position_avg_price" /> // <KeyWord name="strategy.position_entry_name" /> // <KeyWord name="strategy.position_size" /> // <KeyWord name="strategy.risk.allow_entry_in" func="yes" ><Overload retVal="void" > <Param name="value" /> </Overload></KeyWord> // <KeyWord name="strategy.risk.max_cons_loss_days" func="yes" ><Overload retVal="void" > <Param name="count" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.risk.max_drawdown" func="yes" ><Overload retVal="void" > <Param name="value" /><Param name=" type" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.risk.max_intraday_filled_orders" func="yes" ><Overload retVal="void" > <Param name="count" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.risk.max_intraday_loss" func="yes" ><Overload retVal="(const input series simple) string" > <Param name="value" /><Param name=" type" /><Param name=" alert_message" /> </Overload></KeyWord> // <KeyWord name="strategy.risk.max_position_size" func="yes" ><Overload retVal="series float" > <Param name="contracts" /> </Overload></KeyWord> // <KeyWord name="strategy.short" /> // <KeyWord name="strategy.wintrades" /> // <KeyWord name="string" func="yes" ><Overload retVal="series int" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="study" /> // <KeyWord name="style" /> // <KeyWord name="switch" /> // <KeyWord name="symbol" /> // <KeyWord name="syminfo.basecurrency" /> // <KeyWord name="syminfo.currency" /> // <KeyWord name="syminfo.description" /> // <KeyWord name="syminfo.mintick" /> // <KeyWord name="syminfo.pointvalue" /> // <KeyWord name="syminfo.prefix" /> // <KeyWord name="syminfo.root" /> // <KeyWord name="syminfo.session" /> // <KeyWord name="syminfo.ticker" /> // <KeyWord name="syminfo.tickerid" /> // <KeyWord name="syminfo.timezone" /> // <KeyWord name="syminfo.type" /> // <KeyWord name="ta.accdist" /> // <KeyWord name="ta.alma" func="yes" ><Overload retVal="series float" > <Param name="series" /><Param name=" length" /><Param name=" offset" /><Param name=" sigma" /><Param name=" *floor" /> </Overload></KeyWord> // <KeyWord name="ta.atr" func="yes" ><Overload retVal="[series float, series float, series float]" > <Param name="length" /> </Overload></KeyWord> // <KeyWord name="ta.barssince" func="yes" ><Overload retVal="series float" > <Param name="condition" /> </Overload></KeyWord> // <KeyWord name="ta.bb" func="yes" ><Overload retVal="series float" > <Param name="series" /><Param name=" length" /><Param name=" mult" /> </Overload></KeyWord> // <KeyWord name="ta.bbw" func="yes" ><Overload retVal="series float" > <Param name="series" /><Param name=" length" /><Param name=" mult" /> </Overload></KeyWord> // <KeyWord name="ta.cci" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.change" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.cmo" func="yes" ><Overload retVal="series float" > <Param name="series" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.cog" func="yes" ><Overload retVal="series bool" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.correlation" func="yes" ><Overload retVal="series bool" > <Param name="source1" /><Param name=" source2" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.cross" func="yes" ><Overload retVal="series bool" > <Param name="source1" /><Param name=" source2" /> </Overload></KeyWord> // <KeyWord name="ta.crossover" func="yes" ><Overload retVal="series float" > <Param name="source1" /><Param name=" source2" /> </Overload></KeyWord> // <KeyWord name="ta.crossunder" func="yes" ><Overload retVal="series float" > <Param name="source1" /><Param name=" source2" /> </Overload></KeyWord> // <KeyWord name="ta.cum" func="yes" ><Overload retVal="[series float, series float, series float]" > <Param name="source" /> </Overload></KeyWord> // <KeyWord name="ta.dev" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.dmi" func="yes" ><Overload retVal="series bool" > <Param name="diLength" /><Param name=" adxSmoothing" /> </Overload></KeyWord> // <KeyWord name="ta.ema" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.falling" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.highest" func="yes" ><Overload retVal="series float" > <Param name="*source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.highestbars" func="yes" ><Overload retVal="series int" > <Param name="*source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.hma" func="yes" ><Overload retVal="[series float, series float, series float]" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.iii" /> // <KeyWord name="ta.kc" func="yes" ><Overload retVal="[series float, series float, series float]" > <Param name="series" /><Param name=" length" /><Param name=" mult" /><Param name=" *useTrueRange" /> </Overload></KeyWord> // <KeyWord name="ta.kcw" func="yes" ><Overload retVal="series float" > <Param name="series" /><Param name=" length" /><Param name=" mult" /><Param name=" *useTrueRange" /> </Overload></KeyWord> // <KeyWord name="ta.linreg" func="yes" ><Overload retVal="series (float int)" > <Param name="source" /><Param name=" length" /><Param name=" offset" /> </Overload></KeyWord> // <KeyWord name="ta.lowest" func="yes" ><Overload retVal="series float" > <Param name="*source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.lowestbars" func="yes" ><Overload retVal="series int" > <Param name="*source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.macd" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" fastlen" /><Param name=" slowlen" /><Param name=" siglen" /> </Overload></KeyWord> // <KeyWord name="ta.median" func="yes" ><Overload retVal="series (float int)" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.mfi" func="yes" ><Overload retVal="series float" > <Param name="series" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.mode" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.mom" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.nvi" /> // <KeyWord name="ta.obv" /> // <KeyWord name="ta.percentile_linear_interpolation" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /><Param name=" percentage" /> </Overload></KeyWord> // <KeyWord name="ta.percentile_nearest_rank" func="yes" ><Overload retVal="series (float int)" > <Param name="source" /><Param name=" length" /><Param name=" percentage" /> </Overload></KeyWord> // <KeyWord name="ta.percentrank" func="yes" ><Overload retVal="series bool" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.pivothigh" func="yes" ><Overload retVal="series float" > <Param name="*source" /><Param name=" leftbars" /><Param name=" rightbars" /> </Overload></KeyWord> // <KeyWord name="ta.pivotlow" func="yes" ><Overload retVal="series float" > <Param name="*source" /><Param name=" leftbars" /><Param name=" rightbars" /> </Overload></KeyWord> // <KeyWord name="ta.pvi" /> // <KeyWord name="ta.pvt" /> // <KeyWord name="ta.range" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.rising" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.rma" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.roc" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.rsi" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.sar" func="yes" ><Overload retVal="series float" > <Param name="start" /><Param name=" inc" /><Param name=" max" /> </Overload></KeyWord> // <KeyWord name="ta.sma" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.stdev" func="yes" ><Overload retVal="[series float, series float]" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.stoch" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" high" /><Param name=" low" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.supertrend" func="yes" ><Overload retVal="series float" > <Param name="factor" /><Param name=" atrPeriod" /> </Overload></KeyWord> // <KeyWord name="ta.swma" func="yes" ><Overload retVal="series float" > <Param name="source" /> </Overload></KeyWord> // <KeyWord name="ta.tr" func="yes" ><Overload retVal="series (float int)" > <Param name="handle_na" /> </Overload></KeyWord> // <KeyWord name="ta.tsi" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" short_length" /><Param name=" long_length" /> </Overload></KeyWord> // <KeyWord name="ta.valuewhen" func="yes" ><Overload retVal="series float" > <Param name="condition" /><Param name=" source" /><Param name=" occurrence" /> </Overload></KeyWord> // <KeyWord name="ta.variance" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.vwap" func="yes" ><Overload retVal="series float" > <Param name="source" /> </Overload></KeyWord> // <KeyWord name="ta.vwma" func="yes" ><Overload retVal="series float" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.wad" /> // <KeyWord name="ta.wma" func="yes" ><Overload retVal="series table" > <Param name="source" /><Param name=" length" /> </Overload></KeyWord> // <KeyWord name="ta.wpr" func="yes" ><Overload retVal="void" > <Param name="length" /> </Overload></KeyWord> // <KeyWord name="ta.wvad" /> // <KeyWord name="table" func="yes" ><Overload retVal="void" > <Param name="x" /> </Overload></KeyWord> // <KeyWord name="table.all" /> // <KeyWord name="table.cell" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" text" /><Param name=" width" /><Param name=" height" /><Param name=" text_color" /><Param name=" text_halign" /><Param name=" text_valign" /><Param name=" text_size" /><Param name=" bgcolor" /> </Overload></KeyWord> // <KeyWord name="table.cell_set_bgcolor" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" bgcolor" /> </Overload></KeyWord> // <KeyWord name="table.cell_set_height" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" height" /> </Overload></KeyWord> // <KeyWord name="table.cell_set_text" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" text" /> </Overload></KeyWord> // <KeyWord name="table.cell_set_text_color" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" text_color" /> </Overload></KeyWord> // <KeyWord name="table.cell_set_text_halign" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" text_halign" /> </Overload></KeyWord> // <KeyWord name="table.cell_set_text_size" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" text_size" /> </Overload></KeyWord> // <KeyWord name="table.cell_set_text_valign" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" text_valign" /> </Overload></KeyWord> // <KeyWord name="table.cell_set_width" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" column" /><Param name=" row" /><Param name=" width" /> </Overload></KeyWord> // <KeyWord name="table.clear" func="yes" ><Overload retVal="series table" > <Param name="table_id" /><Param name=" start_column" /><Param name=" start_row" /><Param name=" end_column" /><Param name=" end_row" /> </Overload></KeyWord> // <KeyWord name="table.delete" func="yes" ><Overload retVal="void" > <Param name="table_id" /> </Overload></KeyWord> // <KeyWord name="table.new" func="yes" ><Overload retVal="void" > <Param name="position" /><Param name=" columns" /><Param name=" rows" /><Param name=" bgcolor" /><Param name=" frame_color" /><Param name=" frame_width" /><Param name=" border_color" /><Param name=" border_width" /> </Overload></KeyWord> // <KeyWord name="table.set_bgcolor" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" bgcolor" /> </Overload></KeyWord> // <KeyWord name="table.set_border_color" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" border_color" /> </Overload></KeyWord> // <KeyWord name="table.set_border_width" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" border_width" /> </Overload></KeyWord> // <KeyWord name="table.set_frame_color" func="yes" ><Overload retVal="void" > <Param name="table_id" /><Param name=" frame_color" /> </Overload></KeyWord> // <KeyWord name="table.set_frame_width" func="yes" ><Overload retVal="simple string" > <Param name="table_id" /><Param name=" frame_width" /> </Overload></KeyWord> // <KeyWord name="table.set_position" func="yes" ><Overload retVal="simple string" > <Param name="table_id" /><Param name=" position" /> </Overload></KeyWord> // <KeyWord name="table_id" /> // <KeyWord name="target" /> // <KeyWord name="text" /> // <KeyWord name="text.align_bottom" /> // <KeyWord name="text.align_center" /> // <KeyWord name="text.align_left" /> // <KeyWord name="text.align_right" /> // <KeyWord name="text.align_top" /> // <KeyWord name="text_color" /> // <KeyWord name="text_halign" /> // <KeyWord name="text_size" /> // <KeyWord name="text_valign" /> // <KeyWord name="textalign" /> // <KeyWord name="textcolor" /> // <KeyWord name="ticker" /> // <KeyWord name="ticker.heikinashi" func="yes" ><Overload retVal="simple string" > <Param name="symbol" /> </Overload></KeyWord> // <KeyWord name="ticker.kagi" func="yes" ><Overload retVal="simple string" > <Param name="symbol" /><Param name=" reversal" /> </Overload></KeyWord> // <KeyWord name="ticker.linebreak" func="yes" ><Overload retVal="simple string" > <Param name="symbol" /><Param name=" number_of_lines" /> </Overload></KeyWord> // <KeyWord name="ticker.modify" func="yes" ><Overload retVal="simple string" > <Param name="tickerid" /><Param name=" session" /><Param name=" adjustment" /> </Overload></KeyWord> // <KeyWord name="ticker.new" func="yes" ><Overload retVal="simple string" > <Param name="prefix" /><Param name=" ticker" /><Param name=" session" /><Param name=" adjustment" /> </Overload></KeyWord> // <KeyWord name="ticker.pointfigure" func="yes" ><Overload retVal="simple string" > <Param name="symbol" /><Param name=" source" /><Param name=" style" /><Param name=" param" /><Param name=" reversal" /> </Overload></KeyWord> // <KeyWord name="ticker.renko" func="yes" ><Overload retVal="simple string" > <Param name="symbol" /><Param name=" style" /><Param name=" param" /> </Overload></KeyWord> // <KeyWord name="tickerid" /> // <KeyWord name="time" func="yes" ><Overload retVal="series int" > <Param name="timeframe" /><Param name="*session" /><Param name="*timezone" /> </Overload></KeyWord> // <KeyWord name="time_close" func="yes" ><Overload retVal="series int" > <Param name="timeframe" /><Param name="*session" /><Param name="*timezone" /> </Overload></KeyWord> // <KeyWord name="time_tradingday" /> // <KeyWord name="timeframe" /> // <KeyWord name="timeframe.isdaily" /> // <KeyWord name="timeframe.isdwm" /> // <KeyWord name="timeframe.isintraday" /> // <KeyWord name="timeframe.isminutes" /> // <KeyWord name="timeframe.ismonthly" /> // <KeyWord name="timeframe.isseconds" /> // <KeyWord name="timeframe.isweekly" /> // <KeyWord name="timeframe.multiplier" /> // <KeyWord name="timeframe.period" /> // <KeyWord name="timeframe_gaps" /> // <KeyWord name="timenow" /> // <KeyWord name="timestamp" func="yes" ><Overload retVal="(const series simple) int" > <Param name="*(dateString timezone)" /><Param name=" year" /><Param name=" month" /><Param name=" day" /><Param name=" hour" /><Param name=" minute" /><Param name=" second" /> </Overload></KeyWord> // <KeyWord name="timezone" /> // <KeyWord name="title" /> // <KeyWord name="tooltip" /> // <KeyWord name="top" /> // <KeyWord name="top_color" /> // <KeyWord name="top_value" /> // <KeyWord name="trackprice" /> // <KeyWord name="trade_num" /> // <KeyWord name="trail_offset" /> // <KeyWord name="trail_points" /> // <KeyWord name="trail_price" /> // <KeyWord name="transp" /> // <KeyWord name="true" /> // <KeyWord name="type" /> // <KeyWord name="useTrueRange" /> // <KeyWord name="value" /> // <KeyWord name="var" /> // <KeyWord name="varip" /> // <KeyWord name="volume" /> // <KeyWord name="weekofyear" func="yes" ><Overload retVal="series int" > <Param name="time" /><Param name=" *timezone" /> </Overload></KeyWord> // <KeyWord name="when" /> // <KeyWord name="while" /> // <KeyWord name="wickcolor" /> // <KeyWord name="width" /> // <KeyWord name="x1" /> // <KeyWord name="x2" /> // <KeyWord name="x" /> // <KeyWord name="xloc" /> // <KeyWord name="xloc.bar_index" /> // <KeyWord name="xloc.bar_time" /> // <KeyWord name="y1" /> // <KeyWord name="y2" /> // <KeyWord name="y" /> // <KeyWord name="year" func="yes" ><Overload retVal="series int" > <Param name="time" /><Param name=" *timezone" /> </Overload></KeyWord> // <KeyWord name="yloc" /> // <KeyWord name="yloc.abovebar" /> // <KeyWord name="yloc.belowbar" /> // <KeyWord name="yloc.price" /> // </AutoComplete> // </NotepadPlus> // // // ↑↑↑ End of Code } // └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Hold Up A Second! (Demo)
https://www.tradingview.com/script/F53LbP6Q-Hold-Up-A-Second-Demo/
Electrified
https://www.tradingview.com/u/Electrified/
38
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Electrified //@version=5 indicator("Hold Up A Second!", "HoldUp", overlay = true) import Electrified/LabelHelper/7 as LH rejectionsMajor = array.new_string() rejectionsMinor = array.new_string() rejMAJOR(string message, bool condition) => if(condition) array.push(rejectionsMajor, message) condition rejMinor(string message, bool condition) => if(condition) array.push(rejectionsMinor, message) condition rsi = ta.rsi(hlc3, 7) rejMAJOR("Overbought!", rsi > 80) rejMinor("Last two bars declining", close[0] < close[1] and close[1] < close[2]) joinLines(string[] values) => size = array.size(values) if size == 0 na else result = "" for i = 0 to size - 1 result := result + array.get(values, i) + '\n' result rejMajorReasons = joinLines(rejectionsMajor) rejMinorReasons = joinLines(rejectionsMinor) rejReasons = (na(rejMajorReasons) ? "" : rejMajorReasons) + (na(rejMinorReasons) ? "" : rejMinorReasons) rejLabel = LH.add(close, na(rejMajorReasons) ? " ⚠ " : " ✖ ", na(rejMajorReasons) ? color.orange : color.red, offset = 1, tooltip = rejReasons) if rejReasons == "" label.delete(rejLabel[0])
SSR - Stablecoin Supply Ratio - Bitcoin - Cryptocurrency
https://www.tradingview.com/script/LWcpPb9T-SSR-Stablecoin-Supply-Ratio-Bitcoin-Cryptocurrency/
GutenbergNunes
https://www.tradingview.com/u/GutenbergNunes/
405
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © GutenbergNunes //@version=4 study("SSR - Stablecoin Supply Ratio by Gutenberg", overlay=false) x = security("CRYPTOCAP:BTC", "1D", close) y = security("CRYPTOCAP:USDT", "1D", close) z = security("CRYPTOCAP:USDC", "1D", close) s = security("CRYPTOCAP:DAI", "1D", close) calc = x/(y+z+s) //plot(calc) plot(calc)
Deflated - Val
https://www.tradingview.com/script/r8g2qFtt/
Makaveli227
https://www.tradingview.com/u/Makaveli227/
8
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Makaveli227 //@version=5 indicator("Deflated", overlay=true) i_date = input.time(timestamp("20 Jul 2021 00:00 +0300"), "Date", confirm = true) EU_inflation = request.security("QUANDL:ECB/RTD_M_S0_N_P_C_OV_X", "D", close) US_inflation = request.security("QUANDL:RATEINF/CPI_USA", "D", close) var Origin_BASE = 0.0 var Origin_EU = 0.0 var Origin_US = 0.0 if time > i_date // GET ORIGIN VALUE var oc = close Origin_BASE := oc if EU_inflation != 0 var c = EU_inflation//close Origin_EU := c if US_inflation != 0 var c = US_inflation//close Origin_US := c //////////////////////// EU Ratio_EU = Origin_EU / EU_inflation if Ratio_EU == 0 Ratio_EU := na Deflat_EU = close * Ratio_EU plot(Deflat_EU, "EURO", color.blue) //////////////////////// US Ratio_US = Origin_US / US_inflation if Ratio_US == 0 Ratio_US := na Deflat_US = close * Ratio_US p = plot(Deflat_US, "USA", color.red) l = label.new(i_date, Origin_BASE, "From", xloc=xloc.bar_time, color=color.rgb(255, 200, 200, 50), yloc = yloc.price) label.delete(l[1]) //line.new(i_date, Origin_BASE-100, i_date, Origin_BASE+100, xloc=xloc.bar_time)//, extend.both)
RM Timeframe Continuity
https://www.tradingview.com/script/Mal9PuGl-RM-Timeframe-Continuity/
millerrh
https://www.tradingview.com/u/millerrh/
439
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © millerrh //@version=5 // Revision 1 // This indicator identifies timeframe continuity (per Strat) in multiple higher timeframes and shows them in a widget off to the right of the chart. // It's meant to be used as an alternative filter for "trading with the trend." Typically people use moving averages of varying lengths for this // (i.e. if over 200 MA it's an uptrend, etc.) // For the purposes of this indicator, it looks at the following conditions on different timeframes: Green/Red Candles, Inside Bars, Outside Bars, and // Continuation Bars. For timeframe continuity, you want to trade in the direction where all timeframes are aligned. Inside bars can be good indicators // of potentail breakout opportunities. indicator('RM Timeframe Continuity', overlay=true) // == USER INPUTS == tableLocation = input.string(defval='Top', options=['Top', 'Bottom'], title='Info Table Location', group='Display', tooltip='Place information table on the top of the pane or the bottom of the pane.') oneSet = input.timeframe(defval='240', title='First Timeframe', group='Higher Timeframe Levels', tooltip='Allows you to set different time frames for timeframe continuity.') twoSet = input.timeframe(defval='D', title='Second Timeframe', group='Higher Timeframe Levels') threeSet = input.timeframe(defval='W', title='Third Timeframe', group='Higher Timeframe Levels') fourSet = input.timeframe(defval='M', title='Fourth Timeframe', group='Higher Timeframe Levels') showMTFLevels = input.bool(title='Show Multiple Timeframe S/R Levels?', defval=true, group='Higher Timeframe Levels', tooltip='Displays the highs and lows of higher timeframes to use as support/resistance levels. When these levels break, the continuity will change relative to these higher timeframes.') oneColorS = input.color(color.new(color.orange, 50), title='1st Timeframe    Support', group='Higher Timeframe Levels', inline='MTF1') oneColorR = input.color(color.new(color.orange, 50), title=' Resistance', group='Higher Timeframe Levels', inline='MTF1') twoColorS = input.color(color.new(color.blue, 50), title='2nd Timeframe   Support', group='Higher Timeframe Levels', inline='MTF2') twoColorR = input.color(color.new(color.blue, 50), title=' Resistance', group='Higher Timeframe Levels', inline='MTF2') threeColorS = input.color(color.new(color.purple, 50), title='3rd Timeframe    Support', group='Higher Timeframe Levels', inline='MTF3') threeColorR = input.color(color.new(color.purple, 50), title=' Resistance', group='Higher Timeframe Levels', inline='MTF3') fourColorS = input.color(color.new(color.white, 50), title='4th Timeframe    Support', group='Higher Timeframe Levels', inline='MTF4') fourColorR = input.color(color.new(color.white, 50), title=' Resistance', group='Higher Timeframe Levels', inline='MTF4') // == DEFINE FUNCTIONS FOR USE IN MULTIPLE TIMEFRAMES (USING A TUPLE TO AVOID SO MANY SECURITY CALLS) == f_Strat() => green = close >= open red = close < open one = (high <= high[1]) and (low >= low[1]) twoUp = (high > high[1]) and (low >= low[1]) twoDown = (high <= high[1]) and (low < low[1]) three = (high > high[1]) and (low < low[1]) openTime = time lowPrice = low highPrice = high [green, red, one, twoUp, twoDown, three, openTime, lowPrice, highPrice] [green_1, red_1, one_1, twoUp_1, twoDown_1, three_1, openTime_1, lowPrice_1, highPrice_1] = request.security(syminfo.tickerid, oneSet, f_Strat()) [green_2, red_2, one_2, twoUp_2, twoDown_2, three_2, openTime_2, lowPrice_2, highPrice_2] = request.security(syminfo.tickerid, twoSet, f_Strat()) [green_3, red_3, one_3, twoUp_3, twoDown_3, three_3, openTime_3, lowPrice_3, highPrice_3] = request.security(syminfo.tickerid, threeSet, f_Strat()) [green_4, red_4, one_4, twoUp_4, twoDown_4, three_4, openTime_4, lowPrice_4, highPrice_4] = request.security(syminfo.tickerid, fourSet, f_Strat()) // == PLOT SUPPORT/RESISTANCE LINES OF THE HIGHER TIMEFRAMES == // Use a function to define the lines f_line(x1, y1, y2, _color) => var line id = na line.delete(id) id := line.new(x1, y1, time, y2, xloc.bar_time, extend.right, _color) id // 1st Timeframe highLine1 = showMTFLevels ? f_line(openTime_1, highPrice_1, highPrice_1, oneColorR) : na lowLine1 = showMTFLevels ? f_line(openTime_1, lowPrice_1, lowPrice_1, oneColorS) : na // 2nd Timeframe highLine2 = showMTFLevels ? f_line(openTime_2, highPrice_2, highPrice_2, twoColorR) : na lowLine2 = showMTFLevels ? f_line(openTime_2, lowPrice_2, lowPrice_2, twoColorS) : na // 3rd Timeframe highLine3 = showMTFLevels ? f_line(openTime_3, highPrice_3, highPrice_3, threeColorR) : na lowLine3 = showMTFLevels ? f_line(openTime_3, lowPrice_3, lowPrice_3, threeColorS) : na // 4th Timeframe highLine4 = showMTFLevels ? f_line(openTime_4, highPrice_4, highPrice_4, fourColorR) : na lowLine4 = showMTFLevels ? f_line(openTime_4, lowPrice_4, lowPrice_4, fourColorS) : na // == TABLE PLOTTING == tablePos = tableLocation == 'Top' ? position.top_right : position.bottom_right var table trendTable = table.new(tablePos, 4, 1, border_width=3) upColor = color.rgb(38, 166, 154) downColor = color.rgb(240, 83, 80) tfColor = color.new(#999999, 0) // Check to ensure boxes are all higher timeframe than the chart to remove glyph and gray out box if that's the case tfInMinutes(simple string tf = "") => float chartTf = timeframe.multiplier * ( timeframe.isseconds ? 1. / 60 : timeframe.isminutes ? 1. : timeframe.isdaily ? 60. * 24 : timeframe.isweekly ? 60. * 24 * 7 : timeframe.ismonthly ? 60. * 24 * 30.4375 : na) float result = tf == "" ? chartTf : request.security(syminfo.tickerid, tf, chartTf) float chartTFInMinutes = tfInMinutes() bool TF1Check = tfInMinutes(oneSet) < chartTFInMinutes bool TF2Check = tfInMinutes(twoSet) < chartTFInMinutes bool TF3Check = tfInMinutes(threeSet) < chartTFInMinutes bool TF4Check = tfInMinutes(fourSet) < chartTFInMinutes // Define glyphs glyph1 = TF1Check ? na : one_1 ? '⬤ ': twoUp_1 ? '▲ ' : twoDown_1 ? '▼ ' : three_1 ? '▮ ': na glyph2 = TF2Check ? na : one_2 ? '⬤ ': twoUp_2 ? '▲ ' : twoDown_2 ? '▼ ' : three_2 ? '▮ ': na glyph3 = TF3Check ? na : one_3 ? '⬤ ': twoUp_3 ? '▲ ' : twoDown_3 ? '▼ ' : three_3 ? '▮ ': na glyph4 = TF4Check ? na : one_4 ? '⬤ ': twoUp_4 ? '▲ ' : twoDown_4 ? '▼ ' : three_4 ? '▮ ': na f_fillCell(_column, _row, _cellText, _c_color) => table.cell(trendTable, _column, _row, _cellText, bgcolor=color.new(_c_color, 70), text_color=_c_color, width=5) if barstate.islast f_fillCell(0, 0, glyph1 + oneSet, TF1Check ? tfColor : green_1 ? upColor : downColor) f_fillCell(1, 0, glyph2 + twoSet, TF2Check ? tfColor : green_2 ? upColor : downColor) f_fillCell(2, 0, glyph3 + threeSet, TF3Check ? tfColor : green_3 ? upColor : downColor) f_fillCell(3, 0, glyph4 + fourSet, TF4Check ? tfColor : green_4 ? upColor : downColor)
ViVen-Multi Time Frame Bollinger Band Strategy
https://www.tradingview.com/script/eH18UFNw-ViVen-Multi-Time-Frame-Bollinger-Band-Strategy/
vijiviven
https://www.tradingview.com/u/vijiviven/
178
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © moneyworld_99 //@version=5 indicator('ViVen-BB MTF', overlay=true, max_bars_back=500) Vi = input.bool(true, title='On/Off All Indicators', group='⚡ DISPLAY INDICATORS ⚡ ') BBInd = input.bool(true, title=' Display Bollinger Band', group='⚡ DISPLAY BOLLINGER BAND ⚡ ') BBIndbl = input.bool(false, title=' BB Middle Line', group='⚡ DISPLAY BOLLINGER BAND ⚡ ') BBInd5m = input.bool(true, title=' 5 Min BAND', group='⚡ DISPLAY BOLLINGER BAND ⚡ ') BBInd15m = input.bool(true, title=' 15 Min BAND', group='⚡ DISPLAY BOLLINGER BAND ⚡ ') BBInd30m = input.bool(false, title=' 30 Min BAND', group='⚡ DISPLAY BOLLINGER BAND ⚡ ') BBInd1hr = input.bool(true, title=' 1 Hr BAND', group='⚡ DISPLAY BOLLINGER BAND ⚡ ') BBInd1d = input.bool(false, title=' 1 Day BAND', group='⚡ DISPLAY BOLLINGER BAND ⚡ ') bbmtf = input.timeframe(title='Bollinger Band MTF', defval='5', options=['5', '15', '30', '60', 'D'], group='INDICATOR INPUT 🔨') bbmtf1 = input.timeframe(title='Bollinger Band MTF', defval='15', options=['5', '15', '30', '60', 'D'], group='INDICATOR INPUT 🔨') bbmtf2 = input.timeframe(title='Bollinger Band MTF', defval='30', options=['5', '15', '30', '60', 'D'], group='INDICATOR INPUT 🔨') bbmtf3 = input.timeframe(title='Bollinger Band MTF', defval='60', options=['5', '15', '30', '60', 'D'], group='INDICATOR INPUT 🔨') bbmtf4 = input.timeframe(title='Bollinger Band MTF', defval='D', options=['5', '15', '30', '60', 'D'], group='INDICATOR INPUT 🔨') emaPeriod = input.int(title='Bollinger Band Period', minval=1, maxval=50, defval=20, group='INDICATOR INPUT 🔨') //CHART TITLE alert_strings = array.new_string(3) array.set(alert_strings, 0, '') table_row_count = array.new_int(2) array.set(table_row_count, 0, 1) var UpTabl = table.new(position=position.top_center, columns=3, rows=10, bgcolor=color.rgb(255, 235, 59), border_width=1, frame_color=color.black, frame_width=1) table.cell(table_id=UpTabl, column=2, row=0, text='▲ ViVen - Traders ▲') //Boll Bands devMultiple = 2 baseline = ta.sma(close, emaPeriod) stdDeviation = devMultiple * ta.stdev(close, emaPeriod) upperBand = baseline + stdDeviation lowerBand = baseline - stdDeviation // Plot the 15m BB plotubb5m = request.security(syminfo.tickerid, bbmtf, upperBand) plotlbb5m = request.security(syminfo.tickerid, bbmtf, lowerBand) plotubb15m = request.security(syminfo.tickerid, bbmtf1, upperBand) plotlbb15m = request.security(syminfo.tickerid, bbmtf1, lowerBand) plotubb30m = request.security(syminfo.tickerid, bbmtf2, upperBand) plotlbb30m = request.security(syminfo.tickerid, bbmtf2, lowerBand) plotubb1h = request.security(syminfo.tickerid, bbmtf3, upperBand) plotlbb1h = request.security(syminfo.tickerid, bbmtf3, lowerBand) plotubb1d = request.security(syminfo.tickerid, bbmtf4, upperBand) plotlbb1d = request.security(syminfo.tickerid, bbmtf4, lowerBand) plot(Vi and BBInd and BBIndbl and baseline ? baseline : na, title = "BB Middle Line", color = color.orange, linewidth=2) p1 = plot(Vi and BBInd and BBInd5m and plotubb5m ? plotubb5m : na, title='5M BB Top', color=color.blue) p2 = plot(Vi and BBInd and BBInd5m and plotlbb5m ? plotlbb5m : na, title='5M BB Bottom', color=color.blue) //fill(p1, p2, color = #DCE5E8) plot(Vi and BBInd and BBInd15m and plotubb15m ? plotubb15m : na, title='15M BB Top', color=color.fuchsia) plot(Vi and BBInd and BBInd15m and plotlbb15m ? plotlbb15m : na, title='15M BB Bottom', color=color.fuchsia) plot(Vi and BBInd and BBInd30m and plotubb30m ? plotubb30m : na, title='30M BB Top', color=color.maroon) plot(Vi and BBInd and BBInd30m and plotlbb30m ? plotlbb30m : na, title='30M BB Bottom', color=color.maroon) plot(Vi and BBInd and BBInd1hr and plotubb1h ? plotubb1h : na, title='1Hr BB Top', color=color.white) plot(Vi and BBInd and BBInd1hr and plotlbb1h ? plotlbb1h : na, title='1Hr BB Bottom', color=color.white) plot(Vi and BBInd and BBInd1d and plotubb1d ? plotubb1d : na, title='1D BB Top', color=color.red) plot(Vi and BBInd and BBInd1d and plotlbb1d ? plotlbb1d : na, title='1D BB Bottom', color=color.red)
Jigga - Relative Strength - Sectors
https://www.tradingview.com/script/Rsy7a5ND-Jigga-Relative-Strength-Sectors/
jigneshjc
https://www.tradingview.com/u/jigneshjc/
40
study
5
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © jigneshjc //@version=5 indicator("Jigga - Relative Strength - Sectors",shorttitle="Jigga-RS-Sectors",overlay=false) indexSymbol = input.symbol("NIFTY", title="Index Symbol", inline='IndexSymbol') indexLength = input.int(10, minval=1, title="Length", inline='IndexSymbol') //lableTops = input(false, title='------------------------ TOPS ------------------------') //lengthShowTop = input.int(10,minval=0,title="Top (n)" ,inline='TOP') //lengthShowBottom = input.int(10,minval=0,title="Bottom (n)" ,inline='TOP') lableSectors = input(false, title='------------------------ SECTORS ------------------------') showSectorIT = input.bool(true,title="IT", inline="Level1") showSectorAUTO = input.bool(true,title="AUTO", inline="Level1") showSectorMETAL = input.bool(true,title="METAL", inline="Level1") showSectorPHARMA = input.bool(true,title="PHARMA", inline="Level2") showSectorFMCG = input.bool(true,title="FMCG", inline="Level2") showSectorCOMMODITIES = input.bool(true,title="COMMODITIES", inline="Level2") showSectorINFRA = input.bool(false,title="INFRA", inline="Level3") showSectorREALTY = input.bool(true,title="REALTY", inline="Level3") showSectorMEDIA = input.bool(true,title="MEDIA", inline="Level3") showSectorENERGY = input.bool(true,title="ENERGY", inline="Level4") showSectorCONSUMPTION = input.bool(false,title="CONSUMPTION", inline="Level4") showSectorSERVICE = input.bool(true,title="SERVICE", inline="Level4") showSectorBANK = input.bool(false,title="BANK", inline="Level5") showSectorFINANCE = input.bool(true,title="FINANCE", inline="Level5") showSectorPSUBANK = input.bool(true,title="PSUBANK", inline="Level5") line1 = hline(-2,title="Line1" ,color=color.black, linestyle=hline.style_dotted, linewidth=1) line2 = hline(2,title="Line2" ,color=color.black, linestyle=hline.style_dotted, linewidth=1) fill(line1, line2, color=color.gray, transp=90, title="Background") getRelativeStrength(baseSymbolName, compareSymbolName, length) => baseSymbol = request.security(baseSymbolName, timeframe.period, close) comparativeSymbol = request.security(compareSymbolName, timeframe.period, close) res = (baseSymbol / baseSymbol[length]) / (comparativeSymbol / comparativeSymbol[length]) - 1 res * 100 f_draw_label(x, y, _text, _textcolor, _size) => var label Label = na label.delete(Label) Label := label.new(x, y, _text, color=color.new(color.white, 20), textcolor=_textcolor, style=label.style_none, yloc=yloc.price, xloc=xloc.bar_time, size=_size) Label //resBaseSymbol = getRelativeStrength(syminfo.tickerid,indexSymbol,indexLength) resSectorIT = showSectorIT ? getRelativeStrength("CNXIT",indexSymbol,indexLength) : na resSectorAUTO = showSectorAUTO ? getRelativeStrength("CNXAUTO",indexSymbol,indexLength) : na resSectorMETAL = showSectorMETAL ? getRelativeStrength("CNXMETAL",indexSymbol,indexLength) : na resSectorPHARMA = showSectorPHARMA ? getRelativeStrength("CNXPHARMA",indexSymbol,indexLength) : na resSectorFMCG = showSectorFMCG ? getRelativeStrength("CNXFMCG",indexSymbol,indexLength) : na resSectorCOMMODITIES = showSectorCOMMODITIES ? getRelativeStrength("CNXCOMMODITIES",indexSymbol,indexLength) : na resSectorINFRA = showSectorINFRA ? getRelativeStrength("CNXINFRA",indexSymbol,indexLength) : na resSectorREALTY = showSectorREALTY ? getRelativeStrength("CNXREALTY",indexSymbol,indexLength) : na resSectorMEDIA = showSectorMEDIA ? getRelativeStrength("CNXMEDIA",indexSymbol,indexLength) : na resSectorENERGY = showSectorENERGY ? getRelativeStrength("CNXENERGY",indexSymbol,indexLength) : na resSectorCONSUMPTION = showSectorCONSUMPTION ? getRelativeStrength("CNXCONSUMPTION",indexSymbol,indexLength) : na resSectorSERVICE = showSectorSERVICE ? getRelativeStrength("CNXSERVICE",indexSymbol,indexLength) : na resSectorBANK = showSectorBANK ? getRelativeStrength("BANKNIFTY",indexSymbol,indexLength) : na resSectorFINANCE = showSectorFINANCE ? getRelativeStrength("CNXFINANCE",indexSymbol,indexLength) : na resSectorPSUBANK = showSectorPSUBANK ? getRelativeStrength("CNXPSUBANK",indexSymbol,indexLength) : na if (showSectorIT) f_draw_label(timenow, resSectorIT[0], "IT", color.black, size.small) if (showSectorAUTO) f_draw_label(timenow, resSectorAUTO[0], "AUTO", color.black, size.small) if (showSectorMETAL) f_draw_label(timenow, resSectorMETAL[0], "METAL", color.black, size.small) if (showSectorPHARMA) f_draw_label(timenow, resSectorPHARMA[0], "PHARMA", color.black, size.small) if (showSectorFMCG) f_draw_label(timenow, resSectorFMCG[0], "FMCG", color.black, size.small) if (showSectorCOMMODITIES) f_draw_label(timenow, resSectorCOMMODITIES[0], "COMMO", color.black, size.small) if (showSectorINFRA) f_draw_label(timenow, resSectorINFRA[0], "ITNFRA", color.black, size.small) if (showSectorREALTY) f_draw_label(timenow, resSectorREALTY[0], "REALTY", color.black, size.small) if (showSectorMEDIA) f_draw_label(timenow, resSectorMEDIA[0], "MEDIA", color.black, size.small) if (showSectorENERGY) f_draw_label(timenow, resSectorENERGY[0], "ENERGY", color.black, size.small) if (showSectorCONSUMPTION) f_draw_label(timenow, resSectorCONSUMPTION[0], "CONSUM", color.black, size.small) if (showSectorSERVICE) f_draw_label(timenow, resSectorSERVICE[0], "SERVICE", color.black, size.small) if (showSectorBANK) f_draw_label(timenow, resSectorBANK[0], "BANK", color.black, size.small) if (showSectorFINANCE) f_draw_label(timenow, resSectorFINANCE[0], "FINCE", color.black, size.small) if (showSectorPSUBANK) f_draw_label(timenow, resSectorPSUBANK[0], "PSU", color.black, size.small) plot(showSectorIT ? resSectorIT : na, title="IT", color=color.blue) plot(showSectorAUTO? resSectorAUTO : na, title="AUTO", color=color.yellow) plot(showSectorMETAL? resSectorMETAL : na, title="METAL", color=color.purple) plot(showSectorPHARMA? resSectorPHARMA : na, title="PHARMA", color=color.red) plot(showSectorFMCG? resSectorFMCG : na, title="FMCG", color=color.orange) plot(showSectorCOMMODITIES? resSectorCOMMODITIES : na, title="COMMODITIES", color=color.black) plot(showSectorINFRA ? resSectorINFRA : na, title="INFRA", color=color.maroon) plot(showSectorREALTY ? resSectorREALTY : na, title="REALTY", color=color.purple) plot(showSectorMEDIA ? resSectorMEDIA : na, title="MEDIA", color=color.green) plot(showSectorENERGY ? resSectorENERGY : na, title="ENERGY", color=color.fuchsia) plot(showSectorCONSUMPTION ? resSectorCONSUMPTION : na, title="CONSUM", color=color.lime) plot(showSectorSERVICE ? resSectorSERVICE : na, title="SERVICE", color=color.navy) plot(showSectorBANK ? resSectorBANK : na, title="BANK", color=color.teal) plot(showSectorFINANCE ? resSectorFINANCE : na, title="FINANCE", color=color.aqua) plot(showSectorPSUBANK ? resSectorPSUBANK : na, title="PSU", color=color.orange)
Crypto Relative Performance and Profitability
https://www.tradingview.com/script/YUchBdIK-Crypto-Relative-Performance-and-Profitability/
mcamps-nl
https://www.tradingview.com/u/mcamps-nl/
34
study
4
MPL-2.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © mcamps-nl //@version=4 study("Crypto Relative Performance and Profitability") var symTotalCryptoCap = "CRYPTOCAP:TOTAL" var dailyTimeFramePeriod = "D" totalOpen = security(symTotalCryptoCap, dailyTimeFramePeriod, open) totalClose = security(symTotalCryptoCap, timeframe.period, close) totalChangeFraction = (totalClose - totalOpen) / totalOpen currentOpen = security(syminfo.tickerid, dailyTimeFramePeriod, open) currentClose = close currentChangeFraction = (currentClose - currentOpen) / currentOpen diff = currentChangeFraction - totalChangeFraction performance = (diff[0] * diff[1]) > 0 or (diff[1] * diff[2]) > 0 ? diff * 100 : 0 plotColor = currentChangeFraction >= 0 ? color.green : color.red plot0 = plot(0, color=plotColor) plotPerformance = plot(performance, color=plotColor) fill(plot0, plotPerformance, color= color.new(plotColor, 70))