Bitcoin Forum
July 05, 2024, 11:42:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
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 29 30 31 32 33 34 35 36 37 38 [39] 40 41 42 43 44 45 46 47 48 49 50 51 »
761  Bitcoin / Bitcoin Discussion / Re: Bitcoin currency symbol to be added to future keyboard on: May 11, 2013, 11:48:52 AM
but you don't need it really. "spass" is also possible.

No. Not in Germany. In Austria maybe but not in Germany!

Also many people (myself included) have this letter as a part of their name. Also this letter is a ligature of "sz" https://en.wikipedia.org/wiki/ß and has nothing to do with "b" so it does not have anything in common with "Bitcoin" at all (there is no "s" and no "z" in Bitcoin).
762  Economy / Trading Discussion / Re: goxtool bot: portfolio rebalancing on: May 10, 2013, 11:42:37 AM
I was getting the same error with use_ssl=False, I switched it to True, now it's working again.

Yes, I can confirm this.

I just tried it and https API does not produce this error. So the workaround (or solution) is now to set use_ssl=True in the ini file and then --use-http will work again as before. Seems their anti-ddos web cache proxies have gone mad.
763  Economy / Trading Discussion / Re: goxtool bot: portfolio rebalancing on: May 10, 2013, 08:34:21 AM
for me its working even with --use-http

Tnen cloudflare (or whatever anycasting web-proxy network they are using) must be messing it up. I'm located in Germany (Arcor / Vodafone).
764  Economy / Trading Discussion / Re: goxtool bot: portfolio rebalancing on: May 10, 2013, 08:03:23 AM
Is the bot currently broken? I only get "identification required to access private API". I didn't change anything, it just doesn't work anymore.

MtGox http api is broken again. As a woraround leave away the --use-http option (or if you have set it in yor ini then temporarily use the --no-http option) until they have fixed it again.
765  Economy / Trading Discussion / Re: goxtool bot: portfolio rebalancing on: May 07, 2013, 06:02:11 PM
My thinking is as follows (in a quite generalized way), I get more profits doing 6 trades with 2$ profit each time than only 1 trade with $10 profit. Can we come up with a optimum distance level given a portfolio?

Its not a function of the portfolio size. The profit per trade is a function of distance d and fees f (f = 2*0.6 = 1.2 at MtGox). Lets first only look at the ideal situation with zero fees for smplicity, then the profit for one trade would be proportional to .

The number of trades n that happen during a fixed time period is also a function of the distance, lets call this n(d). So the profit would be

profit(d) ~ d² * n(d)

and with fees it would be:

profit(d) ~ (d-f) * d * n(d)

And now we need to know how exactly does n(d) look like? Does it have an 1/d² somewhere? I don't know it. We need to simulate it with real historical bitcoin market data (and maybe also with data from other markets). Maybe someone wants to volunteer and make a quick python (or other) script to simulate it on old data and then run it with a lot of distances (and different MtGox fees) (and over a time period where start price and end price are not too far away) and then plot a few curves:

overall profit vs. distance
number of trades vs. distance
etc.

I was hoping BTC-Engineer would come back and share his results and do more simulations but if he wont come back I will probably do it myself but I'm lazy and probably someone else will do it earlier (and hopefully post his results here)
766  Economy / Trading Discussion / Re: goxtool bot: portfolio rebalancing on: May 07, 2013, 12:53:31 PM
I have running it now a few days and it made no trades...

It does not suddenly begin to "trade". It places 2 limit orders above and below immediately after you initialized it according to the instructions (no need to wait here, you can see that it worked immediately) and then it waits for market to move there and fill one of them. Please read the description and the source code and also insert self.debug() statements at all the places where you are unsure what exactly is happening to learn what the values of the variables are and why it won't work as expected.

If you followed the instrucions then it has placed 2 orders (you see them with F6 or if you zoom out the order book or by looking at the mtgox.com trading web interface). You just have to wait until price moves to fill one of these orders. Then when this happens it will automatically cancel the other remaining order and place 2 new orders above and below. You may not have any other open orders in your account (whose price ends with the MARKER digit) or it will confuse the bot and it wont operate correctly. Also if account balance suddenly changes due to other trading it will confuse the bot and its calculations.

Look at your open orders and cancel or change all orders that have a price ending with 7. If you really need a permanent order to buy a million BTC at $0.00007 in case MtGox gets hacked again then either change this order to $0.00008 or alternatively change the MARKER value to some other number between 1 and 9 that is not used by you, then manually cancel all wrong orders (F6) and reload and reinitialize according to instrutions in post #1.
767  Economy / Trading Discussion / Re: goxtool bot: portfolio rebalancing on: May 07, 2013, 12:48:56 PM
I just installed this bot and set the distance to 3.
I rebalanced and then when I hit p it places orders correctly.

I'm seeing the sell orders go through, but the bot doesn't then place a new order at that point. I'm I right in thinking that this is incorrect behavior? There is a single bid order left in my mtgox account..

Is it due to this?

Code:
Code:
   # as long as there are ANY pending orders around we
   # just do nothing and wait for the next signal
   if count_pending:
            return

The following would be correct behavior: If there is only one order left it will cancel that order and then place 2 new orders above and below the new center. (The center is calculated from the account balance, not the price of the last trade but usually it differs only a few cents, the center is the BTCUSD price at which perfect balance would be established).

If you see anything other than exactly 1 bid and 1 ask order  then there is something wrong. If there is only one existing order left and it does not attempt to trade then here is something wrong.

The code snipped you cited makes it wait until there is no more pending order left, this is important, otherwise it would not work at all and probably burn a lot of money! Orders can be pending for several seconds up to many minutes, depending how high the order lag is, the bot will not try to place more orders or do anything as long as there are stlll pending orders in the pipeline, just wait (the o_lag display at the top gives you a hint how much order lag there is currently)

DISTANCE = 3 is very low. Its extremely low, given how the order lag can spike on mtgox when there is much activity and price is moving fast. You will inevitably run into problems with such an extremely low distance. I have set mine to 11 now (because 7 was still too small) and it will trade only a few times per week (and on crazy days that happen every once in a while it might trade a few times a day). The larger the distance the fewer trades it will do, the less problems you will have and the less fees you pay to MtGox (and therefore more profit for you). With DISTANCE=11 I can leave it running unattended for days and can sleep well without worrying.
768  Other / MultiBit / Re: MultiBit on: May 07, 2013, 11:23:39 AM
I have a question regarding the new 54µBTC minimum output rules of the bitcoin-qt client. How is this handled by Multibit? The problem I see here is if I have a wallet with 1.000550 BTC and send an 1 BTC transaction then  it would send 1 BTC to the receiver, 50 µBTC as change to myself and 500µBTC as fees. Such a transaction would qualify as "spam" by most peers acording to the new rules and might be difficult to broadcast. I know that its extremely unlikely that this happens to a normal user very often but it is a possible scenario happening to users that are totally unaware of the problem. How does Multibit deal with this? Possible solutions are: If this happens then either look for other available outputs that are better suited for this transaction or if no other outputs are available then just add the < 54µBTC dust to the fees and return no change at all. Is something like this already implemented in Multibit or is it planned?
769  Economy / Marketplace / Re: [BETA] MTGox websocket API, testers wanted on: May 05, 2013, 06:06:11 PM
There will be a trade message on the private channel (see streaming API docs) but I'm not sure if it has the order ID.

It is anonymous data stream, without orders association. So bad, protocol provoke for many additional requests Sad

You can also trigger your actions in the user_order message for order removal, this message will be fired when the order is completely filled or the last remaining part of it is filled (and therefore the order is removed). Problem here is: it will also fire when you cancel the order. So you need some additional code that knows what was going on before. If your bot is the only thing that ever cancels orders then will know the reason for the remove message but if you also cancel orders manually or through other bots running on the same account then you need somethng more sophisticated, then you need to keep track of the private trade messages too and if a trade message at the same price preceded the the order remove than it is a filled order, otherwise its a cancel or something like that.

The API clearly was not designed by someone who has ever written a trading bot before, its missing needed information in a lot of places and forces you to do cumbersome workarounds to detect certain events or keep track of the information you need, and at the same time all the json messages are bloated with totally useless redundant data that nobody ever uses.
770  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 05, 2013, 10:36:39 AM
Ok, I'm quickly inserting this post here before I forget it, this might be of interest for others trying to use goxtool with putty (there seem to be a lot), After seeing the screenshot I did some quick experiments with the Linux version of putty myself and line-drawing and other special characters looked totally screwed up here too. There seem to be the following few important settings that must be changed from the default, this will also solve the problem with F4 key not working:

Terminal > Keyboard > "Function keys and keypad" : Xterm R6
Wndow > Tranlation > "use font encoding"
Wndow > Tranlation > "[_] Override with UTF-8"  (remove the checkmark)

the equivalent options in the session settings file are:

LinuxFunctionKeys=2
LineCodePage=Use font encoding
UTF8Override=0

PS: It also seems that the UTF-8 problem will not occur when running goxtool through screen, screen seems to handle the character translation a different way but if not running through screen then these settings should help.
771  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 05, 2013, 09:33:45 AM
So I got something like this:
Did you change the character that is used for the depth bars or is that the way putty displays the ACS_CKBOARD character?

(Also from your screenshot it seems you are still using the socketio server, you should switch to websocket, much better experience, faster connect and no disconnects anymore)
772  Economy / Marketplace / Re: [BETA] MTGox websocket API, testers wanted on: May 04, 2013, 03:11:35 PM
How can make a subscription to my bot trades? Requesting for every order private/order/result is slow bad solution. I need recieve trades with tid, oid, price and volume fields, as soon as possible after order matched partally or full.
There will be a trade message on the private channel (see streaming API docs) but I'm not sure if it has the order ID.
773  Economy / Speculation / Re: Lag bot on: May 04, 2013, 07:14:19 AM
somebodies's stupid lag bots keep spamming real transaction flow...  Angry

I've seen it too. This was not a bot, someone was playing the 100-invalid-orders-one-mouse-click-to-activate-deactivate-game as it was published on reddit and other places. I guess he will soon lose his MtGox account and everybody who is doing the same will lose his account too.
774  Other / Meta / Re: BOOKMARK THIS SITE AS https://109.201.133.65, DOMAIN WAS TRANSFERRED on: May 03, 2013, 10:29:43 AM
Nobody (of those who can't reach it now) will be able to read this posting.
775  Economy / Speculation / Re: My bitcoin investment strategy - fixed allocation - listening to ALL your parts on: May 02, 2013, 09:40:33 AM
This srategy creates a small profit and the more volatility there is the more profit it makes in the long run but its not for the impatient. Its not a get rich quick scheme.

If you want to trade this automatically to never miss any rebalancing opportunities even when you are sleeping then try to use something like the balancer bot: https://bitcointalk.org/index.php?topic=181584.0
776  Economy / Speculation / Re: Wall Observer - MtGoxUSD wall movement tracker - Hardcore on: May 01, 2013, 06:11:33 PM
Now I can finally post screenshots of my app and they qualify as wall pics  Wink


Note the low total_bid/total_ask ratio, this was much higher yesterday.

Ignore the orange dot, that is an order opened by my bot.
777  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 01, 2013, 04:21:15 PM
Code:
    def slot_keypress(self, gox, (key)):
if key == ord("b"):
    self.debug("canceling all rebalancing orders")
do you mean that self.debug.. is under the "e" of key and above it was under the "y" of key?

the entire two last lines don't seem to belong into the slot_keypress method because the if line needs to be intended further than the def line to be considered inside the method and the line after the if needs to be intended even further than the if to be considered inside the if block.

Also be careful with mixing tabs and spaces, you dont see them, everything looks right but isnt. In python it has been established that everybody use 4 spaces and no tabs to have a consistent coding style everywhere and I am trying to follow the styleguides as close as possible myself. So set your editor to

(depending on what editor you use, every editor has similar options somewhere in its config)
indentation 4 spaces
no tabs
convert tabs to spaces

Do this once and from then on everything becomes much easier.

You should also make it a habit to run your code through pylint, I'm doing this everytime I save the code in the editor, before I even attempt to run it, Its a great help, it forces you to adhere to the established standards and coding style and it also finds a lot of problems and errors (my favorite are misspelled variable names, missing function arguments, missing self argument in methods) that could otherwise only be detected at runtime and maybe even not immediately after program start but only after a few hours when its attempting to do its first trade.
778  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 01, 2013, 04:11:18 PM
AAAAAAHHHHH, its the variables in the braces of the class-functions, right?
i.e.
def slot_history_changed(self, history, _dummy):
history is found in goxapi - class History(BaseObject)
so goxapi "fills" its classes and strategy.py is defining other classes filled with goxapi results?
I think i start to understand
lol, yes, almost. Although your usage of the above terms indicates that you are only at the beginning of your journey, learning Python. You should really try to work through some tutorials, write your own simple programs from scratch, first start with simple functon calls, understand what function arguments are, global and local variables, then much later maybe learn what classes are and methods and how these are related, inheritance, virtual methods and all that stuff. And then beneath all that there also exist an entire universe of hidden Python-specific black magic that can also be used. This is not learned and understood in one single day, it needs some time.
779  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 01, 2013, 03:58:23 PM
i know about indentation (just a beginner yet), what i ment was, that i didnt see which indentation was messed up

The last two lines in your other posting, the if statement was outside the slot_keypress method, it was even outside the entire class. MtQuid intuitively corrected it and fixed the indentation without asking further questions when he tested it (because he understood what was probably your intention) but the Python interpreter cannot guess what you might have wanted to do, it will interpret it such that the block belonging to the slot_keypress method ends as soon as the indentation level changes.
780  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 01, 2013, 03:51:15 PM
thx again, i re-pasted the rebalancing bot and now it works, still i cant see what the error in the above code was

Because you messed up the indentations. This totally changes the program.

In Python whitespace has a syntactical meaning to get rid of the ugly and redundant and hard to reach (on a german keyboard) curly braces. The absence of curly braces and the clean and readable syntax are one of the main reasons I prefer python over all other scripting languages and Pascal over C++.
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 29 30 31 32 33 34 35 36 37 38 [39] 40 41 42 43 44 45 46 47 48 49 50 51 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!