Pages:
Author

Topic: HAL 10K - Bitcoin PHP trading bot - page 3. (Read 24308 times)

newbie
Activity: 27
Merit: 0
January 08, 2014, 12:55:59 PM
#74
Not sure if working as intended, I just lost a big chunk of money. It sold at $900 what I bought at $935:

https://i.imgur.com/LJzxaT6.jpg
newbie
Activity: 27
Merit: 0
January 08, 2014, 11:27:56 AM
#73
I started it again, I ll report back in 45 minutes as before to see what happens. I want to recover the 20% i lost Tongue
member
Activity: 75
Merit: 10
HAL10K developer
January 08, 2014, 10:50:02 AM
#72
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?
newbie
Activity: 27
Merit: 0
January 08, 2014, 09:52:34 AM
#71
will that fix the behaviour i exposed?
member
Activity: 75
Merit: 10
HAL10K developer
January 08, 2014, 09:03:26 AM
#70
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)
newbie
Activity: 27
Merit: 0
January 08, 2014, 06:28:04 AM
#69
I left the bot running all night with default settings and I've lost almost 20% of the amount I had. Apparently it's selling low and buying high, always:

https://i.imgur.com/0SKCo7m.jpg

What should I change in the settings to stop this behaviour? Is there any reason for this?
member
Activity: 75
Merit: 10
HAL10K developer
January 07, 2014, 10:12:17 PM
#68
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
member
Activity: 87
Merit: 10
January 07, 2014, 09:24:01 PM
#67
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
newbie
Activity: 27
Merit: 0
January 07, 2014, 01:34:10 PM
#66
I feel dumb, sorry. I ll report back in 40 mins when I start earning billions thanks to your bot.
member
Activity: 75
Merit: 10
HAL10K developer
January 07, 2014, 01:31:27 PM
#65
You are on Paper trading, right?
$ 982.35206 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
Its on "Limbo", the bot will ask at 975 when the market direction is .
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 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])

seems stuck in a loop, and I believe it should have made a few sells already ?
member
Activity: 75
Merit: 10
HAL10K developer
January 07, 2014, 01:21:13 PM
#64
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
newbie
Activity: 27
Merit: 0
January 07, 2014, 01:19:16 PM
#63
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?

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 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 973.76792 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 975.00279 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 974.99279 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 973.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 973.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 973.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 975.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 977.44255 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 975.99000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 974.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 974.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 974.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 974.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 974.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 974.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 977.25000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 977.25000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 977.25000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 975.50000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 975.50000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 986.89900 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 979.90231 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 979.90231 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 979.90231 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 979.90231 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 979.90231 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 982.35206 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 982.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 982.00000 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 982.35206 ask @ 975 stoploss: 969 (last: bid @ 974 [loss])

these are my settings:

   $percentual=0.45;
   $bidfee=0.45;
   $up_diff=1;
   $up_diff_inv=5;
   $down_diff=1;
   $down_diff_inv=5;
   $secure_ticker=300.99500;
   $emacross=true;
   $emaShort=20;
   $emaLong=44;
   $emaDiff=5;
   $last_two_orders=false;
   $interval=60;
   $timeout=80;
   $sudden_mode=0;
   $reverse_prices=0;
   $manualstoploss=0;
   $dire=6;
   $dire_limbo=13;
   $vol_limbo=450.78526468;

seems stuck in a loop, and I believe it should have made a few sells already ?
member
Activity: 75
Merit: 10
HAL10K developer
January 07, 2014, 01:07:52 PM
#62
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?
newbie
Activity: 5
Merit: 0
January 07, 2014, 12:56:30 PM
#61
intrd, thank you for your quick reply Smiley

I have one more question (which I like to illustrate).

http://postimg.org/image/j785rn5wf/

This is while using Live Trading (with paper) with the following config:

Code:
	/* Custom trading algoritm parameters */
