buy GHS constantly until price peak, but still have the option for a 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.