migration: audit uncertain code and prepare handoff
This commit is contained in:
@@ -52,10 +52,6 @@ function activeScreenerResultEntry(mode = state.screenerMode) {
|
||||
return key ? state.screenerResultStore[key] || null : null;
|
||||
}
|
||||
|
||||
function screenerResultMatchesSelection(mode) {
|
||||
return Boolean(activeScreenerResultEntry(mode));
|
||||
}
|
||||
|
||||
function activeScreenerResult(mode = state.screenerMode) {
|
||||
return activeScreenerResultEntry(mode)?.result || null;
|
||||
}
|
||||
@@ -654,13 +650,6 @@ function updateBacktestTaskStatus() {
|
||||
renderScreenerProgress();
|
||||
}
|
||||
|
||||
function selectRegime(regime) {
|
||||
state.selectedRegime = regime;
|
||||
const recommended = state.screenerSetup.strategies.find((item) => item.formula?.meta?.library !== "curated" && item.regimes.includes(regime));
|
||||
if (recommended) state.selectedStrategy = recommended;
|
||||
renderScreenerSetup();
|
||||
}
|
||||
|
||||
function renderStrategyList() {
|
||||
const list = document.querySelector("#strategyList");
|
||||
const strategies = state.screenerSetup.strategies.filter((item) => !item.builtin && item.formula?.meta?.library !== "curated");
|
||||
|
||||
Reference in New Issue
Block a user