tensortrade-org / tensortrade

An open source reinforcement learning framework for training, evaluating, and deploying robust trading agents.
https://discord.gg/ZZ7BGWh
Apache License 2.0
4.45k stars 1.01k forks source link

[wip] - support for shorting #450

Open ddragosd opened 1 year ago

ddragosd commented 1 year ago

I'm opening a PR to get feedback on adding support for shorting.

I need this feature, and I'd like to share it with the community too.

Details

The implementation intentionally keeps the original behavior in place as much as possible - which is no shorting support . Developers have to be specific in the code to enable it. What this PR adds:

TODO:

Related Issues

spytensor commented 1 year ago

Great Job!

ddragosd commented 1 year ago

I'm still testing this in production for a little longer before removing the WIP, and making it ready for review.

carlogrisetti commented 1 year ago

Thanks a lot for your effort!

BarakBa1 commented 1 year ago

@ddragosd you should take a look at this implementation from MrDaubinet could be helpful for your work to support shorting

ddragosd commented 1 year ago

@BarakBa1 thanks for referencing the extension. Are you suggesting we don't merge this PR and instead use the extension you referenced ?

Buxiulei commented 1 year ago

Hope the shorting can be merged into the master

qwpto commented 9 months ago

Thanks for the efforts, hope it gets merged.