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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 28,476
» Latest member: go8811
» Forum threads: 1,541
» Forum posts: 8,064

Full Statistics

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

Latest Threads
Gekko development status ...
Forum: Announcements
Last Post: kontho
1 hour ago
» Replies: 1,006
» Views: 930,886
Gekko with malware spotte...
Forum: Announcements
Last Post: Dstewarts
1 hour ago
» Replies: 189
» Views: 170,054
Gekko 0.6 released
Forum: Announcements
Last Post: Pharagon
11-23-2024, 10:13 AM
» Replies: 122
» Views: 269,007
An official Gekko service...
Forum: Announcements
Last Post: drivemad2
11-22-2024, 07:24 AM
» Replies: 103
» Views: 189,795
New Gekko UI in the works
Forum: Announcements
Last Post: clduplicateremover
11-18-2024, 08:21 PM
» Replies: 174
» Views: 227,606
How to Soft Reset or Hard...
Forum: General Discussion
Last Post: lucifar
10-07-2021, 07:18 PM
» Replies: 22
» Views: 53,003
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 108,363
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 19,108
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 45,822
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 58,575

 
  BacktestTool - batch backtest, import and strategy parameters optimalization
Posted by: xFFFFF - 02-27-2018, 12:22 AM - Forum: Third Party Software - Replies (106)

I present Gekko's BacktestTool. Script written in Perl.

How it's work?
The tool allows you to perform multiple backtests on previously defined multiple pairs, strategies and candleSize. All you have to do is enter your variables into the configuration file and run the program. Then BacktestTool will perform all the tasks you have ordered. Results are printed as terminal output and saved in csv file. Example of csv file is here: https://github.com/xFFFFF/Gekko-Strategi...tabase.csv

Features

- Test multiple candleSize, strategies and mulitple pairs on one run
- Start multiple PaperTraders
- Multiple datasets import
- Backtests results are exported to CSV file
- Multithreading - in contrast to raw Gekko backtest this tool uses 100% of your processor
- Extended statistics

DEMO 
Start backtests
[Image: backtest.gif]

All results are exported to CSV file (You can open it in Excel or LibreOffice Calc)
[Image: csv.gif]

Installation
1. Clone git https://github.com/xFFFFF/GekkoBacktestTool.git
2. Copy files to Gekko's main directory
3. Install dependies by command: 

Code:
$ sudo cpan install Parallel::ForkManager Time::ParseDate Time::Elapsed Getopt::Long List::MoreUtils File::chdir Statistics::Basic DBI

4. Edit backtest-config.pl in text editor.

Run
for backtest: 

Code:
$ perl backtest.pl 

For import: 

Code:
$ perl backtest.pl -i 

For start multiple paperTraders: 

Code:
$ perl backtest.pl -p

Available commands:
Code:
usage: perl backtest.pl
To run backtests machine

usage: perl backtest.pl [parameter] [optional parameter]
Parameters:
 -i, --import     - Import new datasets
 -g, --paper     - Start multiple sessions of PaperTrader
 -v, --convert     - Convert TOML file to Gekko's CLI config format, ex: backtest.pl -v MACD.toml
 
Optional parameters:
 -c, --config         - BacktestTool config file. Default is backtest-config.pl
 -s, --strat STRATEGY_NAME - Define strategies for backtests. You can add multiple strategies seperated by commas example: backtest.pl --strat=MACD,CCI
 -p, --pair PAIR     - Define pairs to backtest in exchange:currency:asset format ex: backtest.pl --p bitfinex:USD:AVT. You can add multiple pairs seperated by commas.
 -p exchange:ALL     - Perform action on all available pairs. Other usage: exchange:USD:ALL to perform action for all USD pairs.
 -n, --candle CANDLE     - Define candleSize and warmup period for backtest in candleSize:warmup format, ex: backtest.pl -n 5:144,10:73. You can add multiple values seperated by commas.
 -f, --from
 -f last        - Start import from last candle available in DB. If pair not exist in DB then start from 24h ago.
 -t, --to         - Time range for backtest datasets or import. Example: backtest.pl --from="2018-01-01 09:10" --to="2018-01-05 12:23"
 -t now        - 'now' is current time in GMT.
 -o, --output FILENAME - CSV file name.

Example usage:
Backtests of all available pairs for Binance Exchange in Gekko's scan datarange mode:
Code:
$ perl backtest.pl -p binance:ALL`

Backtest on all pairs and strategies defined in backtest-config.pl with candles 5, 10, 20, 40 and 12 hours warmup period:
Code:
$ perl backtest.pl -n 5:144,10:73,20:36,40:15`

Import all new candles for all BNB pairs:
Code:
$ perl backtest.pl -i -p binance:BNB:ALL -f last -t now`

Import all candles for pairs defined in backtest-config.pl from 2017-01-02 to now:
Code:
$ perl backtest.pl -i -f 2017-01-02 -t now`

Sample backtest output
Link: https://github.com/xFFFFF/Gekko-Backtest...output.csv

