Works fine in postgres
create table tbtrades(id_trade integer, EXIT_DATE date, Ergebnis money)
insert into tbtrades values(1, CURRENT_DATE-50, 10);
insert into tbtrades values(2, CURRENT_DATE-40, 20);
insert into tbtrades values(3, CURRENT_DATE-30, 30);
insert into tbtrades values(4, CURRENT_DATE-20, 40);
insert into tbtrades values(5, CURRENT_DATE-10, 50);
SELECT id_trade
,EXIT_DATE
,Ergebnis
,(SELECT SUM(Ergebnis) FROM tbtrades y WHERE y.EXIT_DATE <= x.EXIT_DATE AND y.id_trade <= x.id_trade)
FROM tbtrades x
ORDER BY x.EXIT_DATE, x.id_trade
# id_trade exit_date ergebnis sum
1 1 2023-02-01 10,00 € 10,00 €
2 2 2023-02-11 20,00 € 30,00 €
3 3 2023-02-21 30,00 € 60,00 €
4 4 2023-03-03 40,00 € 100,00 €
5 5 2023-03-13 50,00 € 150,00 €