Bitcoin Forum
November 15, 2024, 09:42:12 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23] 24 25 26 27 28 »
  Print  
Author Topic: Chrome Browser extension: MtGox trading bot  (Read 72514 times)
Lucko
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000



View Profile
May 19, 2013, 05:43:12 PM
 #441

I can't figure out how to set-up this bot. I'm running it with settings that I thought were good for 3 days now and it didn't do anything. Is there a way to do a simulation? Or give me something to start with. I also have a question. Is setting sample to 10 minutes and trade after 3 samples about the same as 30 minutes and 1 sample? I was thinking that so I can see trade get ready and disable trading if I don't agree with the bot.
TobbeLino
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile WWW
May 19, 2013, 08:21:38 PM
 #442


100% agreed, but I would add that Goomboo said that in January 2012, a time when the market was a lot smaller and different.

Yes, you're right - the situation may be a bit different now. But I still think that many movements on the minute time scale is caused by single buyers/sellers, and it takes some time for a proper trend to form. With the current trading fees at MtGox, it seems hard to make a profit on a "micro-trading".
sukiho
Hero Member
*****
Offline Offline

Activity: 514
Merit: 500


View Profile
May 19, 2013, 09:00:09 PM
 #443


Be careful, eduk's version is not implementing fixes from tobli's v0217 and v0218 (v2 api etc.). Furthermore, I strongly advise you not to use sampling intervals shorter than 15 minutes: I started with 10m, and lost a lot even with high thresholds. I'm better off with 30m now!

Yes, be careful with very short intervals...
I advice everyone that uses this bot to check out Goomboo thread that describes the strategy that this bot uses: https://bitcointalk.org/index.php?topic=60501.

I quote from his second post in that thread:
"I caution against the lower timeframes because for the most part, they are just noise.  The spread is so large and the market is so thinly traded that if you are trying to make money on a chart of less than an hour, it can be very difficult."
I havent studied this but would not using for example 10/21 on a one hour chart be the equivalent of using 20/42 on a 30 min chart?

i'm afraid that's not true, try yourself @ bitcoincharts.com
just had another look and if there is a difference its very slight, to my eye anyway
tunafish
Member
**
Offline Offline

Activity: 95
Merit: 10


View Profile WWW
May 20, 2013, 03:34:10 AM
 #444

I downloaded this (the modified version by tobbeLino) earlier today and I haven't been running it very long, only one buy and one sell executed. However it seems backwards...I'm sure it's probabley just me but take a look:
    2013/05/19 20:15:50    
BTC bought: 0.32390822 BTC at $122.42764
   2013/05/19 18:35:51              
BTC sold:  0.33231729 BTC at $120.05000

I have thresholds set at: Buy: 0.25% Sell: -0.25% (default settings) so I can see why it sold low and bought high. Shouldn't it buy when the EMA is trending down and sell when the EMA is trending up? Is there a VWAP cross or something else in the bid/ask logic thats not visible?
I had my sample intervals set pretty short at the time so I expected some messy results but even when I look at the built in chart when the sample is set to 30min/1hr it still looks backwards. Looking at the default settings (except show last 5 days) at 5/15 08:00 the price is 112.76 with an EMA divergence of -0.602% which would trigger a sell (say 1 btc at 112.76, ignore fees for simplicity) thus leaving 112.76 in my gox acct. Then at 5/15 21:00 the price is 115.00 with a convergence of 0.281%, the first one meeting the buy threshold, so a buy order would go in for 0.98 btc, causing a loss of 0.02 btc.
I'm aware it may seem like I'm cherry picking data but I picked it rather arbitrarily. I also realize there are scenarios where the current settings would result in a profit; however when looking at shorter sample intervals I'm confused as to how the buy high sell low makes sense (at least without adding additional variables like VWAP or something). Maybe I've been staring at the charts and fooling with ATPs too much today and my brains burning out but can anyone clarify this?

Mucho gracias

Feeling generous?
BTC: 1MiaKvvzhuCrbWJ2iXA9RceZfRpNDjwJTk
maverick1337
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile
May 20, 2013, 05:45:26 AM
 #445

What happened was the lines were already crossed to buy. When you started the ability to trade the buy threshold was passed and it bought. Well it went down and it passed your sell threshold then sold. Basically, you need to "turn on" your bot when your settings will not automatically make a trade.
rikigst
Newbie
*
Offline Offline

Activity: 46
Merit: 0



View Profile
May 20, 2013, 09:37:11 AM
 #446

What I've been noticing lately, is that lowest and highest prices occurr when the EMA diff. percentage stops growing (or decreasing).
Looking at the bot's popup, I noticed how the lowest prices often have the lowest ema difference percentage, as the highest prices occurr when ema-diff is inverting its trend.
With the current strategy, the bot's behaviour would be this: (graph w/actual bot data, interval is 30m, thresholds in grey +/- 0.25%, first graph is ema-diff, second is price)
http://imageshack.us/a/img835/3959/senzanomeqg.png
So, the bot would have bought around 119 (friday 17 @ 13.30 utc+2) and sold around 120 (yesterday, sunday 19 @ 19.00 utc+2), with a price difference of 0.8% (diff=1$), just enough to cover Mtgox fees.

This is because of the ema indicator's inertia: once price has begun to decrease, ema stays positive for another X samples (X varies greatly), and while the SELL threshold is reached, price has lowered a lot.

If we search for price maximums and minimums in the bot's popup, one may notice how price peaks occur at the same time of EMA-diff peaks. In other words, we should need another indicator for monitoring ema-diff, not the price! (Like two emas based on the ema-diff as the signal, not the price. Like we need the second derivative, not the first one.)

Look at this:
http://imageshack.us/a/img521/3978/senzanome2y.png

Let's concentrate on points 3 and 6 for now, ignore those yellow circles. So, once we've established point #3 is a maximum of ema-diff, it should be a good time to sell: price is likely going down for the next samples (the bot would have bought around 113/115, check for yourself as the bot doesn't return older data). Similarly, buying @point #6 would be a good choice.

Now: since at present time we don't know shit about the future trend of ema-diff, how do we know we're in a good peak?
First of all, we're not in a peak if the following ema-diff is greater than the current one. (So a trading delay of minimum 1 sample is intrinsic)
Second, peaks around the 0% line (like 5, 7, 8 ) are to be ignored.

So, it seems like accepting as maximums/minimums those points
1) above a certain threshold
2) followed by a trend-inverting sample
is a good solution.

How about peaks 1 & 2? They have to be ignored! Peak 4 (which is the actual price maximum btw) is going to be ignored? (should be!)
Any help is appreciated, thank you.
TobbeLino
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile WWW
May 20, 2013, 11:42:11 AM
 #447


How about peaks 1 & 2? They have to be ignored! Peak 4 (which is the actual price maximum btw) is going to be ignored? (should be!)
Any help is appreciated, thank you.


Well, finding the actual, true peaks in the EMA-diff graph is just as hard as finding the true peaks in the price graph.
If we could do that without errors, we would all be rich Smiley
rikigst
Newbie
*
Offline Offline

Activity: 46
Merit: 0



View Profile
May 20, 2013, 11:47:50 AM
 #448


How about peaks 1 & 2? They have to be ignored! Peak 4 (which is the actual price maximum btw) is going to be ignored? (should be!)
Any help is appreciated, thank you.


Well, finding the actual, true peaks in the EMA-diff graph is just as hard as finding the true peaks in the price graph.
If we could do that without errors, we would all be rich Smiley
Right, but do you agree with the idea of considering not only the current value of ema-diff, but its trend, too?
whydifficult
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
May 20, 2013, 12:27:24 PM
 #449

Right, but do you agree with the idea of considering not only the current value of ema-diff, but its trend, too?

Interesting idea, but all EMA bots at the moment are based on the Goomboo's Journal. Goomboo, as a trader, suggested that the more simple rules such a trading system has, the more profit it will generate in the long run.

I'm currently working on implementing a backtesting feature for Gekko, when this is done it's pretty easy to test such a system against a lot of data (say the last 12 months). That way it will be a lot easier to say wether such a system will have more success. (Note that are a lot of trading tools already available that support backtesting).

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
rikigst
Newbie
*
Offline Offline

Activity: 46
Merit: 0



View Profile
May 20, 2013, 01:57:06 PM
 #450

Right, but do you agree with the idea of considering not only the current value of ema-diff, but its trend, too?

Interesting idea, but all EMA bots at the moment are based on the Goomboo's Journal. Goomboo, as a trader, suggested that the more simple rules such a trading system has, the more profit it will generate in the long run.

Well, Goomboo didn't say anything about thresholds or 'buying after N samples above threshold', but those are working tricks! While we don't get too far from the original idea, I think that improvements are still to be done! (the 99 bucks bot guy sorta implemented this, allowing negative thresholds, but that's rough)
TobbeLino
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile WWW
May 20, 2013, 03:59:50 PM
 #451


How about peaks 1 & 2? They have to be ignored! Peak 4 (which is the actual price maximum btw) is going to be ignored? (should be!)
Any help is appreciated, thank you.


Well, finding the actual, true peaks in the EMA-diff graph is just as hard as finding the true peaks in the price graph.
If we could do that without errors, we would all be rich Smiley
Right, but do you agree with the idea of considering not only the current value of ema-diff, but its trend, too?

It's hard to say as it's a totally different strategy, but I think no (at least for this kind of bot).
Isn't the point when the derivative of the EMA-diff = 0 (i.e. when it has a peak or a bottom) probably the same point as when the price itself turns up or down?
In that case the bot could just as well simply look at the price itself: If it's turning down: Sell! It's turning up: Buy!
But unfortunately trading is not that easy, and that's exactly what the EMA-bot tries to help us with in the first place...

Goomboo's EMA-strategy is designed to not make too hasty decisions, so it will never be able to hit the exact peaks or bottoms. It's designed to wait until a trend has been identified, and that takes (per definition) time. The whole reason for the bot reacting "slowly" (and sometimes buys at the top and sells at the bottom - out-of-sync with the market) is because detecting the "true" peaks/bottoms IS the whole problem here, and it's a very hard problem! (and in some way it's an "impossible" problem, because the very moment people find a way to predict the market, the market itself will change because of this).
The problem of finding the peaks/bottoms is very deceptive because it looks SOOO easy when looking at a chart afterwards Smiley But as we all know, it's a whole different story to try to predict where the price will go "from here"...

So, I think the bottom line is that any attempt at trying to "speed up" the EMA-bot and make it react faster to the market is actually short circuiting the whole strategy of the bot. It's not designed to react quickly, and making hasty decisions is what humans do! Smiley
TobbeLino
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile WWW
May 20, 2013, 04:06:30 PM
 #452

Right, but do you agree with the idea of considering not only the current value of ema-diff, but its trend, too?

Interesting idea, but all EMA bots at the moment are based on the Goomboo's Journal. Goomboo, as a trader, suggested that the more simple rules such a trading system has, the more profit it will generate in the long run.

