Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 4,942
» Latest member: LBN
» Forum threads: 858
» Forum posts: 4,198

Full Statistics

Online Users
There are currently 74 online users.
» 0 Member(s) | 74 Guest(s)

Latest Threads
Packers And Movers Best R...
Forum: General Discussion
Last Post: zoeymalik
Yesterday, 09:56 AM
» Replies: 0
» Views: 13
Complete Gekko's datasets...
Forum: General Discussion
Last Post: fadi0811
11-12-2019, 08:05 AM
» Replies: 22
» Views: 16,560
Issue : sometimes, Gekko ...
Forum: Technical Discussion
Last Post: npuchois
11-11-2019, 06:56 PM
» Replies: 0
» Views: 27
Importing csv files to Ge...
Forum: Feature Requests
Last Post: Humpty1988
11-10-2019, 04:31 PM
» Replies: 0
» Views: 35
First Start Error module....
Forum: Technical Support
Last Post: Mieko53
11-10-2019, 04:14 AM
» Replies: 9
» Views: 5,785
An official Gekko service...
Forum: Announcements
Last Post: mambotech
11-09-2019, 02:24 PM
» Replies: 32
» Views: 32,882
Cannot read property 'tim...
Forum: Technical Support
Last Post: mambotech
11-08-2019, 06:02 PM
» Replies: 0
» Views: 37
Coinase Pro
Forum: General Discussion
Last Post: mambotech
11-08-2019, 06:05 AM
» Replies: 0
» Views: 51
Ichimoku Indicator
Forum: Strategy Development
Last Post: ardialamwijaya
11-07-2019, 04:16 AM
» Replies: 13
» Views: 13,140
newbie set start fund and...
Forum: General Discussion
Last Post: mauroprojetos
11-06-2019, 04:40 PM
» Replies: 1
» Views: 327

 
  Can I use more than one stradegy in one Gekko?
Posted by: lutianzhou001 - 09-29-2019, 02:03 AM - Forum: Feature Requests - No Replies

In the real market there will be more than one stradegy combined. Can I choose more than one stradegy and backtest them and use them into one Gekko in the real market ? For example I will combine MACD and RSI ,which means both MACD and RSI give the signal to buy, I will buy , or , I won't buy.


  Unable to install talib
Posted by: mbeeks999 - 09-25-2019, 06:03 PM - Forum: Technical Support - No Replies

Hi all,

I am unable to install talib in my gekko directory. It will provide me with the following error code:

