Bitcoin Forum
May 23, 2024, 11:58:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2] 3 4 »
21  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 10, 2014, 07:59:12 PM
Hey people,
I'm creating the v2.3 HAL w/ some new features, one of which is the MACD analysis, however.. I need some way of getting data from the last 26 days and the maximum of bitcoincharts returns is about two days..
does anyway to solve this problem or can i do the MACD basing in a shorter time different EMA pattern of "12-day - 26-day"?
22  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 08, 2014, 02:50:02 PM
Yes,
download the new version and simulate yesterday data (fakegox_tickers(1.6-1.8 ).txt) on Backtesting mode w/ your config..

Code:
Starting HAL10K with 0.04161308 BTC buyd @ 1015.00000

$ask [btc:0/usd:43.07] @ $1035 (profit) #transaction
$bid [btc:0.0456/usd:0] @ $940.77778 (profit) #transaction



will that fix the behaviour i exposed?
23  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 08, 2014, 01:03:26 PM
New version released!
found a critical mistake at code, please update..

* v2.3 beta 1
   * - Fixed critical error at Market Direction decision (always returning MA, not EMA)
24  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 08, 2014, 02:12:17 AM
I created the bot to profit starting w/ btc, but like many requested here, next version will be able to start w/ USD or any fiat..

Great job, I would take a doubt, apparently the bot is configured to obtain profit in U.S. dollars, how do I flip and make a profit in bitcoin?  Huh
25  Local / Economia & Mercado / Re: HAL 10K - PHP Open source Trading/helper bot on: January 07, 2014, 08:23:00 PM
Yes, take a look on the original thread: https://bitcointalk.org/index.php?topic=391630

Does anyone have any experience with this or is it too new?

Y.. Obrigado!  Smiley
26  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 07, 2014, 05:31:27 PM
You are on Paper trading, right?
$ 982.35206 <limbo/down> ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
Its on "Limbo", the bot will ask at 975 when the market direction is <down/down>.
Limbo = means that the bot has not garnered sufficient data to render the EMALong, in your case is set to 44, and you will have to wait 44min(if $interval=60(1min)) for the bot do the first movement, from there it will operate normally.
(this problem will end when the bot able to automatically grab information from the past before starting from scratch).

I bought a small btc sample, but still no action with the bot:

Start time is: 07/01/2014 13:45:20,94
*** HAL_10K v2.2 beta 1 (by intrd)
$ Logged: xxxxxxx( BTC: 0.02946935 / USD: xxxxxx )
# Trading - fee: 0.45 - ( USD range down: 1 / up: 1 ) Interval secs: 60
# Ticker 24h -> High: 1044.20000 / Low: 956.00000 / Avg: 1006.35190 )
# Loop starting..
*** EMAShort / EMALong
*** High volume detected! 16133.65412521
*** Checking for open orders...  no orders.
$ 973.57000 <limbo/down> ask @ 975 stoploss: 969 (last: bid @ 974 [loss])

seems stuck in a loop, and I believe it should have made a few sells already ?
27  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 07, 2014, 05:21:13 PM
theoretically all it is possible in simulation Paper is possible IRL,
but you have to consider that your exchange will hardly be able to process quickly an order at ask/bid price, MtGox takes too long to process this type of order and many times the price moves and the order remains in gox queue, so I created the variable $timeout and Sudden Mode(which makes a bid at the current ask price or vice versa.)

intrd, thank you for your quick reply Smiley
I have one more question (which I like to illustrate).
This is while using Live Trading (with paper) with the following config:

In the middle, there is a lot of fluctation in the price, and the bot buys and sells constantly at the perfect price.
My question: Is this possible when you trade with real money? Because when that's the case, this config is very profitable  Shocked
28  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 07, 2014, 05:07:52 PM
At the moment, to start with USD instead of BTC is only possible manually.. by turning off the $reset_data; editing the file: fakegox.txt USD balance and setting an "ask" on file last.txt, (now placed in the todolist the $fake_usd_balance, this feature will be available soon)

Currently, in my mtgox there isnt any btc, I only own several USD. Does it mean it will loop forever like this unless I buy BTC and change the value you mentioned to the value I spent?
29  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 07, 2014, 04:32:03 PM
Ah ok,
this happens because you specified that purchased your amount of btc at 707, so it will sell when UP (707+$up_diff value) when the market is going <up/up>.

you can set the value that was FIRST BTC bought in this variable: $fake_btc_usd_buyedprice="707.00000";

