Pages:
Author

Topic: Isis ATP [Automated Trading Platform] - Discussion - page 12. (Read 45225 times)

legendary
Activity: 2955
Merit: 1049
The most recent commit is giving me the following error:
I cleared too my previous prefs and started over again and get always
Code:
ERROR: Caught unexpected exception, shutting down MtGox trend following trading agent now!. Details are listed below.
org.codehaus.commons.compiler.CompileException: Line 1, Column 14: Unexpected token ";"
at org.codehaus.janino.ExpressionEvaluator.makeStatements(ExpressionEvaluator.java:288)
at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:454)
at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:345)
at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:194)
at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:80)
at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:72)
at org.codehaus.janino.ExpressionEvaluator.(ExpressionEvaluator.java:100)
at org.aido.atp.TrendTradingAgent.evalLogic(TrendTradingAgent.java:612)
at org.aido.atp.TrendTradingAgent.run(TrendTradingAgent.java:343)
at java.lang.Thread.run(Unknown Source)
and
Code:
ERROR: Caught unexpected exception, shutting down Bitstamp trend following trading agent now!. Details are listed below.
org.codehaus.commons.compiler.CompileException: Line 1, Column 14: Unexpected token ";"
at org.codehaus.janino.ExpressionEvaluator.makeStatements(ExpressionEvaluator.java:288)
at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:454)
at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:345)
at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:194)
at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:80)
at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:72)
at org.codehaus.janino.ExpressionEvaluator.(ExpressionEvaluator.java:100)
at org.aido.atp.TrendTradingAgent.evalLogic(TrendTradingAgent.java:612)
at org.aido.atp.TrendTradingAgent.run(TrendTradingAgent.java:343)
at java.lang.Thread.run(Unknown Source)
newbie
Activity: 23
Merit: 0
The most recent commit is giving me the following error:

Code:
Exception in thread "main" java.lang.NullPointerException
at org.aido.atp.Application.start(Application.java:121)
at org.aido.atp.Application.main(Application.java:76)

I cleared my previous prefs and started over, that did the trick.
newbie
Activity: 23
Merit: 0
The most recent commit is giving me the following error:

Code:
Exception in thread "main" java.lang.NullPointerException
at org.aido.atp.Application.start(Application.java:121)
at org.aido.atp.Application.main(Application.java:76)
sr. member
Activity: 248
Merit: 250
1. Collect underpants 2. ? 3. Profit
The XChange Java library takes care of communications with these exchanges. Maybe an issue should be raised.


legendary
Activity: 2955
Merit: 1049
sorry again, how to add this special nonce POST parameter in Aido ATP for BTC-e?
http://pastebin.com/jyd9tACF

and on Bitstamp I get this error

Code:
ERROR: Caught unexpected exception, shutting down Bitstamp trend following trading agent now!. Details are listed below.
com.xeiam.xchange.NotAvailableFromExchangeException: Placing market orders not supported by Bitstamp API.
at com.xeiam.xchange.bitstamp.service.trade.polling.BitstampPollingTradeService.placeMarketOrder(BitstampPollingTradeService.java:77)
at org.aido.atp.TrendTradingAgent.marketOrder(TrendTradingAgent.java:554)
at org.aido.atp.TrendTradingAgent.evalAsk(TrendTradingAgent.java:432)
at org.aido.atp.TrendTradingAgent.run(TrendTradingAgent.java:344)
at java.lang.Thread.run(Unknown Source)
TIA
legendary
Activity: 965
Merit: 1000
I guess the nonce is created by the app...?
legendary
Activity: 2955
Merit: 1049
how to add
API Description Authentication on BTC-e?
https://btc-e.com/page/2

