Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
replaced line 51 with correct variable
  • Loading branch information
lightningRalf authored Mar 15, 2023
1 parent 6dc3355 commit cc794f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ document.addEventListener('DOMContentLoaded', () => {

const totalKellyValue = trades.reduce((sum, trade) => sum + trade.kellyValue, 0);

const tradingStack = parseFloat(prompt('Enter your trading stack:'));
const tradingStack = parseFloat(document.getElementById('trading-stack').value);


trades.forEach((trade) => {
trade.adjustedTradingSize = (trade.kellyValue / totalKellyValue) * tradingStack;
Expand Down

0 comments on commit cc794f4

Please sign in to comment.