Here we go, I only changed logged in, btc amount and usd amount:
30  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 07, 2014, 04:20:02 PM
Strange, copynpaste here last lines of output..
I'm using everything by default, I haven't changed any value
31  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 07, 2014, 03:22:42 PM
No, this will only happen if you set a very high profit on $down_diff
I'm testing it, but it handles weird values. As of now, mtgox high/low are at 1,044 - 956, but HAL 10k is bidding at 703. ¿?
32  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 07, 2014, 12:44:56 PM
1 - When bots buy/sell at "Sudden mode(loss)", its off the current price, so he scores off the chart, is correct ..
2- Sorry about that weird code lines after processing, its because I forgot to turn off debug Smiley (its not an error..)

First of all, thanks for making this amazing opensource tradingbot! Cheesy
The graph works like a charm (but sometimes the 'buy' and the 'sell' points are not on the yellow USD/BTC line)
There is however one problem I come across everytime I run the code.
Code:
*** Processing order... done!array(8) {
  ["type"]=>
  string(3) "bid"
  ["amount"]=>
  float(2.0119309811464)
  ["price"]=>
  string(6) "1044.1"
  ["datetime"]=>
  string(19) "2014-01-07 09:13:10"
  ["success"]=>
  string(26) "98374829984767289039847839"
  ["status"]=>
  string(9) "processed"
  ["prem"]=>
  string(4) "loss"
  ["sudden_mode"]=>
  int(0)
}
After 'Processing...Done! He gives some weird code lines what seems to be code that need to be executed. Does anyone know how to solve this?
Also, (newbie question) where can you see the profit you made? Thanks in advance!
33  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 07, 2014, 12:24:31 PM
He BID at 1000 and will ASK at 1010 (because $percentual and $bidfee not applies at ASK, only BID), if you want to configure profit margin at next ASK uses $up_diff.
I know, its confusing.., will improve it to let more intuitive.

Its configured, but i think the bot is ignoring the $percentual value and instead of it is using $up_diff value, what you think?
34  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 06, 2014, 03:24:33 PM
Yes, take a look at $bidfee value too!
Quote
Oh I see Smiley So why HAL is trying to sell @ 1090 (when he bought on 1089), when "$percentual" value is set to "1.45" and 1089*1.0145 = 1104.7905  <<< he should want to sell it on 1104.7905, no 1090(with loss because of fees), right?
35  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 06, 2014, 03:00:45 PM
Todolist is on github: https://github.com/intrd/bitcoin/tree/master/hal10k (at the end of readme)
would be grateful if they can assist in this project, even small fixes/improvements in code! so far I'm still alone..

Hi Intrd,
Could you give us your todolist by priority ?
Other question, I heard you had to wait a long time with Mtgox for money on his bank account. And that it is better to use Bitstamp or Bitcoincentral.
36  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 06, 2014, 02:54:23 PM
Nop. i've made a simple text database.. Smiley
Very nice thank you for this. Does this need also need an SQL server to run?
37  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 06, 2014, 11:15:26 AM
I believe that works! take the test in Paper trading.. (i've put EUR in todolist also, thank you for remembering)

Nice work so far.
Since I'm European, I am more interested in EUR prices. How much impact, do you think, would changing the currency in MtGoxClient.php have?
Code:
$this->pair = 'BTCUSD';
to
Code:
$this->pair = 'BTCEUR';
Besides showing a dollar sign next to each price of course, would that mess up things?
38  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 06, 2014, 10:31:41 AM
The bot make moves when the market price crosses EMA lines.. (you can delay it by settings $emaDiff in USD)
And how the bot know, when he should buy-in ?
39  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 06, 2014, 10:28:57 AM
He he bought at 1089, will ask at 1090 when market direction is <down/down> (<limbo/down> means that the bot does not have enough data to generate the EMA <down.limbo/down> means that the EMA has not crossed yet)

another questions on table  Smiley
Code:
*** Checking for open orders...  no orders.
$ 1090.54999 <limbo/down> ask @ 1090 stoploss: 589 (last: bid @ 1089 [loss])
what does it mean? the bot is placing sell order for that 1.0 BTC(btw the bot is still going "all-in?") @ 1089 ?
But the price was already higher than 1089 for a minute, and he not sold it, why? Or am I reading this wrong? Smiley
And how the bot know, when he should buy-in ?
40  Economy / Trading Discussion / Re: HAL 10K - PHP Open source Trading bot on: January 06, 2014, 10:24:43 AM
At the moment, to start with USD instead of BTC is only possible manually.. by turning off the $reset_data; editing the file: fakegox.txt USD balance and setting an "ask" on file last.txt, (now placed in the todolist the $fake_usd_balance, this feature will be available soon)

You welcome !  Smiley And thanks for replies and fix.
I want to ask ... for a test run, am I able to set "fake_usd_balance" somewhere? I found where to set "fake_btc_balance" but not USD balance, can you point me to the right direction please?
Pages: « 1 [2] 3 4 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!