Bitcoin Forum
May 28, 2024, 01:44:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [ANN] cointelligence.net - Create / test strategies for free online bot  (Read 2788 times)
csupnig (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile WWW
January 25, 2014, 12:59:42 AM
Last edit: January 25, 2014, 07:40:32 PM by csupnig
 #21

So I started toying with strategies again and while I wasn't able to actually turn a profit using the preset Aroon strategy, I did see some positive results when I applied it to intervals of a few days.
It  seemed to do a very good job of detecting entry and exit points (in backtesting); I think that the only reason it wasn't profitable was because of the binary trade execution (i.e. sell 100% once signal is determined and vice versa). I'd like to use the code as a starting point and try to add a basic algorithm to make incremental buys and sells rather than all or nothing. I'm pretty sure that by just adding a set of a few simplistic rules you could turn the algo profitable.

The one thing that I'm a little confused on is the MathUtil.Aroon method. First, in the code I see three parameters: high, low, 22 - what is the 22 for? Also I'm not sure exactly how the overarching code uses the call to this method to make trades. From the code, it seems like you're just getting the aroon.up and aroon.down, finding the difference and then calling a buy or sell method depending on whether the result is positive or negative.

I have to imagine that's pretty close to what's happening, but I know I'm missing something. For instance, if that was the case then a trade would be initiated at every interval except for the case where aroon.up = aroon.down, which I would think would be fairly uncommon. But the strategy is obviously not making trades at every interval so I know that there has to be more to it than that. Maybe you could help point me in the right direction? Thanks!

Hi Smiley

You're correct, that the aroon strategy does not work very well on short periods. I implemented it as a first draft to test my aroon code in the MathUtil class. I think if you combine it with a volume based oscilator like the MFI (that I will hopefully implement tomorrow - depending on how my time schedule and the work on some other features work out), it could work very well!

To answer your questions:
The parameters for AROON are - high (an array of the high-elements of the last candles), low (an array of the low-elements of the last candles, 22 is the period (on how many candles the AROON should look at).
You are absolutely correct, that in this implementation, the aroon strategy would be making a trade at every interval it is even calling the buy/sell methods on the portfolio, but the portfolio will not execute the buy/sell order if you don't have the needed funds (e.g. if you already bought LTC and don't have any USD left). So it will always execute the orders on the first change in trends. If you want to read up more on this technical indicator, you can do that here: http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:aroon.

I hope that I could give you the right pointers, so that you can continue on your investigation Wink
thaReal
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
January 25, 2014, 05:58:04 PM
 #22

Wow, yes that was a fantastic explanation. Exactly what I was looking for - I can take a look at what the aroon outputs are (now that I know how the method works) and try to better range the entry and exit conditions. Thanks for your reply - I'll see what I can do with this info and post back if I have any success.
csupnig (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile WWW
January 25, 2014, 10:42:33 PM
 #23

Update 4
  • Fixed the volume fetchend from btce. Up to now we always had the volume of the last 24 hours. Now we have the correct volume of the period.
  • We are now using a proper online javascript editor (http://ace.c9.io/) for creating/editing strategies. It should make things easier now.
  • Implemented MFI (it is now available in the MathUtils)
  • Added a test strategy for AROON and MFI (it is not tuned yet... maybe you want to help?)
csupnig (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile WWW
January 25, 2014, 10:56:15 PM
 #24

Does anyone know a proper way to package, combine and minify javascript with node.js so that it can easily be done during a deployment process? I would love to implement this, so that you don't have to clear the caches/hard refresh on every update.

I would be very thankful for suggestions Wink
shark255
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
January 27, 2014, 03:18:07 PM
 #25

2csupnig what time interval do you mean saying "aroon strategy does not work very well on short periods"?

Cause there is example, where aroon works well on 1h interval - https://cryptotrader.org/backtests/LucuYKZW59fvjZqpC
csupnig (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile WWW
January 27, 2014, 05:41:31 PM
 #26

2csupnig what time interval do you mean saying "aroon strategy does not work very well on short periods"?

Cause there is example, where aroon works well on 1h interval - https://cryptotrader.org/backtests/LucuYKZW59fvjZqpC

I was talking about a 1-5 minute interval. But I guess that I have to partly take that back, because yesterday a 5 minute interval on the ARRON/MFI combination was working very well for me.
shark255
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
January 27, 2014, 07:02:30 PM
 #27

Thanks for reply. Hm.. i cant find AROON/MFI strategy on this page http://www.cointelligence.net/#/strategies. Is it possible to view it logic?
csupnig (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile WWW
January 27, 2014, 09:29:39 PM
 #28

Thanks for reply. Hm.. i cant find AROON/MFI strategy on this page http://www.cointelligence.net/#/strategies. Is it possible to view it logic?

Hi, I put it on the strategies list now Smiley Maybe you can check it out and tune it a bit Wink
csupnig (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile WWW
March 26, 2014, 07:59:01 PM
 #29

I just deployed a major update.... Please let me know if you run into any issues Wink

Update 5
  • Fixed rounding error that caused market API requests to fail
  • We are now combining and minifying the JavaScript files.
  • We are now combining and minifying the CSS files
  • We are now using a better modular implementation pattern that will allow us to soon run our code both in the browser and the server.
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!