Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

update balance periodicaly #66

Closed
wants to merge 3 commits into from
Closed

update balance periodicaly #66

wants to merge 3 commits into from

Conversation

kuzetsa
Copy link
Contributor

@kuzetsa kuzetsa commented Dec 5, 2013

bugfix for gekko having a stale internal state which doesn't match the actual balance in portfolio

some users would prefer the cex.io portfolio balance should be refreshed periodically with more current BTC balance (as a result of BTC withdraw, deposit, mining new coin with the GHS, etc.)

this commit will affect all exchanges, not just cex.io

refresh period is 20 minutes
bugfix for gekko having a stale internal state which doesn't match the actual balance in portfolio
…panic sell

so long as the price is increasing by "fast enough" (value for "fast enoguh" is still part of config.EMA) assume that the price IS NOT about to crash.

since the price is still on the way up, it's best to keep buying GHS (this code is meant to be most optimal on cex.io) because there will be a mining income on any newly acquired GHS

once the price starts to level off (up trend rate drops below buyTreshold) this new code will simply hold the GHS which will continue to mine

The code for "sellTreshold" is unmodified, so it is up to the end-user to decide how severe of a market signal for "price crash" should be used to trigger the panic sell.
@kuzetsa
Copy link
Contributor Author

kuzetsa commented Dec 6, 2013

I forgot to create a branch during this pull request, need to re-create without commit 916aab0

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

Successfully merging this pull request may close these issues.

None yet

2 participants