-
Notifications
You must be signed in to change notification settings - Fork 2k
RSI always at 20 #151
Comments
May i also ask, if i CTRL+C out of the current process and restart the bot - does this reset the RSI calc, or is the RSI calc stored and used again? I restarted to get a fluctuating RSI between 48-53 but after stopping and starting the bot its quickly down back to 20. Any help in understanding how this is worked out would be greatly appreciated. |
Hi, The RSI in zenbot 3 uses the persistence of the run_state, so you can reset it either by dropping the run_state collection in mongo, or deleting just the record with the RSI's, or telling zenbot to create a new run_state with However, zenbot 4 will be dropping soon and it ditches RSI in favor of EMA, and also ditches the statically calculated map/reduce model and re-calculates indicators on the fly instead. So far it's much more agreeable to work with and I'd highly recommend waiting for it. It doesn't have Poloniex support yet, but I'm working on it. |
Hi, |
Hello, @carlos8f: I don't feel well to make my own repository for Bitstamp, because I am an old man and not a node programmer meaning that I cannot make much of long term maintenance commitments, so please make the repository. I have the files. Maybe you could make a new discussion thread for work on APIs and/or a README documenting the API requirements? @nedievas: Bitfinex would have been my next try. I am already using your Bitfinex implementation and have written the logic for Bitstamp using your work as a template. Thanks |
the 4.x branch is relatively stable right now, and writing support for an exchange would consist of copying extensions/gdax to extensions/{exchange}, re-implementing the functions in exchange.js, and ensuring the input/output of the functions remains consistent with the GDAX api. I need to document exactly what zenbot requires, but you could play around with it now if you like. @EigilB I appreciate your offer, but I'm hesitant to support Bitstamp mostly because the fees are too steep. They don't offer a 0% fee for makers, all order types have a 0.25% fee which I believe would make 1-2 trades per day (as 4.x currently averages) unprofitable. I'm aiming for zenbot 4.x to exclusively use post-only orders, and not incur fees (or at least Bitfinex cuts the fee in half). Also exchanges that I'm comfortable maintaining will be in the zenbot repo, and others (such as that don't allow US citizens to make accounts) could be maintained in external repos. Also as you mentioned there is the trade history problem. There are some 3rd party free api's that may fill the gap, such as cryptowat.ch. zenbot 4 currently processes raw trades into OHLC, but for markets that have a historical OHLC api and no historical trades, I could probably adapt the engine to use either. |
That is exacly what I have done. Your API code is quite clear and slim, and most of the functions are straight forward to reimplement. The getTrades may need some more work, however.
I am aware of the fee problem, but for people living in Europe, Bitstamp may be the easiest option. Money transfer is quick and easy using SEPA. I also made an account on GDAX, but unfortunately after depositing some coins there I discovered that GDAX don't allow people situated in Europe to trade USD. The only fiat option is EUR, and the volume on BTC-EUR market is very low, which resulted in withdrawal of my assets.
An option for me could be to have a daemon continuosly running in parallel just to collect trades from Bistamp into a db. Then zenbot could possibly look for trades in the db to fill the gap when starting after a longer stop. Bitfinex have the same history problem, BTW. |
currently in the 4.x branch you can do this by running another
Yeah I may have to use cryptowat.ch API for that. Running |
@carlos8f is the 4.x branch stable enough to start using (with caution of course)? |
I tried to unsuccessfully test according to readme.md. Is there other way to make it run? |
I will try when i get home @nedievas. Are you switching to the 4.x branch when you follow the steps in the README. |
@urnotsam Yes. I use exactly 4.x branch.
That's it. Step by step of readme.md. |
It looks like you should make a new copy of sample-config.js and call it gdax.js and fill in the required parameters in there. Then also on line 24 of exchange.js you hsould replace 'YOUR-API-KEY' with the api key you just added to the new gdax.js. I haven't tried this as im still at work, but reading through the code makes it seem like that is the problem. Let me know if it works. |
Nope. There should be a node_module like gdax. But it is not installed by default. |
Hmm, okay. I will try to look into more later if no one has answered by then. |
Remember to also do a 'npm install' in the 'extension/gdax' directory |
Also the sample file is conf-sample.js. That was my bad so you should do cp conf-sample.js gdax.js and also do what @EigilB said. |
I did this in the / directory:
|
also did as @EigilB said. The same output from zenbot init. Readme.md is obsolete. You Must follow this output options. |
@nedievas Great! now you can do some testing on backfill data and check how stable it is and its performance. |
A trick to do test runs without the risk of losing money is to generate key/secret pair with only RO permissions |
option 'list-selectors' not working. Backfill is good to go. |
I will try to convert to Bitfinex when I finish to inspect all the working options on GDAX. |
I've been trying to get 4.x to work on some level... However, after cloning and npm install in zenbot root and Gdax root. "./zenbot " only produces "list-Selectors", "backfill" and "sim". list selectors does not work, it just lists the above options as if there is no parameter being passed. |
No sim after backfill:
|
@nedievas it's a bug, add |
Cool! We have paper trading!
|
@carlos8f Thanks. Now I see how it is going.
|
@nedievas Have you seen the paper trader actually make any trades? I've had mine running for a few days and haven't seen it make any trades. |
Is this issue still valid, or can we close this? |
Every time i run the bot my RSI is always 20 or near there!
Albeit I'm running a modded version of the poloniex bot, but havent changed anything RSI wise.
Could this be an issue with how its calculating it?
At poresent its not performing well at all as the RSI is stuck on a fixed amount.
Anyone else experiencing the same?
The text was updated successfully, but these errors were encountered: