mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-17 22:18:14 -07:00
websites: default: snapshot
This commit is contained in:
@@ -67,6 +67,9 @@ export function init({
|
||||
elements,
|
||||
index,
|
||||
timeScaleSetCallback: (unknownTimeScaleCallback) => {
|
||||
// TODO: Although it mostly works in practice, need to make it more robust, there is no guarantee that this runs in order and wait for `from` and `to` to update when `index` and thus `TIMERANGE_LS_KEY` is updated
|
||||
// Need to have the right values before the update
|
||||
|
||||
const from_ = from();
|
||||
const to_ = to();
|
||||
if (from_ !== null && to_ !== null) {
|
||||
@@ -96,11 +99,7 @@ export function init({
|
||||
defaultValue: "Line",
|
||||
keyPrefix,
|
||||
key: "seriestype-0",
|
||||
choices: /** @type {const} */ ([
|
||||
// "Auto",
|
||||
"Candles",
|
||||
"Line",
|
||||
]),
|
||||
choices: /** @type {const} */ (["Candles", "Line"]),
|
||||
signals,
|
||||
});
|
||||
|
||||
|
||||
+512
-493
File diff suppressed because it is too large
Load Diff
@@ -705,7 +705,7 @@ export function init({
|
||||
signals,
|
||||
colors,
|
||||
id: `result`,
|
||||
fitContentOnResize: true,
|
||||
fitContent: true,
|
||||
vecsResources,
|
||||
utils,
|
||||
elements,
|
||||
@@ -751,7 +751,7 @@ export function init({
|
||||
signals,
|
||||
colors,
|
||||
id: `bitcoin`,
|
||||
fitContentOnResize: true,
|
||||
fitContent: true,
|
||||
vecsResources,
|
||||
elements,
|
||||
utils,
|
||||
@@ -777,7 +777,7 @@ export function init({
|
||||
signals,
|
||||
colors,
|
||||
id: `average-price`,
|
||||
fitContentOnResize: true,
|
||||
fitContent: true,
|
||||
vecsResources,
|
||||
utils,
|
||||
elements,
|
||||
@@ -810,7 +810,7 @@ export function init({
|
||||
colors,
|
||||
vecsResources,
|
||||
id: `return-ratio`,
|
||||
fitContentOnResize: true,
|
||||
fitContent: true,
|
||||
utils,
|
||||
elements,
|
||||
config: [
|
||||
@@ -833,7 +833,7 @@ export function init({
|
||||
signals,
|
||||
colors,
|
||||
id: `simulation-profitability-ratios`,
|
||||
fitContentOnResize: true,
|
||||
fitContent: true,
|
||||
vecsResources,
|
||||
utils,
|
||||
elements,
|
||||
|
||||
Reference in New Issue
Block a user