Bitcoin Forum
September 03, 2024, 10:57:48 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Trading Discussion / Re: Chrome Browser extension: MtGox trading bot on: May 13, 2013, 04:05:12 PM
I've managed to get the bot to get the latest ask and bids prices from the market depth. I'm thinking that we could do a check to see how much it would cost to buy say 500 bitcoins and if that figure is below say $1 above the current latest price then it will stop a buy taking place and vice versa for sells. Basically spotting where the buy and sell walls are, this can definitely be done.
2  Economy / Trading Discussion / Re: Chrome Browser extension: MtGox trading bot on: May 12, 2013, 10:11:46 PM
Updated version of bot posted on https://bitcointalk.org/index.php?topic=67591.msg2122016#msg2122016

Download: https://mega.co.nz/#!B9sk3ApC!P4VC-HyInOz6fL2o6FRXTEcrofUSHFY69CDcOOLbdNE


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?
3  Economy / Trading Discussion / Re: Chrome Browser extension: MtGox trading bot on: May 12, 2013, 06:48:58 PM
eduk, I've noticed you happen to know how far fible1's paid version has developed. As per 2 days ago, Tobbelino's one was much better (not to mention, free). This volatility check addition is a must-have, and I saw it was implemented in fible1's version, too. Any clue on how it performed? Is tobli's version always the best one?

Here is the volatility one I made yesterday https://bitcointalk.org/index.php?topic=67591.msg2122016#msg2122016 which is free because most of it is other peoples work as it is TobbeLino's version with a volatility check, I'm still testing though, I literally finished coding the modification last night and have only run it for about 10 hours today. But it is avoiding sells and buys.

I'm also figuring out other ways to make it smarter, as during stable periods like we've seen these last few days it an be too agressive.

4  Economy / Services / Re: B-BOT: New MtGox EMA Trading Plataform on: May 12, 2013, 06:11:02 PM
Another way the bots can be made to be smarter is you see on the image above when it goes close to a sell, there needs to be some sort of EMA check when using samples because it goes -0.128 to -0.153 back to -0.143. A check on the third sample against the second should be made so that it holds off selling because of that -0.143 showing a possible change of direction. or compare how quickly the EMA has changed over the 3 samples and making a more informed decision so like checking the gap between the 3 samples is above a certain figure.
5  Economy / Services / Re: B-BOT: New MtGox EMA Trading Plataform on: May 12, 2013, 05:51:50 PM
@Pablo

Yeah it still needs some work to be fully effective because if the EMA is say high in the + percentages but is volatile because it is going downwards it could buy in the wrong direction. Basically it could work better by checking the last price against the volatility to see whether it is the correct direction, like a check of the first sample EMA against the latest.
6  Economy / Services / Re: B-BOT: New MtGox EMA Trading Plataform on: May 12, 2013, 05:40:19 PM
How about some sort of ranging market detection so that the bot would stop trading in periods of low volatility like we've seen over the last few days?

The link in this post seems very interesting: https://bitcointalk.org/index.php?topic=67591.msg2118599#msg2118599

Hi Smiley,
  Yes I saw the post and I've been thinking about it. An EMA trading bot, by its very nature (it identifies trends), is resistant to volatility if proper time thresholds are used (15 minutes to an hour in the BTC market), you can see a full discussion here: https://bitcointalk.org/index.php?topic=60501. The solution on the thread is more designed for a frequency bot.

What this solution is doing is its taking the lowest value from the current set of data and subtracting it from the highest, then comparing that value to the last value obtained from the last set of data. It's an unreliable indicator at best.

The solution implemented here is very easy for us to add to the bot and I'm happy to schedule it, I have yet to turn down a request for the new version Smiley, but please be aware it is a highly unstable solution that will likely be counterproductive. I leave you with the words of the programmer who added the feature in the bot you are discussing:

"Whether this is the best way of working out volatility, I'm not sure." - Eduk

What I can promise you is that we will be sure to publish a complete and effective volatility solution when we have found one and tested it out with our own money Smiley.

Pablo.



