ironstove
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 111
Merit: 10
Possibilities are limitless
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 14, 2013, 05:01:49 AM |
|
Hi, great that you've implemented a bot for BTC-e, I'll start helping with the testing/debugging... Looks like fun.
|
|
|
|
ewibit
Legendary
Offline
Activity: 2955
Merit: 1050
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 18, 2013, 03:58:22 PM |
|
Hi nomorecoin is it not possible to run multiple instances with multiple currencies? I get always Traceback (most recent call last): File "Application.py", line 40, in <module> runLoop() File "Application.py", line 23, in runLoop trader.update() File "/home/ewi/Downloads/tAPIbot/LTC_USD_tapi/trader.py", line 62, in update self.tradeData = self.tapi.update() File "/home/ewi/Downloads/tAPIbot/LTC_USD_tapi/api.py", line 24, in update self.tradeData['funds'] = output['funds'] TypeError: 'NoneType' object has no attribute '__getitem__'
or is there another problem the reason for this? TIA
|
|
|
|
erk
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 19, 2013, 12:11:48 AM |
|
Can this bot be run in the command line in a text mode, or does is require a GUI? eg. x11 on Ubuntu. I am planning on using a headless Ubuntu server with no mouse, monitor, keyboard. When I try and run it I get an error as if it want's X11 File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable
|
|
|
|
billotronic
Legendary
Offline
Activity: 1610
Merit: 1000
Crackpot Idealist
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 19, 2013, 12:47:17 AM |
|
Hi nomorecoin is it not possible to run multiple instances with multiple currencies? I get always Traceback (most recent call last): File "Application.py", line 40, in <module> runLoop() File "Application.py", line 23, in runLoop trader.update() File "/home/ewi/Downloads/tAPIbot/LTC_USD_tapi/trader.py", line 62, in update self.tradeData = self.tapi.update() File "/home/ewi/Downloads/tAPIbot/LTC_USD_tapi/api.py", line 24, in update self.tradeData['funds'] = output['funds'] TypeError: 'NoneType' object has no attribute '__getitem__'
or is there another problem the reason for this? TIA It's mentioned some where in here that he recommends use a separate account per instance. This was cited as a precaution of over buying/selling a shared currency. The advice might also apply to your situation. It would be easy enough to test at least. Can this bot be run in the command line in a text mode, or does is require a GUI? eg. x11 on Ubuntu. I am planning on using a headless Ubuntu server with no mouse, monitor, keyboard. When I try and run it I get an error as if it want's X11 File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable
It does not look like it. Might be worth a pm to the author (have not seen him on this thread in a while)
|
|
|
|
sal002
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 07, 2013, 08:18:32 PM |
|
Hello, Maybe you can add on settings.ini something like this: ThresholdBuy = 0.02 ThresholdSell= 0.02 and on trader.py if signalType == 'dual': # lines cross each other = trade signal if self.signals.fastMA.value > self.signals.slowMA.value*(1+self.ThresBuy): print'Market trending up' self.log.info('Market trending up') #investigate #if self.shortPosition: self.placeBid() elif self.signals.fastMA.value*(1-self.ThresSell) < self.signals.slowMA.value: print'Market trending down' self.log.info('Market trending down') if not self.shortPosition: self.placeAsk() Cheers, There is a fee setting in the ini - maybe someone could come up with some code to implement it?
|
|
|
|
ewibit
Legendary
Offline
Activity: 2955
Merit: 1050
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 09, 2013, 11:54:23 AM |
|
feedback: now I have run the bot for ~2 weeks with the default options start was with USD: 0.00 BTC: 1.00 now after xxx trades result is: Available Balances: USD: 0.02570973 BTC: 0.96450296
means, that there has to be some options to change but which? ![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
|
|
|
|
syphen
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 102
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 29, 2013, 05:49:53 AM |
|
I keep getting error parsing trades error when I run application.py
|
|
|
|
piotars_kbw
Newbie
Offline
Activity: 5
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 29, 2013, 09:10:37 PM Last edit: July 30, 2013, 07:21:34 AM by piotars_kbw |
|
Since yesterday, I have the same problem. It just stop working: ( The configuration has not been changed, the software also unchanged.
EDIT:
Already running, it looks like it's a problem with btc-e api.
|
|
|
|
daybyter
Legendary
Offline
Activity: 965
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 11, 2013, 11:56:52 AM |
|
No promises, but I'll try to set aside some time to make a few changes.
Edit: if you got the generic "Error parsing trades", that is likely the API failing to respond. I didn't/don't have great exception handling going on.
Check the HTTP response code. It's most likely 504 with some HTML from cloudflare, or so...
|
|
|
|
ewibit
Legendary
Offline
Activity: 2955
Merit: 1050
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 11, 2013, 02:47:54 PM |
|
Traceback (most recent call last): File "Application.py", line 57, in <module> runLoop() File "Application.py", line 33, in runLoop trader.update() File "/home/xxx/xx/trader.py", line 113, in update self.evalOrder() File "/home/xxx/xx/trader.py", line 177, in evalOrder self.placeAsk() File "/home/xxx/xx/ line 256, in placeAsk order = self.placeOrder('sell',rate,amount) NameError: global name 'amount' is not defined
|
|
|
|
ewibit
Legendary
Offline
Activity: 2955
Merit: 1050
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 13, 2013, 10:40:21 AM |
|
thx but now I get always Order returned error:/n You incorrectly entered one of fields. which field?
|
|
|
|
jago25_98
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 13, 2013, 01:37:06 PM |
|
Am I right in thinking that EMA is the only (reliable) bot method for btc?
|
Bitcoiner since the early days. Crypto YouTube Channel: Trading Nomads | Analyst | News Reporter | Bitcoin Hodler | Support Freedom of Speech!
|
|
|
daybyter
Legendary
Offline
Activity: 965
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 13, 2013, 04:57:48 PM |
|
Arb is better methinks?
|
|
|
|
ewibit
Legendary
Offline
Activity: 2955
Merit: 1050
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 16, 2013, 08:07:04 PM |
|
Edit: if you'd like to do some testing, uncomment either or both of the following from tapi/trader.py: #amount = round((balance/rate),3)
#amount = amount - 0.00001
I have uncommented both an get the same again Volatility is 1.86% Market trending up Order returned error:/n You incorrectly entered one of fields. Signal Spread: 0.73%
|
|
|
|
MCT
Newbie
Offline
Activity: 6
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 26, 2013, 05:13:51 PM |
|
Nice piece of code BUT you really have to fetch candles via bitcoincharts api. The last 150 trades are just a too small timeframe to build MAs on. I tried several options but only loosing money due to wrong signals.
Please consider at least to download the last ~100 hours of tradedata from the bitcoincharts api and calculate hourly close prices.
Then we could use crossing averages strategies on those pseudocandles.
|
|
|
|
ewibit
Legendary
Offline
Activity: 2955
Merit: 1050
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 26, 2013, 05:41:42 PM |
|
I tried several options but only loosing money due to wrong signals.
for me the same..
|
|
|
|
billotronic
Legendary
Offline
Activity: 1610
Merit: 1000
Crackpot Idealist
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 27, 2013, 04:19:35 PM |
|
Nice piece of code BUT you really have to fetch candles via bitcoincharts api. The last 150 trades are just a too small timeframe to build MAs on. I tried several options but only loosing money due to wrong signals.
Please consider at least to download the last ~100 hours of tradedata from the bitcoincharts api and calculate hourly close prices.
Then we could use crossing averages strategies on those pseudocandles.
The program is open source. Feel free to make changes. I've long wanted to properly abstract the API portion, but haven't found the time to do so. I will add this to my possible todo list though. Nice to see you working on this again bud!
|
|
|
|
MCT
Newbie
Offline
Activity: 6
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 02, 2013, 10:48:31 AM Last edit: October 02, 2013, 12:57:00 PM by MCT |
|
Anyone else has problems with placing orders on btc_usd?
Sometimes it just does nothing when it says market trending up and sometimes it says not enough usd.
|
|
|
|
dna2
Newbie
Offline
Activity: 33
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 11, 2013, 09:34:49 PM |
|
If anyone is testing this with PPC_BTC, add the following in trader.py:
def getPip(self): '''provides correct minimum pip for orders, BTC-e specific''' pair = self.config.pair if 'ltc' in pair or 'nmc' in pair or 'ppc' in pair: return 0.00001 else: return 0.001
|
|
|
|
ravagetheearth
Newbie
Offline
Activity: 27
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 19, 2013, 04:12:51 AM |
|
Edited thread title to inactive. Other projects have been consuming my time.
That saddens me ![Embarrassed](https://bitcointalk.org/Smileys/default/embarrassed.gif) Good luck with your other projects though ![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
|
|
|
|
|