Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use function notify_trade in live trading? #32

Open
cryptorevizor opened this issue Aug 25, 2020 · 2 comments
Open

How to use function notify_trade in live trading? #32

cryptorevizor opened this issue Aug 25, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@cryptorevizor
Copy link

This function never work in live mode

    def notify_trade(self, trade):
        print('-' * 50, 'TRADE BEGIN', datetime.datetime.now())
        print(trade)
        print('-' * 50, 'TRADE END')

How we can use trades and calculate mfe\mae for open position for each bar?

@Dave-Vallance Dave-Vallance added the enhancement New feature or request label Aug 26, 2020
@Dave-Vallance
Copy link
Owner

Notify trade doesn't currently work with the store. Sorry about that.

@trungtv
Copy link

trungtv commented Aug 4, 2021

Notify order does not work either. Could you please explain how to implement these methods?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants