Skip to content

Commit

Permalink
Merge branch 'master' into auto_update_symbolinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiborisenko authored Dec 14, 2023
2 parents 1440fe9 + 64a4daa commit 98dbf49
Show file tree
Hide file tree
Showing 104 changed files with 6,532 additions and 764 deletions.
32 changes: 1 addition & 31 deletions cfd/filters/cfd.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,36 +137,6 @@
],
"s": "CBOE:VIX"
},
{
"f": [
"index",
null,
null,
null,
null
],
"s": "CRYPTOCAP:DEFIETH"
},
{
"f": [
"index",
null,
null,
null,
null
],
"s": "CRYPTOCAP:TOTAL"
},
{
"f": [
"index",
null,
null,
null,
null
],
"s": "CRYPTOCAP:TOTALDEFI"
},
{
"f": [
"index",
Expand Down Expand Up @@ -12458,4 +12428,4 @@
"s": "SKILLING:XAUUSD"
}
]
}
}
4 changes: 0 additions & 4 deletions cfd/filters/generator/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,6 @@ const groups = [
include: ["OMXCOP:OMXC25"],
region: "Europe"
},
{
url2: "prefix=CRYPTOCAP&type=index",
include: ["CRYPTOCAP:TOTAL", "CRYPTOCAP:TOTALDEFI", "CRYPTOCAP:DEFIETH"],
},
{
url2: "prefix=BET&type=index",
include: ["BET:BUX"],
Expand Down
6 changes: 1 addition & 5 deletions cfd/groups/indices.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@
"s": "?perm=*&domain=tv&prefix=CBOE&typespecs=main",
"f": []
},
{
"s": "?perm=*&domain=tv&prefix=CRYPTOCAP&type=index",
"f": []
},
{
"s": "?perm=*&domain=tv&prefix=DFM&type=index",
"f": []
Expand Down Expand Up @@ -290,4 +286,4 @@
"f": []
}
]
}
}
6 changes: 3 additions & 3 deletions index/attributes/america.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,21 @@
]
},
{
"s": "RUSSELL:RUA",
"s": "TVC:RUA",
"f": [
null,
8
]
},
{
"s": "RUSSELL:RUI",
"s": "TVC:RUI",
"f": [
null,
10
]
},
{
"s": "RUSSELL:RUT",
"s": "TVC:RUT",
"f": [
null,
9
Expand Down
6 changes: 3 additions & 3 deletions index/attributes/generator/america_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ const symbolsPriorities = {};
"DJCFD:DJI",
"NASDAQ:IXIC",
"NASDAQ:NDX",
"RUSSELL:RUA",
"RUSSELL:RUT",
"RUSSELL:RUI",
"TVC:RUA",
"TVC:RUT",
"TVC:RUI",
"NYSE:NYA",
"NYSE:XMI",
"NYSE:XAX",
Expand Down
9 changes: 3 additions & 6 deletions index/filters/america.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@
"s": "NYSE:XMI"
},
{
"s": "RUSSELL:RUA"
"s": "TVC:RUA"
},
{
"s": "RUSSELL:RUI"
"s": "TVC:RUI"
},
{
"s": "RUSSELL:RUT"
"s": "TVC:RUT"
},
{
"s": "SP:MID"
Expand Down Expand Up @@ -195,9 +195,6 @@
{
"s": "SP:VXXIDSP"
},
{
"s": "TVC:RUT"
},
{
"s": "TVC:NYA"
},
Expand Down
1 change: 0 additions & 1 deletion index/groups/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
{ "f": [], "s": "NASDAQ&type=index"},
{ "f": [], "s": "NYSE&type=index"},
{ "f": [], "s": "SP&type=index&alias=1"},
{ "f": [], "s": "RUSSELL"},
{ "f": [], "s": "TVC&type=index&alias=1"}
]
}
18 changes: 18 additions & 0 deletions links/bond_close_days_back.pine.link
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Bond Yield 1 | 30 | 365 days
dayYield = 1
monthYield = 30
yearYield = 365
dayAgoYield = timenow - 1000 * 60 * 60 * 24 * dayYield
monthAgoYield = timenow - 1000 * 60 * 60 * 24 * monthYield
yearAgoYield = timenow - 1000 * 60 * 60 * 24 * yearYield
countOfBars1DayAgoBond = fastSearchN(time, dayAgoYield, dayYield)
countOfBars1MonthAgoBond = fastSearchN(time, monthAgoYield, monthYield)
countOfBars1YearAgoBond = fastSearchN(time, yearAgoYield, yearYield)

series = close
if bar_index == 0
series += series[yearYield] * 0 // max_bars_back

plot(series[countOfBars1DayAgoBond], title="close_1_days_back")
plot(series[countOfBars1MonthAgoBond], title="close_30_days_back")
plot(series[countOfBars1YearAgoBond], title="close_365_days_back")
4 changes: 1 addition & 3 deletions links/common.pine.link
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ plot(PSAR, title='P.SAR')