Code:
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /Users/martijnbeeks/anaconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:389:11)
gyp ERR! stack     at Socket.emit (events.js:198:13)
gyp ERR! stack     at Pipe._handle.close (net.js:606:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure"
gyp ERR! cwd /Users/martijnbeeks/ProjectY/gekko-develop/talib
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! talib@1.1.2 install: `node ./src/lib/build.js && node-gyp configure && node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the talib@1.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Does anyone know what I am doing wrong? I am somehow thinking it interferes with Python and I completely removed Python but it was still not working.

Thanks in advance, 

Martijn


  trade with 50%
Posted by: MPrunner - 09-20-2019, 06:08 AM - Forum: Guides - Replies (3)

Hi,

i am new with gekko, but it works now :-)
i want to run 2 gekkos with one trading account. So i have to limit each gekko to a trading amount of 50% ?

can anybody tell me in simple words (i am not a programmer, i read some articles about this but didn't understand it ) where i can tell gekko to trade only with 50% of my amount ?

thank you so much

Mike


  What's the variable holding the last filled buy order price?
Posted by: orpheous - 09-20-2019, 02:30 AM - Forum: General Discussion - Replies (1)

Is there a feature that holds the last filled buy order price that I can include in my strategy?


Exclamation How to retrieve balance
Posted by: PGTART - 09-14-2019, 01:45 PM - Forum: Technical Discussion - No Replies

So far I've not seen any strategy looking at the personal balance, or any coding example.
ea all  gains of trades are estimated upon candle.close math

Which is nice but at some point one could be trough all his/her invested money.
So my question how to retrieve the current balance (after a short).

Also where to set the starting balance.

Otherwise, lots of strategies dont make sense, i mean it's nice to have invested 1000 euro.
But when one loses 1500 euro in a trade and then next make 3000 profit then that could never have happened (since you where broke allready).

It seems quite vital to know the current balance.
And i would like to handle this in my strategies.


  We are hiring a node.js dev who has experience with gekko
Posted by: kodjima33 - 09-12-2019, 01:47 PM - Forum: Third Party Software - No Replies

Hey guys! We are looking for a backend developer who has experience in:
-gekko 
-node.js 
-postgreSQL.
I am a product owner in Fund Platform - software for crypto fund managers. We have an algotrading feature so that customers can connect their exchanges and write algorithms using gekko.


Hope we can find somebody here.  I am really sorry for an off-topic post. 
 My telegram is: @ceofundplatform

Horly payments up to $25/hour


  Gekko Docker
Posted by: Stixx - 09-12-2019, 08:17 AM - Forum: Technical Support - No Replies

Thanks for this awesome program. I am trying to install this on unraid using docker but have a couple of questions, is there a way to make it persist so I can recreate the container and keep settings?
Also when the container restarts the strat runners stop, is there a way to resume where you left off?


  candlestickTrader (new)
Posted by: PGTART - 09-11-2019, 12:17 PM - Forum: Strategy Development - No Replies

So you've seen some youtube or red some books and thought Candle sticks are hot.
Oh well, I did for a while and stumbled upon some code on the internet, bug fixed it, and then extended it to trade basically.
This is not optimal code yet,. I wrote lots of comments in it,
So someone may find the time to expand upon this one, to improve the results.

I share candlestickTrader as a raw version of code with lots of comments.
I have less time to work out this one, but I hope someone else can continue on it.



Notice some functions I already added into in the code but currently are not used.

So bugs where resolved it does trade on candles,
But I think the whole idea behind candlestick patterns is flawed (oversimplified)  and not all of the theory behind is used
See partly my comments about it in the code, also some parts made no sense to me as I didn't understood it, your welcome to enlight me

This is not yet a good trading bot, but yes it does do candle trading (mostly).

Notice also that this strategy creates csv log files, for research and debugging (in the main Gekko folder)
Since Gekko doesn't show candlesticks, I figured you may like to see the raw data in Excel or Calc to verify this kind of trading.

Read the comments in the code before asking about this strategy
The comments contain lots of info.
I know this is not a very good trader at the moment, but it might be a good starting point to create one
As essentially the candle patterns are derived from the market in this piece of code.
 
There is no TOML file included, so I enforce you to alter the code if you like to change values, (it doesn't readout a toml file currently).

Oh one warning
Trading on Doji is highly risky
While it does spot a Doji, I decided not to trade on it.. (told earlier the theory isn't fully used)
Doji trading requires more market info and is better avoided if you don't know what to look for.
I got many thoughts about that, but I let you free to code that yourself
You can share your code here if you got something working stable on it.
Just didn't want to put people into high risks.

code can be found here: https://github.com/PGTBoos/GekkoStrategies


Question Understanding the Gekko MACD strategy
Posted by: Thluks - 09-11-2019, 11:11 AM - Forum: General Discussion - No Replies

How do I get the MACD strategy to create a buy or sell order at the exact time of the crossover?

I'm looking at a 12/26/9 MACD with 30min candles on TradingView.com. It seems pretty clear to me when to buy and when to sell and make good profits, but of course I don't want to do that 24/7.

Trying to replicate that in Gekko, I'm thinking if I set the thresholds to 0 or a very small number like 0.00025 it should then react immediately on the crossover (with persistence = 0). But the backtest result doesn't seem to match up with the cross overs I see on TradingView. Buy and sell signals are all over the place.

Is there a way to see the MACD lines that Gekko is using to generate the signals, in the web UI? That would help a lot to understand and tweak.

Thanks!


  Inverse Fisher RSI Strat- only returns false.
Posted by: lucascostner - 09-11-2019, 01:27 AM - Forum: Strategy Development - Replies (2)

Hey everyone- hope you can help me out with this. I've been revisiting an old strategy post from a year or so ago. So this doesn't generate any errors when I run it, but something is off because the IFRSI indicator never returns anything. When I console.log to print the result as it runs it always comes back with "false"- it should be returning 0.5 or -0.5. Anyone have any advice for me on this? The two required indicators and the strategy file are below.....


Here is the first indicator:



/indicators/IFTRSI.js   


Code:
var RSI = require('./RSI.js');
var WMA = require('./WMA.js');

var Indicator = function(config) {
 this.result = false;
 this.rsiInterval = config.interval;
 this.wmaLength = config.length;
 this.rsi = new RSI({interval: this.rsiInterval});
this.wma = new WMA({length: this.wmaLength});
}

Indicator.prototype.update = function (candle) {
 this.rsi.update(candle);
 if (this.rsi.result) {
   let v1 = 0.1 * (this.rsi.result - 50);
   this.wma.update(v1);

   if (this.wma.result) { 
       this.result = (Math.exp(2 * this.wma.result)-1) / (Math.exp(2 * this.wma.result)+1);
   }
 }
}

module.exports = Indicator;


Here is the second indicator-


 /indicators/WMA.js


Code:
var Indicator = function(settings) {
   this.input = 'price';
   this.windowLength = settings.length;
   this.prices = [];
   this.result = 0;
   this.age = 0;
   this.sum = 0;
}

Indicator.prototype.update = function(price) {
   var tail = this.prices[this.age] || 0;
   this.prices.push(price);


   var psum =0;
   var pdiv = 0;

   for (var j=0;j<this.prices.length;j++)
   {

       psum += j * this.prices[j];
       pdiv += j;

   }

   this.result = psum/pdiv;
   if (this.prices.length > this.windowLength)
   {
       this.prices.shift()

   }

   this.age = (this.age + 1) % this.windowLength
}

module.exports = Indicator;

And here is the strategy file--


/strategies/IFRSI.js

Code:
var method = {};
var traded = false;
var IFTRSI = require('./indicators/IFTRSI.js');
method.init = function() {
    var iftrsiParameters = {rsiInterval: 14, wmaLength: 8};
    this.addIndicator('iftrsi', 'IFTRSI', iftrsiParameters);
    
}
method.update = function(candle) {
    this.indicators.iftrsi.update(candle);
  
}
method.check = function(candle) {
    var iftResult = this.indicators.iftrsi.result;

    console.log(iftResult);

if ( traded == false && iftResult == -0.5 ){
    this.advice('long')
    traded = true;
    console.log(iftResult);
} else if(traded == true && iftResult == 0.5 ){
    this.advice('short')
    console.log(iftResult);
    traded = false;
}
}


module.exports = method;