Hi all, I'm new to Bitcointalk been waiting hours to get out of newbie mode to post this. Yesterday I spent quite a long times learning the inner workings of this bot, I took TobbeLino's version and have made some modifications to attempt to start making the bot a bit smarter.
I have added some volatility data with a volatility buy threshold/sell threshold that must also be passed before a trade is executed.
The volatility data is worked out by taking X amount of samples (which you can set in options) and then finding the lowest and highest sample from within them. The lowest is then taken away from the highest to give the difference. This volatility score is the added to the volatility score from a couple of samples ago and divided by 2 to smooth it out slightly.
Whether this is the best way of working out volatility, I'm not sure. I found this true range and average true range from this link and basically simplified it
http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:average_true_range_atr So if anyone has any ideas how to improve this volatility score, just let me know.
Also please test it with small amounts as I've only been using it for 5 minute samples so far, there have also been some changes to the section which determines whether to execute a trade and so use at your own risk. I used this morning and it made a sell at 11:40 BST as in image below.
![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FN3zkxVu.png&t=665&c=hJ5umZdEH9gQGQ)
Options have been added to set it up. I'm liking the look of 3 volatility samples with about a 0.9 to 1.2 threshold on each. I believe that this volatility check will also allow you to lower the main buy sell thresholds.
Download:
https://mega.co.nz/#!k9EERBpI!fr0EdklaQIZPyfVqF7C-aRYeBRwkqc0bdzbitz4Xho4
(Copy/Paste this as forum screwed it up)
As a bonus I have also added a sound notification so that when a trade gets made you can hear it happening.
@TobbeLino, if you like this update, feel free to add to it to your GitHub / improve upon it or contact me.