$percentual=0.6; //Minimum percentage of profit on the purchase (Use the current fee applied by MtGox);
$bidfee=0.6; //Just for simulation purposes (Use the current fee applied by MtGox);
$up_diff=5; //(sell) profit points (in USD) above the purchase price;
$up_diff_inv=0; //(sell) stop loss (in USD) below the purchase price;
$down_diff=2; //(buy) profit points (in USD) below the selling price;
$down_diff_inv=0; //(buy) stop loss (in USD) above the selling price;
$secure_ticker=300.99500; //Security value that prevents the bot to make sales below a certain value;
$emacross=true; //Turn on EMA crossover method (if emacross=true, Simple Market Direction Method automatically is turned off);
$emaShort=10; //EMA short period(in minutes because you are using $interval=60;) for EMA crossover method;
$emaLong=21; //EMA long period(in minutes because you are using $interval=60;) for EMA crossover method;
$emaDiff=0; //EMA difference between short and long crossover;
$last_two_orders=false; //Base next move on the last two transactions value;
$interval=10; //Bot loop interval (in seconds);
$timeout=80; //Timeout in seconds for completion of the bid/ask;
$sudden_mode=0; //When active, the bot makes a purchase at the sale price, or a sale at the purchase price. Used only when there is a need for immediate order processing. It will be disabled after the order is processed;
$reverse_prices=0; //Same as Sudden, but definite. It will never turned off;
$manualstoploss=0; //When active, in every action stop-loss requests remote confirmation of the bot operator;
$dire=6; //Amount of past intervals used in the identification of Simple Market Direction Method;
$dire_limbo=13; //Minimum variation (in USD) to define whether the direction is out of limbo or not (limbo: when the bot still trying to set the direction of the market);
$vol_limbo=450.78526468; //Minimum volume (in USD) to consider an abnormal change at the volume of an interval to another;

/* Backtesting and Paper trading */
$fake=true; //Turns on/off simulation (backtesting);
$paper=true; //Paper trading is simulation with Real Live Tickers but w/ fake money balance. (If Paper trading is true, $fake needs to be defined to "true");
$fake_btc_balance="2"; //Initial amount of BTC for the simulation;
$fake_btc_usd_buyedprice="990.80000"; //Initial purchase price of BTC (ATENTION: you need to set this value for Backtesting and Paper trading);
$fake_datetime_of_firstbid="2014-01-07 00:00:00"; //Initial datetime (same as first line of $fakegox_tickers file below)
$fakegox_tickers=$datadir."fakegox_tickers(test3).txt"; //Access http://bitcoincharts.com/charts/mtgoxUSD, set the period (must be a period that supports interval 1min), click Raw Data, copy/paste the contents of the table in a TXT file and replaces tabulations by "," comma);

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
newbie
Activity: 27
Merit: 0
January 07, 2014, 12:40:46 PM
#60
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?
member
Activity: 75
Merit: 10
HAL10K developer
January 07, 2014, 12:32:03 PM
#59
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 .

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:
newbie
Activity: 27
Merit: 0
January 07, 2014, 12:24:15 PM
#58
Strange, copynpaste here last lines of output..
I'm using everything by default, I haven't changed any value

Here we go, I only changed logged in, btc amount and usd amount:

Start time is: 07/01/2014 13:16:05,20

*** HAL_10K v2.2 beta 1 (by intrd)
$ Logged: xxxxx ( BTC: xxxxx / USD: xxxxx )
# Trading - fee: 0.45 - ( USD range down: 1 / up: 1 ) Interval secs: 60
# Ticker 24h -> High: 1044.20000 / Low: 956.00000 / Avg: 1006.53471 )
# Loop starting..
*** EMAShort / EMALong
*** High volume detected! 16302.40557269
*** Checking for open orders...  no orders.
$ 985.00000 bid @ 703 stoploss: 715 (last: bid @ 707 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 977.00001 bid @ 703 stoploss: 715 (last: bid @ 707 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 977.00001 bid @ 703 stoploss: 715 (last: bid @ 707 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 986.50000 bid @ 703 stoploss: 715 (last: bid @ 707 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 978.00000 bid @ 703 stoploss: 715 (last: bid @ 707 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 978.00000 bid @ 703 stoploss: 715 (last: bid @ 707 [loss])
*** EMAShort / EMALong
*** Checking for open orders...  no orders.
$ 979.00000 bid @ 703 stoploss: 715 (last: bid @ 707 [loss])
member
Activity: 75
Merit: 10
HAL10K developer
January 07, 2014, 12:20:02 PM
#57
Strange, copynpaste here last lines of output..
I'm using everything by default, I haven't changed any value
newbie
Activity: 27
Merit: 0
January 07, 2014, 12:17:52 PM
#56
I'm using everything by default, I haven't changed any value
member
Activity: 75
Merit: 10
HAL10K developer
January 07, 2014, 11:22:42 AM
#55
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. ¿?
Pages:
Jump to: