Updated version of bot posted on
https://bitcointalk.org/index.php?topic=67591.msg2122016#msg2122016Download:
https://mega.co.nz/#!1lUVAC4J!P6KIlB7NRSCTMk66Y1v9xndDZFNTadSI5qfnMVc5NAE
Added volatility to the graph
Made the sound only play when a real transaction goes through because in simulation mode it plays too often.
Added an additional check that the final sample of the EMA is actually trending, so if you have say 2 or 3 EMA samples and the latest sample is actually against the EMA trend it will spot the slight change in direction and wait for the next sample to buy (if it is again back on the trend). This makes the bot slightly smarter and really is a necessity in case the EMA is still above your threshold but volatility is suddenly high because of a sudden change in direction (I will add option to turn that on/off in options later but I believe it should be a default setting to on).
So for example you have EMA set to 3 samples and the EMA comes out in order 0.15% 0.24% 0.21%: this will not buy as the 0.21% suggests trend is not continuous, the previous versions would have still bought in here!.
If it comes out 0.15% 0.24% 0.26%: then this is a continuous trend and should buy.
If it comes out 0.15% 0.24% 0.21% 0.25%: then it skips the 0.21% and because the next one is 0.25% and again higher suggesting trend is staying and should therefore buy.
I think this is smarter, thoughts?
I think that is a great idea. But I'm worried about the amount of samples taking too long. Usually when there is a trend it spikes very quickly and can gain a couple dollars within the hour or two you waited for the samples. The same could be for selling. You see the lines go down and you figure you want to sell as quickly as possible but now you want to wait another hour or 2 to see if it's really going down. More often than not it declines very rapidly and spikes up a little and then back down. I try to buy in when there is a clear trend and get out as soon as it looks bad. I guess this is a way to play it safe for the long term but I was wondering what your thoughts are.