I'm not sure because I have very little trading experience and there is most likely better ways of working out volatility. In this very recent example which I'm currently trading with, it skipped the EMA thresholds because volatility wasn't high enough and avoided a stupid sell and buy based on volatility.

7  Economy / Trading Discussion / Re: Chrome Browser extension: MtGox trading bot on: May 12, 2013, 05:29:16 PM
I found one ranging market indicator which worked well on forex: Damiani volatmeter. Heres a link to discussion and source codes (in MQ4) for that. As you can see from the picture filtering is crucial for systems like this.

http://www.tradingsystemforex.com/indicators/431-how-to-determine-if-a-market-ranging.html
This looks very interesting indeed.  With this kind of ranging market detection in place the bot could be left running even in flat periods like the last few days without worrying about losing money.  Given that the source is included, I wonder how hard this would be to incorporate into the bot?  I've not done any coding for a while but might have to look into this if I ever get the time.

Have a look at the one version I posted above with added volitality check. You should be able to just change the function "updateVol" to do a completely different calculation and therefore use a different indicator. The work of adding new thresholds and checking for them is all included.
8  Economy / Trading Discussion / Re: Chrome Browser extension: MtGox trading bot on: May 12, 2013, 05:14:47 PM
Beautiful! Thanks for this. I just got out of newbie jail and also wanted to thank Tobbelino for his work as well.
Once I get these up I will definitely send some mBtc your guys way!

I would love to see a better indicator used for the crossover....ideally MACD.
Since we have the two EMA's MACD is simple calculation really...but right now out of my coding talent level.

http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:moving_average_conve&gclid=CJXQ7ZX6kLcCFUNlMgodKXkAxA

MACD Line: (12-day EMA - 26-day EMA)
Signal Line: 9-day EMA of MACD Line
MACD Histogram: MACD Line - Signal Line

That calculation using a multiple day EMA is currently out of the scope of the bot because it will only collect the last 144 samples from Mt Gox. This can be extended to 1000 if you change "const MaxSamplesToKeep = 144;" at the top of background.js but at small intervals won't reach that far to collect that amount of data.

Alternatively the calculation could be done over a shorter time period, or the bot would need to be upgraded to store past data somehow or get it from somewhere else.
9  Economy / Trading Discussion / Re: Chrome Browser extension: MtGox trading bot on: May 12, 2013, 03:10:11 PM
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.



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.
10  Other / Beginners & Help / Re: Whitelist Requests (Want out of here?) on: May 12, 2013, 11:27:58 AM
Hi can I be whitelisted, I really want to post in the thread on trading bots as I have updated the Tobbelino chrome extension to take into account volatility and want to post about it.
11  Other / Beginners & Help / Re: I got my first Bitcoin,well fraction of it ! :D on: May 12, 2013, 11:16:12 AM
Congratulations, may your fractions of a bitcoin turn into full complete ones!
12  Other / Beginners & Help / Re: Gox trading on: May 12, 2013, 11:15:20 AM
i hope LTC comes to Gox soon

I'm going to be interested in that, do you think it will suddenly rise in price or do you think that people will wait to see what happens. I'm guessing that most will be cautious at first to see where it heads.
13  Other / Beginners & Help / Re: How many bitcoins do you have? on: May 11, 2013, 11:36:53 PM
About 8.5
14  Other / Beginners & Help / Re: Best way to buy and sell bitcoins from the UK? on: May 11, 2013, 11:35:24 PM
You could try a SEPA transfer to Bitstamp, but you may have to pay a fee at your bank to change into Euros

I used them a month or so ago, but through Transferwise, who have stopped sending money to Bitcoin exchanges, but SEPA still works.

There is http://quickbitcoin.co.uk/

I haven't tried them yet, because they are usually out of stock when I visit.
15  Other / Beginners & Help / Re: Purchased Some Domains in 2011, thoughts? on: May 11, 2013, 11:30:59 PM
Domains are usually more valuable if they have something on and so have a history and bit of Google rank, it would probably be quite easy to get a script to put on the bitcoinprice.co.uk one in £GBP obviously.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!