Well, Goomboo didn't say anything about thresholds or 'buying after N samples above threshold', but those are working tricks! While we don't get too far from the original idea, I think that improvements are still to be done! (the 99 bucks bot guy sorta implemented this, allowing negative thresholds, but that's rough)

Well, I don't think "the 99 bucks bot guy" has based his work on any scientific knowledge really Smiley He will probably implement any crazy idea as long as someone pays him to do so and it looks good in the feature list of his bot. But the only strategy he is pursuing is probably the one that makes himself earn a buck Wink
emjay2d
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 21, 2013, 05:24:55 PM
Last edit: May 21, 2013, 06:14:09 PM by emjay2d
 #453

Thanks a bunch for the bot, im only for the last few days fooling around with it. The BTC market hasnt been doing shiz for the last few days, so I havent gotten anymore than one trade through the bot. I HAVE noticed two times my bot has disabled itself within the last few days, I was wondering if this was a known issue..?

Thanks again for the bot! Cheesy

edit>> This is in relation to TobbeLino's version!
nookiegirl
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
May 22, 2013, 10:32:52 AM
 #454

How long does it take for the plugin to access the account via the API key & Secret?
I added the two keys in the settings, but it still says:

Problem accessing MtGox account.
Go check the Options page.
TobbeLino
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile WWW
May 22, 2013, 08:31:20 PM
 #455

Thanks a bunch for the bot, im only for the last few days fooling around with it. The BTC market hasnt been doing shiz for the last few days, so I havent gotten anymore than one trade through the bot. I HAVE noticed two times my bot has disabled itself within the last few days, I was wondering if this was a known issue..?

Thanks again for the bot! Cheesy

edit>> This is in relation to TobbeLino's version!

There are a few problems with connectivity. Some are due to MtGox access problem, but the bot itself currently also has some problems reconnecting on network disruptions, and can stop updating...

I'll try to release a new version that fixes this and makes it more robust against MtGox access problems.
TobbeLino
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile WWW
May 22, 2013, 08:33:00 PM
 #456

How long does it take for the plugin to access the account via the API key & Secret?
I added the two keys in the settings, but it still says:

Problem accessing MtGox account.
Go check the Options page.

Well, it *should* work as soon as a proper API key and secret has been entered.
But there are some connectivity problems at MtGox from time to time, and the bot currently doesn't handle them very good. I'll try to see if it can be fixed...
TobbeLino
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile WWW
May 22, 2013, 10:08:43 PM
 #457

Check out new version v0.2.2.0!

News/fixes:
- Indicator arrows in graph
- Thinner price line
- Zoomable chart
- Added link to external charts (at bitcoincharts.com)
- Experimental section added
- Experimental feature: Only trade after trend switch (if starting the bot between trend switches, wait until next swicth)
- Experimental feature: "The Crazy Ivan" - reverse the EMA-logic: The bot will sell when it's supposed to buy, and buy when it's supposed to sell!
- Lowered retry-rate when failed to fetch user info (retry after 1 minute instead of 10 seconds) to avoid hammering MtGox
- More robust handling of network problems (updates could stop after a network loss) - bot should now update and resume within a minute
- Better handling when computer resumes from sleep (updates could stop after sleep) - bot should now update and resume within a minute

Download at:
https://github.com/TobbeLino/GoxTradingBotTobli
Lucko
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000



View Profile
May 22, 2013, 10:54:00 PM
 #458

- Experimental feature: "The Crazy Ivan" - reverse the EMA-logic: The bot will sell when it's supposed to buy, and buy when it's supposed to sell!
I don't get it? Why? Can you elaborate? Thanks
emjay2d
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 23, 2013, 03:00:55 AM
 #459

Check out new version v0.2.2.0!

News/fixes:
- Indicator arrows in graph
- Thinner price line
- Zoomable chart
- Added link to external charts (at bitcoincharts.com)
- Experimental section added
- Experimental feature: Only trade after trend switch (if starting the bot between trend switches, wait until next swicth)
- Experimental feature: "The Crazy Ivan" - reverse the EMA-logic: The bot will sell when it's supposed to buy, and buy when it's supposed to sell!
- Lowered retry-rate when failed to fetch user info (retry after 1 minute instead of 10 seconds) to avoid hammering MtGox
- More robust handling of network problems (updates could stop after a network loss) - bot should now update and resume within a minute
- Better handling when computer resumes from sleep (updates could stop after sleep) - bot should now update and resume within a minute

Download at:
https://github.com/TobbeLino/GoxTradingBotTobli

Your work is VERY much appreciated. Wish you the best!
TobbeLino
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile WWW
May 23, 2013, 06:24:42 AM
 #460

- Experimental feature: "The Crazy Ivan" - reverse the EMA-logic: The bot will sell when it's supposed to buy, and buy when it's supposed to sell!
I don't get it? Why? Can you elaborate? Thanks

Well, it's highly experimental and added mostly for fun (to put something in the new experimental section - I plan to add some more rules and settings there later that diverts from the original EMA-bot strategy).

From the description on the options-page:
"When the EMA-strategy is reversed, the bot will buy when it's supposed to sell, and sell when it should buy! Smiley There are absolutely NO theories supporting this strategy, however, when the market is ranging and you feel that the bot is always 180 degrees out of phase with the swings, it might work. Maybe..."
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23] 24 25 26 27 28 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!