Skip to content

Commit 95d7dfe

Browse files
Aditya PutatundaAditya Putatunda
authored andcommitted
ref price
1 parent c39a722 commit 95d7dfe

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

index.html

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,6 @@ <h3>Dip rules</h3>
384384
<div class="knob-label"><span>Dip threshold</span><span class="val" id="lbl-thresh">1.5%</span></div>
385385
<input type="range" id="thresh" min="0.5" max="10" step="0.1" value="1.5">
386386
</div>
387-
<div class="knob">
388-
<div class="knob-label"><span>Reference price</span></div>
389-
<select id="refreset">
390-
<option value="rolling_high">Rolling high (strict)</option>
391-
<option value="after_buy">After last buy</option>
392-
<option value="fixed">Fixed (initial)</option>
393-
</select>
394-
</div>
395387
<div class="knob">
396388
<div class="knob-label"><span>Tranche per dip</span><span class="val" id="lbl-tranche">50%</span></div>
397389
<input type="range" id="tranche" min="10" max="100" step="5" value="50">
@@ -764,7 +756,7 @@ <h2>Strategy comparison</h2>
764756
stepup: +document.getElementById('stepup').value / 100,
765757
interest: +document.getElementById('interest').value / 100,
766758
thresh: +document.getElementById('thresh').value,
767-
refReset: document.getElementById('refreset').value,
759+
refReset: 'rolling_high',
768760
tranche: +document.getElementById('tranche').value / 100,
769761
maxDips: +document.getElementById('maxdips').value,
770762
deployLeftover: document.getElementById('leftover').checked,
@@ -969,7 +961,7 @@ <h2>Strategy comparison</h2>
969961
}
970962

971963
function wire() {
972-
const ids = ['monthly','stepup','interest','thresh','refreset','tranche','maxdips','leftover','split'];
964+
const ids = ['monthly','stepup','interest','thresh','tranche','maxdips','leftover','split'];
973965
ids.forEach(id => {
974966
const el = document.getElementById(id);
975967
el.addEventListener('input', debouncedRecompute);

0 commit comments

Comments
 (0)