Github

Check our Git for more info: https://github.com/xFFFFF/GekkoBacktestTool
Feel free to submit suggestions or features request.


  Hacking extra functionality into telegram plugin
Posted by: zappra - 02-26-2018, 08:56 PM - Forum: Feature Requests - No Replies

Hey,

I don't know if this is the right place to post this but...

I've got gekko and telegram talking to each other. The telegram plugin has the ability to respond to commands. I'd like to add some new commands and I'd like the ability to send these commands directly to the currently active trader and strategy.

This doesn't have to be elegant! Have already made some hacks to provide extra functionality but am a bit lost on how to get hold of the trader and strategy from within the telegram plugin.

Thanks!

Best
z


  Slow Data Imports
Posted by: xBIGx - 02-26-2018, 08:47 PM - Forum: GDAX - No Replies

Anyone having really slow data imports from GDAX? Getting 3 months of data is like 100x slower than Poloniex. Would it be better if we just shared?


  developer needed
Posted by: EddyEd - 02-26-2018, 04:04 PM - Forum: Custom Systems - Replies (7)

Gentlement, can I find a developer on this forum who could modify a custom strategy for me so it can:
1) log quotes in real-time into a specified csv file
2) read signals from a specified csv file for executing trades

Thanks!


  I can not start gekko.
Posted by: JoshuaKeen - 02-25-2018, 11:20 PM - Forum: Technical Support - No Replies

After several tests I wanted to try to use gekko in "real money" mode with a few dollars but I find this problem:

Gekko 412443810954729 started
   -> POST / api / startGekko 200 89ms 146b
   <- POST / api / startGekko
Gekko 3334726943768955 started
   -> POST / api / startGekko 200 87ms 399b
   <- GET /favicon.ico
   -> GET /favicon.ico 404 2ms -
RECEIVED ERROR IN GEKKO 3334726943768955


Gekko encountered an error and can not continue


Gekko encountered an error and can not continue

error:

[binance.js] undefined

Meta debug info:

Gekko version: v0.5.12
Nodejs version: v8.9.4

Can someone help me?

Thank you

JoshuaKeen


  How to run two trade boots with two gekko in two stock exchanges
Posted by: ankasem - 02-25-2018, 01:49 PM - Forum: Technical Discussion - Replies (5)

hi
I am using the ubuntu desktop

how can the trade bots work without problems
how to configure gekko ui and about the commandline

How to run two trade boots with two gekko in two stock exchanges

two Gekko installations were done
gekko1
gekko2

thank you


  GetCandle time is very slow by me...?
Posted by: RemcoCoin - 02-24-2018, 06:50 PM - Forum: Strategy Development - Replies (3)

My Getcandle time at nodejs ( cmd ) is very slow. The get times are 950ms - 1.228ms.
Is this a normal time
<-- Getcandles 950ms
--> Getcandles 890ms 
???

can somebody tells me what i must do ?


  [Bounty] Hiring someone to write a simple Strategy
Posted by: spellfire - 02-24-2018, 12:42 PM - Forum: Strategy Development - Replies (19)

Hello,
my developer skills are very (VERY) limited so I would like to hire someone to develope the strategy I am using "manually" at the moment.
It's not sophisticated , fancy or by any means new, it's the classic grid trading from forex markets

Basically you setup a price and put x limit-stop margin orders higher and lower than the set price, then when orders get filled  the script replace that order (a buy with a sell a sell with a buy)

As I said it's not AI , doesn't use any indicators , doesn't get you rich quickly...but it 's perfect for me :-)
Anyone willing to help with this for a price?


Thanks


  Heikin Ashi
Posted by: fo0man - 02-23-2018, 11:42 PM - Forum: Guides - Replies (5)

I found Gekko a few days ago and have been trying out some different strategies. One of the things I was experimenting with is Heikin Ashi candles so. For anyone wanting to use HA candles here's how I'm doing it.


Code:
var _ = require('lodash');

var strat = {
...

  heikenAshi: function(candle) {
    return {
      close: (candle.open + candle.close + candle.high + candle.low) / 4,
      open: (this.previousCandle.open + this.previousCandle.close) / 2,
      high: _.max([candle.high, candle.open, candle.close]),
      low: _.min([candle.low, candle.open, candle.close])
    };
  },

  update: function () {
    if (this.previousCandle) {
      this.heikenCandle = this.heikenAshi(this.candle);
    }

    this.previousCandle = this.candle;
  },

...
}


  favicon.ico 404
Posted by: donkykong017 - 02-23-2018, 06:08 AM - Forum: Technical Support - Replies (2)

What does that mean in the console output.
i am running gekko for days now with marketwatchers and traders and from time to time this output pops up. 

Code:
<-- GET /favicon.ico
--> GET /favicon.ico 404 0 ms -
 
It is yellow so i guess it is some kind of warning or so?! everything works as expected but i am just curious.
can someone explain.
cheers
DK