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

Not an issue, more a question #36

Open
cyberjunky opened this issue Sep 8, 2023 · 1 comment
Open

Not an issue, more a question #36

cyberjunky opened this issue Sep 8, 2023 · 1 comment

Comments

@cyberjunky
Copy link

cyberjunky commented Sep 8, 2023

I have setup this bot and trained it, I lowered the threshold a bit, and the enter trade signals for sell and buy are pretty on the spot, more accurate and frequent then the original one, but there is one thing, they are inverse, so when 'my bot' says SOLD: I open a SHORT, and vice versa, anyone know what is going on, how to fix?

I use a separate script to monitor my telegram and open trades accordingly (because i'm on Bybit Inverse BTCUSD) so no real issue, but was just wondering if this can be fixed easily, what I did wrong in my parameters/

@asavinov
Copy link
Owner

asavinov commented Oct 2, 2023

The score is positive if the price is going to grow in some future and if it exceeds the buy_signal_threshold then it a BUY (LONG) signal. Vice versa, the score is negative if the price is going to fall and after it drops lower than the sell_signal_threshold then it is a SELL (LONG) signal.

These are signals which are kind of suggestions. The bot also implements a very simple trade simulator which simulates trades by buying and selling based on these signals. When it receives the first BUY signal and it is in BUY mode, that is, it possesses some assets, then it generates BUY transaction and sends a BOUGHT message. It is a transaction. Vice versa, when it receives a SELL signal and is in SELL mode (it has something to sell), then it generates a sell transaction and send a SOLD message.

These are all about long trades. For short trades, all signs are reversed. The optimal buy/sell thresholds might be different (not implemented yet). The simulated or real trade strategy might also be more sophisticated, for example, the quantity might depend on the score absolute value.

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

No branches or pull requests

2 participants