Releases: lightningRalf/PositionSizing
Releases · lightningRalf/PositionSizing
added logo and favicon
Update styles.css added logo and favorite icon
javascript eddited
got cut from GPT-4 before. trying again.
initial creation - GPT-4 based
First try on creating a script with GPT-4
PositionSizing after KellyCriterion
Functions properly
- trading stack
- Ticker, Entry, TP, SL, Win Probability as entries
- row delete
- add row, with automatic focus
- calculation of RR and adjusted position size, when multiple trades are interesting and the trading stack is smaller as the amount of interesting trades.
v.0.1.8-design-alpha: Update script.js
I got still some problems left: - the string "Trading Stack:" does not change color when going into darkmode. - When Opening the homepage, I want to jump right into the 'trading stack' field, so I can fill it out. - after that, I want to go to the ticker field (this has to be a field where I can also enter a string!) - after that, Entry, TP, SL, Win Probability, and with the next tap, I create a new row. - When I finished all entries in a row, and I hit enter. This should automatically push the calculate button Other problems are as follows: - The values I enter into Entry, TP and SL should be integer values. - after entering different values and hit the 'calculate' button, all my entries disappear, but nothing else changes. This is wrong. 1. the 'trading stack' incl. the entrie I put in there, should stay there. 2. The whole table of the ticker and so on, should disappear, and 3. a new table (called results, from you the last time) should show up, with the correct answers, as before.
beautiful but not working
Update script.js Lets go on and make it more beautiful. First things first: - modify it, so that you could toggle between dark and light mode on the upper right corner - add some nice graphic as background behind the 'h1' - make the field for the trading stack a bit more spacious. - dont display results table, before pushing the 'calculate' button - dont show the add row button - show one row from the beginning. - when hopping from the win probability column with 'tab' to the next field, add automatically another row - adjust the 'calculate' button a bit more in the middle and below the table - when pushing the 'calculate' button: 1. hide the entry table 2. show the results table, but without the 'results' label 3. resize the table to the values inside 4. publish it in the middle of the page
added field for trading-stack entry
Update script.js replaced line 51 with correct variable
whole JS
GPT gave me just code snipplets, I didnt read the script, and just pasted it. So now I asked that it provides me with the whole script.
It did, next try.
with formulas
GPT missed the formulas, hopefully that will work now
gone from 2h before to now
Update styles.css es, to place the dark mode toggle on the upper right side, you need to make changes to the CSS code. Update your styles.css with the following changes: Replace the #theme-toggle with header to position the dark mode toggle within the header. Add flexbox styles to the header selector to align its contents. Here's the updated styles.css code: