Skip to content

Releases: lightningRalf/PositionSizing

added logo and favicon

16 Mar 11:05
e0b8aa4
Compare
Choose a tag to compare
Update styles.css

added logo and favorite icon

javascript eddited

15 Mar 08:22
2919fd0
Compare
Choose a tag to compare

got cut from GPT-4 before. trying again.

initial creation - GPT-4 based

15 Mar 08:17
04f54c6
Compare
Choose a tag to compare

First try on creating a script with GPT-4

PositionSizing after KellyCriterion

15 Mar 21:15
02a7e2e
Compare
Choose a tag to compare

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

15 Mar 11:01
03e92ac
Compare
Choose a tag to compare
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

15 Mar 09:32
ab6739c
Compare
Choose a tag to compare
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

15 Mar 09:07
cc794f4
Compare
Choose a tag to compare
Update script.js

replaced line 51 with correct variable

whole JS

15 Mar 08:55
efff355
Compare
Choose a tag to compare

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

15 Mar 08:40
a236c28
Compare
Choose a tag to compare

GPT missed the formulas, hopefully that will work now

gone from 2h before to now

15 Mar 12:11
df92fb5
Compare
Choose a tag to compare
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: