trtr

Trading simulator and techanalysis gym
git clone https://git.ea.contact/trtr
Log | Files | Refs | README

commit 92159d6172d036cb529a3fd3048390c2ddc8fff7
parent 318d38eab2863813fa12cec28677a092d660ce50
Author: ea <ea@ea.contact>
Date:   Mon, 25 May 2026 09:16:41 +0000

disable fee line in gym

Diffstat:
Mfrontend/index.html | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/frontend/index.html b/frontend/index.html @@ -866,8 +866,8 @@ if (y1 !== null && y2 !== null) svgArrow(svg, W - 58, y1, y2, '#26a69a', '0.45'); } - // grey arrow for current-price break-even - if (currentBreakEvenPrice > 0 && currentPrice > 0) { + // grey arrow for current-price break-even (sim mode only) + if (!gymMode && currentBreakEvenPrice > 0 && currentPrice > 0) { const y1 = candleSeries.priceToCoordinate(currentPrice); const y2 = candleSeries.priceToCoordinate(currentBreakEvenPrice); if (y1 !== null && y2 !== null) svgArrow(svg, W - 72, y1, y2, '#606070', '0.5'); @@ -1609,6 +1609,7 @@ document.getElementById('sim-sidebar').style.display = 'none'; document.getElementById('gym-sidebar').style.display = 'flex'; document.getElementById('ff-btn-group').style.display = ''; + clearCurrentBreakEven(); chart.timeScale().applyOptions({ rightOffset: GYM_RIGHT_OFFSET }); resizeGymCanvas(); setGymTool(null); // start with no tool so chart pans freely @@ -1624,6 +1625,7 @@ document.getElementById('gym-sidebar').style.display = 'none'; document.getElementById('ff-btn-group').style.display = 'none'; gymCanvas.style.pointerEvents = 'none'; + syncCurrentBreakEven(); chart.timeScale().applyOptions({ rightOffset: 0 }); }