sorry, I don`t understand how this works (it works not as easy as on other exchanges   Sad  )
----------------
All requests must also include a special nonce POST parameter with increment integer. (>0)
----------------
what have I to do with this special nonce POST parameter?

I have the key and the secret and then?
...
TIA
newbie
Activity: 31
Merit: 0
That was it, thank you!
sr. member
Activity: 248
Merit: 250
1. Collect underpants 2. ? 3. Profit
Code:
 
  

Trade logic in prefs.xml file does not look correct.

& should probably read &&

I would imagine you edited the file manually rather than using the --clear-config option.
newbie
Activity: 31
Merit: 0
PROBLEM: ERROR: Caught unexpected exception, shutting down MtGox trend following trading agent now!. Details are listed below.
org.codehaus.commons.compiler.CompileException: Line 1, Column 14: Unexpected token ";"

SOLUTION: AskLogic/BidLogic HTML entity format error

-------------------------------------------------------------------------------------------------------

Has anyone ran into this yet? JDK7 , latest bin from git:

Code:
2013-02-18 12:46:38,665 : Arbitrage Engine cannot find a profitable opportunity on MtGox at this time.
2013-02-18 12:46:38,685 : MtGox High USD :-  Last: USD 26.85000 | Bid: USD 26.80270 | Ask: USD 26.85000 | Volume: 38208 | Currency: BTC | TimeStamp: Mon Feb 18 12:18:25 MST 2013
2013-02-18 12:46:38,685 : MtGox Low USD :-  Last: USD 26.71000 | Bid: USD 26.78582 | Ask: USD 26.84899 | Volume: 37315 | Currency: BTC | TimeStamp: Mon Feb 18 12:42:28 MST 2013
2013-02-18 12:46:38,685 : MtGox Current USD :-  Last: USD 26.81898 | Bid: USD 26.75000 | Ask: USD 26.81897 | Volume: 36900 | Currency: BTC | TimeStamp: Mon Feb 18 12:46:38 MST 2013
2013-02-18 12:46:38,689 : MtGox USD Ticker Size: 45
2013-02-18 12:46:38,690 : MtGox Advance/Decline Spread algorithm has determined that the USD market is trending up.
2013-02-18 12:46:38,699 : MtGox EMA algorithm has determined that the USD market is trending up.
2013-02-18 12:46:38,700 : MtGox SMA algorithm has determined that the USD market is trending down.
2013-02-18 12:46:38,701 : ERROR: Caught unexpected exception, shutting down MtGox trend following trading agent now!. Details are listed below.
org.codehaus.commons.compiler.CompileException: Line 1, Column 14: Unexpected token ";"
        at org.codehaus.janino.ExpressionEvaluator.makeStatements(ExpressionEvaluator.java:288)
        at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:454)
        at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:345)
        at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:194)
        at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:80)
        at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:72)
        at org.codehaus.janino.ExpressionEvaluator.(ExpressionEvaluator.java:100)
        at org.aido.atp.TrendTradingAgent.evalLogic(TrendTradingAgent.java:612)
        at org.aido.atp.TrendTradingAgent.run(TrendTradingAgent.java:343)
        at java.lang.Thread.run(Thread.java:722)
2013-02-18 12:46:38,709 : ERROR: Caught unexpected exception, shutting down MtGox trend following trading agent now!. Details are listed below.
org.codehaus.commons.compiler.CompileException: Line 1, Column 12: Unexpected token ";"
        at org.codehaus.janino.ExpressionEvaluator.makeStatements(ExpressionEvaluator.java:288)
        at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:454)
        at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:345)
        at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:194)
        at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:80)
        at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:72)
        at org.codehaus.janino.ExpressionEvaluator.(ExpressionEvaluator.java:100)
        at org.aido.atp.TrendTradingAgent.evalLogic(TrendTradingAgent.java:612)
        at org.aido.atp.TrendTradingAgent.run(TrendTradingAgent.java:345)
        at java.lang.Thread.run(Thread.java:722)
2013-02-18 12:46:38,710 : MtGox Trend following trading agent has decided no USD action will be taken at this time.

Here is the pref's:
Code:



  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
sr. member
Activity: 248
Merit: 250
1. Collect underpants 2. ? 3. Profit

Still getting this error tho

java.lang.NullPointerException
.
.
.
Edit: Looks like something to do with arbitrage

This should fix it:


commit e053916740e950121b743dc70608b678fd47e08e

    Fixed NullPointerException in ArbitrageEngine
sr. member
Activity: 248
Merit: 250
1. Collect underpants 2. ? 3. Profit
java.lang.NullPointerException
        at org.aido.atp.ArbitrageEngine.getInstance(ArbitrageEngine.java:56)
        at org.aido.atp.TickerManager.checkTick(TickerManager.java:161)
        at org.aido.atp.PollingTickerManager.getTick(PollingTickerManager.java:56)
        at org.aido.atp.TickerManager.run(TickerManager.java:90)
        at java.lang.Thread.run(Thread.java:722)
2013-02-11 03:18:59,101 : ERROR: Caught unexpected MtGox exception, ticker manager shutting down now!. Details are listed below.

I suggest disabling arbitrage for the time being. I have not changed or tested the arbitrage functionality for several versions now and have it disabled as I question it's profitability.

However, regardless of it's profitability, it should not be causing a NullPointerException so I will investigate this when I get time.
sr. member
Activity: 290
Merit: 250
Still getting this error tho

java.lang.NullPointerException
        at org.aido.atp.ArbitrageEngine.getInstance(ArbitrageEngine.java:56)
        at org.aido.atp.TickerManager.checkTick(TickerManager.java:161)
        at org.aido.atp.PollingTickerManager.getTick(PollingTickerManager.java:56)
        at org.aido.atp.TickerManager.run(TickerManager.java:90)
        at java.lang.Thread.run(Thread.java:722)
2013-02-11 03:18:59,101 : ERROR: Caught unexpected MtGox exception, ticker manager shutting down now!. Details are listed below.

Copy of prefs.xml


http://java.sun.com/dtd/preferences.dtd">

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


Edit: Looks like something to do with arbitrage

sr. member
Activity: 290
Merit: 250
Even if I enter those examples through Interactive Mode (i.e. without editing the prefs.xml by hand) I still receive the above errors.

I think I know what your problem may be. Can you please show me the BidLogic and AskLogic from your prefs.xml file exactly as they are. In the config file all & characters are converted to HTML character codes i.e. &

So when you type this in interactive mode:
Code:
ADS_Down && EMA_Up && SMA_Up

The config file will look like this:
Code:
ADS_Down && EMA_Up && SMA_Up


Ahh... I must have confused myself with all the terminals I have open.

I interactively entered the codes again and the ampersands where converted correctly.

Thanks again,
Ric
sr. member
Activity: 248
Merit: 250
1. Collect underpants 2. ? 3. Profit
Even if I enter those examples through Interactive Mode (i.e. without editing the prefs.xml by hand) I still receive the above errors.

I think I know what your problem may be. Can you please show me the BidLogic and AskLogic from your prefs.xml file exactly as they are. In the config file all & characters are converted to HTML character codes i.e. &

So when you type this in interactive mode:
Code:
ADS_Down && EMA_Up && SMA_Up

The config file will look like this:
Code:
ADS_Down && EMA_Up && SMA_Up


Wow, I take a little break from Bitcoin and see Aido all over this.

Great job man!

...

I have to agree.  Thanks, Aido, for taking initiative on this.  (Even if I don't use it anymore, lol)

Thank you both very much.
sr. member
Activity: 322
Merit: 250
Wow, I take a little break from Bitcoin and see Aido all over this.

Great job man!

...



I have to agree.  Thanks, Aido, for taking initiative on this.  (Even if I don't use it anymore, lol)
sr. member
Activity: 290
Merit: 250

2013-02-06 18:46:42,819 : ERROR: Caught unexpected exception, shutting down MtGox trend following trading agent now!. Details are listed below.
org.codehaus.commons.compiler.CompileException: Line 0, Column 0: Unexpected token "End-Of-File" in primary

This would suggest a problem with your trade logic. Try some simple logic first like that described in the README:
Code:
ADS_Down && (EMA_Up && SMA_Up)


Thanks for your response.

You are correct... I didn't have bid or ask logic  Undecided

When I entered the samples from the readme. I get an incorrect prefs.xml format and it moves it to IncorrectFormatPrefs.xml.

root@vps:~/aido# java -jar aidoatp.jar --simulation-mode=true
Feb 11, 2013 1:32:14 AM java.util.prefs.FileSystemPreferences$6 run
WARNING: Invalid preferences format in /root/.java/.userPrefs/org/aido/atp/prefs.xml
2013-02-11 01:32:14,899 : No config file could be found.
2013-02-11 01:32:14,906 : Beginning Interactive Mode

Even if I enter those examples through Interactive Mode (i.e. without editing the prefs.xml by hand) I still receive the above errors.

Thanks,
Ric
sr. member
Activity: 248
Merit: 250
1. Collect underpants 2. ? 3. Profit
Invalid or corrupt jarfile isis.jar

This error suggests the jar file did not download correctly. Try downloading again and compare file size against file size github reports.



2013-02-06 18:46:42,819 : ERROR: Caught unexpected exception, shutting down MtGox trend following trading agent now!. Details are listed below.
org.codehaus.commons.compiler.CompileException: Line 0, Column 0: Unexpected token "End-Of-File" in primary

This would suggest a problem with your trade logic. Try some simple logic first like that described in the README:
Code:
ADS_Down && (EMA_Up && SMA_Up)



What are some examples of Bid Logic & Ask Logic I could use.
As above example from README, AskLogic:

Code:
ADS_Down && EMA_Up && SMA_Up

and BidLogic:

Code:
ADS_Up && EMA_Down && SMA_Down
sr. member
Activity: 364
Merit: 250
I'm new to programming but I have been unable to open either AidoATP.jar or isis.jar.  Trying to open in Eclipse IDE. 

Can't even run the script.  running oracleJDK7. 

Invalid or corrupt jarfile isis.jar

Again, newb, all help is very much appreciated.  This program has motivated me to pick up my programming again after 13 years.  Turbo Pascal was my last one. 

Cheers,
me
sr. member
Activity: 290
Merit: 250
Wow, I take a little break from Bitcoin and see Aido all over this.

Great job man!

Getting errors with the latest jar.

2013-02-06 18:46:42,819 : ERROR: Caught unexpected exception, shutting down MtGox trend following trading agent now!. Details are listed below.
org.codehaus.commons.compiler.CompileException: Line 0, Column 0: Unexpected token "End-Of-File" in primary
 

TIA,
Ric
Pages:
Jump to: