123
123
////////////
// INPUTS //
// Symbols
s01 = input('AAPL', type=input.symbol)
s02 = input('MSFT', type=input.symbol)
s03 = input('AMZN', type=input.symbol)
s04 = input('GOOGL', type=input.symbol)
s05 = input('BABA', type=input.symbol)
s06 = input('FB', type=input.symbol)
s07 = input('BRK.A', type=input.symbol)
s08 = input('V', type=input.symbol)
s09 = input('JNJ', type=input.symbol)
s10 = input('WMT', type=input.symbol)
s11 = input('TSM', type=input.symbol)
s12 = input('PG', type=input.symbol)
s13 = input('MA', type=input.symbol)
s14 = input('JPM', type=input.symbol)
s15 = input('TSLA', type=input.symbol)
s16 = input('UNH', type=input.symbol)
s17 = input('HD', type=input.symbol)
s18 = input('NVDA', type=input.symbol)
s19 = input('INTC', type=input.symbol)
s20 = input('NFLX', type=input.symbol)
s21 = input('VZ', type=input.symbol)
s22 = input('ADBE', type=input.symbol)
s23 = input('DIS', type=input.symbol)
s24 = input('T', type=input.symbol)
s25 = input('PYPL', type=input.symbol)
s26 = input('BAC', type=input.symbol)
s27 = input('NVS', type=input.symbol)
s28 = input('CSCO', type=input.symbol)
s29 = input('KO', type=input.symbol)
s30 = input('MRK', type=input.symbol)
s31 = input('PFE', type=input.symbol)
s32 = input('PEP', type=input.symbol)
s33 = input('CMCSA', type=input.symbol)
s34 = input('SAP', type=input.symbol)
s35 = input('XOM', type=input.symbol)
s36 = input('CRM', type=input.symbol)
s37 = input('ORCL', type=input.symbol)
s38 = input('TM', type=input.symbol)
s39 = input('ABBV', type=input.symbol)
s40 = input('ASML', type=input.symbol)
///////////////
// FUNCTIONS //
// Screener Function
screenerFunc() =>
rsi = rsi(close, rsi_length) // Value
cond = rsi > rsi_overbought // Condition
[rsi, cond]
// Rounding Function
roundn(x, n) =>
mult = 1
if n != 0
for i = 1 to abs(n)
mult := mult * 10
///////////////////////////////////////
// Running Functions for all sybmols //
////////////////////
// Screener label //
// Plot Label
lab_l = label.new(
bar_index, 0, scr_label,
color=color.gray,
textcolor=color.black,
style = label.style_labeldown,
yloc = yloc.price)
label.delete(lab_l[1])
////////////////////
// Dummy strategy //
if (time >= timestamp(year(timenow), month(timenow), dayofmonth(timenow), 00, 00))
strategy.entry("dummy_long", true, when = strategy.position_size[1] == 0 and
barstate.isconfirmed, alert_message = scr_label)
strategy.close("dummy_long", when = strategy.position_size[1] != 0 and
barstate.isconfirmed, alert_message = scr_label)