AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Meta

profit_taken does not seem to be correct!

Aperta
#303 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
discussion good first issue
Lingua principale
Python
Stelle
1.9k
Fork
751
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

What is the rational behind this formula to calculate the profit? Something does not seem right!W
Why would action be a decimal number if the action space = {0, 1, 2}?

if action is either 0, 1, or 2 then _profit_takens is always equal to self.cf.symbol(self.assets[i], "stop_loss_max"), otherwise if action is decimal then _profit_takens is equal to self.cf.symbol(self.assets[i], "profit_taken_max")) + self.cf.symbol(self.assets[i], "stop_loss_max")

_profit_taken = math.ceil((x - _action) * self.cf.symbol(self.assets[i], "profit_taken_max")) + self.cf.symbol(self.assets[i], "stop_loss_max")

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.