// study("My Money Flow")
lenMF = 14
posMF = math.sum(hlc3 > hlc3[1] ? hlc3 * volume : 0, lenMF)
negMF = math.sum(hlc3 < hlc3[1] ? hlc3 * volume : 0, lenMF)
plot(100.0 - 100.0 / (1.0 + posMF / negMF), title='MoneyFlow')
plot(ta.mfi(hlc3, lenMF), title='MoneyFlow')

// study("My Chaikin Money Flow")
lenCMF = 20
Expand Down
21 changes: 21 additions & 0 deletions presets/america.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,9 @@ presets:
- left: revenue_per_employee
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 500
sort:
sortBy: revenue_per_employee
sortOrder: desc
Expand All @@ -1081,6 +1084,24 @@ presets:
- left: net_income_per_employee_fy
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 500
sort:
sortBy: net_income_per_employee_fy
sortOrder: desc
- name: country_top_etfs_most_traded
filter:
- left: typespecs
operation: has
right:
- etn
- etf
- left: is_primary
operation: equal
right: true
price_conversion:
to_symbol: true
sort:
sortBy: Value.Traded|1W
sortOrder: desc
10 changes: 10 additions & 0 deletions presets/argentina.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,9 @@ presets:
- left: revenue_per_employee
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 100
sort:
sortBy: revenue_per_employee
sortOrder: desc
Expand All @@ -635,6 +638,13 @@ presets:
- left: net_income_per_employee_fy
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 100
sort:
sortBy: net_income_per_employee_fy
sortOrder: desc
- name: country_top_etfs_most_traded
symbols:
tickers:
- ""
21 changes: 21 additions & 0 deletions presets/australia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,9 @@ presets:
- left: revenue_per_employee
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 500
sort:
sortBy: revenue_per_employee
sortOrder: desc
Expand All @@ -635,6 +638,24 @@ presets:
- left: net_income_per_employee_fy
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 500
sort:
sortBy: net_income_per_employee_fy
sortOrder: desc
- name: country_top_etfs_most_traded
filter:
- left: typespecs
operation: has
right:
- etn
- etf
- left: is_primary
operation: equal
right: true
price_conversion:
to_symbol: true
sort:
sortBy: Value.Traded|1W
sortOrder: desc
32 changes: 32 additions & 0 deletions presets/austria.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,17 @@ presets:
sort:
sortBy: description
sortOrder: asc
- name: earning
filter:
- left: typespecs
operation: has
right: common
- left: is_primary
operation: equal
right: true
sort:
sortBy: market_cap_basic
sortOrder: desc
- name: country_top_indices_at
symbols:
tickers:
Expand Down Expand Up @@ -592,6 +603,9 @@ presets:
- left: revenue_per_employee
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 500
sort:
sortBy: revenue_per_employee
sortOrder: desc
Expand All @@ -609,6 +623,24 @@ presets:
- left: net_income_per_employee_fy
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 500
sort:
sortBy: net_income_per_employee_fy
sortOrder: desc
- name: country_top_etfs_most_traded
filter:
- left: typespecs
operation: has
right:
- etn
- etf
- left: is_primary
operation: equal
right: true
price_conversion:
to_symbol: true
sort:
sortBy: Value.Traded|1W
sortOrder: desc
10 changes: 10 additions & 0 deletions presets/bahrain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,9 @@ presets:
- left: revenue_per_employee
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 100
sort:
sortBy: revenue_per_employee
sortOrder: desc
Expand All @@ -635,6 +638,13 @@ presets:
- left: net_income_per_employee_fy
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 100
sort:
sortBy: net_income_per_employee_fy
sortOrder: desc
- name: country_top_etfs_most_traded
symbols:
tickers:
- ""
21 changes: 21 additions & 0 deletions presets/bangladesh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,17 @@ presets:
sort:
sortBy: description
sortOrder: asc
- name: earning
filter:
- left: typespecs
operation: has
right: common
- left: is_primary
operation: equal
right: true
sort:
sortBy: market_cap_basic
sortOrder: desc
- name: country_top_indices_bd
symbols:
tickers:
Expand All @@ -584,6 +595,9 @@ presets:
- left: revenue_per_employee
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 500
sort:
sortBy: revenue_per_employee
sortOrder: desc
Expand All @@ -601,6 +615,13 @@ presets:
- left: net_income_per_employee_fy
operation: greater
right: 0
- left: number_of_employees_fy
operation: greater
right: 500
sort:
sortBy: net_income_per_employee_fy
sortOrder: desc
- name: country_top_etfs_most_traded
symbols:
tickers:
- ""
Loading

0 comments on commit 98dbf49

Please sign in to comment.