PINE LIBRARY
已更新 TrinityCore30

Library "TrinityCore30"
TRINITY CORE LIBRARY v30.1 (Diamond Final / Safety Sync Fixed)
Architecture: Fixed 7 Calls / Raw Kernels / State Machine / Array Math
Constitution:
1. Max 7 security calls.
2. Bible Compliance: CD (Corr), DDG (Ratio), Dynamic Lengths.
3. Ironclad Math: Volatility %, NaN-Guarded.
4. Semantics: Safety Valve correctly syncs is_ready/risk_gate flags.
calc_weights(sym, cp, cs, s1, s2, s3, s4, s5, cfg)
Parameters:
sym (string)
cp (string)
cs (string)
s1 (string)
s2 (string)
s3 (string)
s4 (string)
s5 (string)
cfg (TrinityConfig)
calc_diagnostics(sym, cp, cs, s1, s2, s3, s4, s5, cfg)
Parameters:
sym (string)
cp (string)
cs (string)
s1 (string)
s2 (string)
s3 (string)
s4 (string)
s5 (string)
cfg (TrinityConfig)
calc_weights_flat(sym, cp, cs, s1, s2, s3, s4, s5, en, l20, w20, l63, w63, l126, w126, l252, w252, rf, fac, tvs, tvsf, gmm, kl, kd, ks, tk, bl, wcp, wcd, wvs, wdd, sp, sv, ft, rf2, ra, r_cp, r_dd, pen_v, rb)
Parameters:
sym (string)
cp (string)
cs (string)
s1 (string)
s2 (string)
s3 (string)
s4 (string)
s5 (string)
en (bool)
l20 (int)
w20 (float)
l63 (int)
w63 (float)
l126 (int)
w126 (float)
l252 (int)
w252 (float)
rf (float)
fac (float)
tvs (float)
tvsf (float)
gmm (float)
kl (int)
kd (float)
ks (float)
tk (int)
bl (float)
wcp (float)
wcd (float)
wvs (float)
wdd (float)
sp (float)
sv (float)
ft (float)
rf2 (float)
ra (float)
r_cp (float)
r_dd (float)
pen_v (float)
rb (int)
core_build()
TrinityWeights
Fields:
stock (series float)
safe1 (series float)
safe2 (series float)
safe3 (series float)
safe4 (series float)
safe5 (series float)
cash (series float)
TrinityDiagLite
Fields:
is_ready (series bool)
ready_code (series int)
core_build (series int)
risk_gate (series bool)
wroc_stock (series float)
valid_safe_count (series int)
passed_safe_count (series int)
sum_ok (series bool)
TrinityDiagFull
Fields:
raw_stock (series float)
mvol_stock (series float)
mdecel_stock (series float)
gov_stock (series float)
safe_budget (series float)
top1_id (series int)
top2_id (series int)
sum_weights (series float)
SafeDiag
Fields:
enabled (series bool)
valid (series bool)
sqs (series float)
final_w (series float)
drop_code (series int)
TrinityConfig
Fields:
enabled (series bool)
len_20 (series int)
w_20 (series float)
len_63 (series int)
w_63 (series float)
len_126 (series int)
w_126 (series float)
len_252 (series int)
w_252 (series float)
risk_floor (series float)
risk_factor (series float)
target_vol_stock (series float)
target_vol_safe (series float)
gov_min_mult (series float)
k_len (series int)
k_decay (series float)
k_scale (series float)
top_k (series int)
baseline (series float)
w_cp (series float)
w_cd (series float)
w_vs (series float)
w_ddg (series float)
shock_price (series float)
shock_vol (series float)
fall_thr (series float)
rate_fall (series float)
rate_accel (series float)
penalty_val (series float)
range_cp (series float)
range_dd (series float)
ready_bars (series int)
TRINITY CORE LIBRARY v30.1 (Diamond Final / Safety Sync Fixed)
Architecture: Fixed 7 Calls / Raw Kernels / State Machine / Array Math
Constitution:
1. Max 7 security calls.
2. Bible Compliance: CD (Corr), DDG (Ratio), Dynamic Lengths.
3. Ironclad Math: Volatility %, NaN-Guarded.
4. Semantics: Safety Valve correctly syncs is_ready/risk_gate flags.
calc_weights(sym, cp, cs, s1, s2, s3, s4, s5, cfg)
Parameters:
sym (string)
cp (string)
cs (string)
s1 (string)
s2 (string)
s3 (string)
s4 (string)
s5 (string)
cfg (TrinityConfig)
calc_diagnostics(sym, cp, cs, s1, s2, s3, s4, s5, cfg)
Parameters:
sym (string)
cp (string)
cs (string)
s1 (string)
s2 (string)
s3 (string)
s4 (string)
s5 (string)
cfg (TrinityConfig)
calc_weights_flat(sym, cp, cs, s1, s2, s3, s4, s5, en, l20, w20, l63, w63, l126, w126, l252, w252, rf, fac, tvs, tvsf, gmm, kl, kd, ks, tk, bl, wcp, wcd, wvs, wdd, sp, sv, ft, rf2, ra, r_cp, r_dd, pen_v, rb)
Parameters:
sym (string)
cp (string)
cs (string)
s1 (string)
s2 (string)
s3 (string)
s4 (string)
s5 (string)
en (bool)
l20 (int)
w20 (float)
l63 (int)
w63 (float)
l126 (int)
w126 (float)
l252 (int)
w252 (float)
rf (float)
fac (float)
tvs (float)
tvsf (float)
gmm (float)
kl (int)
kd (float)
ks (float)
tk (int)
bl (float)
wcp (float)
wcd (float)
wvs (float)
wdd (float)
sp (float)
sv (float)
ft (float)
rf2 (float)
ra (float)
r_cp (float)
r_dd (float)
pen_v (float)
rb (int)
core_build()
TrinityWeights
Fields:
stock (series float)
safe1 (series float)
safe2 (series float)
safe3 (series float)
safe4 (series float)
safe5 (series float)
cash (series float)
TrinityDiagLite
Fields:
is_ready (series bool)
ready_code (series int)
core_build (series int)
risk_gate (series bool)
wroc_stock (series float)
valid_safe_count (series int)
passed_safe_count (series int)
sum_ok (series bool)
TrinityDiagFull
Fields:
raw_stock (series float)
mvol_stock (series float)
mdecel_stock (series float)
gov_stock (series float)
safe_budget (series float)
top1_id (series int)
top2_id (series int)
sum_weights (series float)
SafeDiag
Fields:
enabled (series bool)
valid (series bool)
sqs (series float)
final_w (series float)
drop_code (series int)
TrinityConfig
Fields:
enabled (series bool)
len_20 (series int)
w_20 (series float)
len_63 (series int)
w_63 (series float)
len_126 (series int)
w_126 (series float)
len_252 (series int)
w_252 (series float)
risk_floor (series float)
risk_factor (series float)
target_vol_stock (series float)
target_vol_safe (series float)
gov_min_mult (series float)
k_len (series int)
k_decay (series float)
k_scale (series float)
top_k (series int)
baseline (series float)
w_cp (series float)
w_cd (series float)
w_vs (series float)
w_ddg (series float)
shock_price (series float)
shock_vol (series float)
fall_thr (series float)
rate_fall (series float)
rate_accel (series float)
penalty_val (series float)
range_cp (series float)
range_dd (series float)
ready_bars (series int)
發行說明
v2發行說明
v3Добавлено:
calc_monitor_flat(sym, cp, cs, s1, s2, s3, s4, s5, en, l20, w20, l63, w63, l126, w126, l252, w252, rf, fac, tvs, tvsf, gmm, kl, kd, ks, tk, bl, wcp, wcd, wvs, wdd, sp, sv, ft, rf2, ra, r_cp, r_dd, pen_v, rb)
Parameters:
sym (string)
cp (string)
cs (string)
s1 (string)
s2 (string)
s3 (string)
s4 (string)
s5 (string)
en (bool)
l20 (int)
w20 (float)
l63 (int)
w63 (float)
l126 (int)
w126 (float)
l252 (int)
w252 (float)
rf (float)
fac (float)
tvs (float)
tvsf (float)
gmm (float)
kl (int)
kd (float)
ks (float)
tk (int)
bl (float)
wcp (float)
wcd (float)
wvs (float)
wdd (float)
sp (float)
sv (float)
ft (float)
rf2 (float)
ra (float)
r_cp (float)
r_dd (float)
pen_v (float)
rb (int)
Pine腳本庫
秉持TradingView一貫精神,作者已將此Pine代碼以開源函式庫形式發佈,方便我們社群中的其他Pine程式設計師重複使用。向作者致敬!您可以在私人專案或其他開源發表中使用此函式庫,但在公開發表中重用此代碼須遵守社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
Pine腳本庫
秉持TradingView一貫精神,作者已將此Pine代碼以開源函式庫形式發佈,方便我們社群中的其他Pine程式設計師重複使用。向作者致敬!您可以在私人專案或其他開源發表中使用此函式庫,但在公開發表中重用此代碼須遵守社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。