Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 181 online users. » 0 Member(s) | 181 Guest(s)
|
Latest Threads |
Gekko 0.6 released
Forum: Announcements
Last Post: lsm99dna
08-06-2025, 08:15 PM
» Replies: 124
» Views: 333,516
|
An official Gekko service...
Forum: Announcements
Last Post: Ruslanjoshua
07-24-2025, 06:27 AM
» Replies: 111
» Views: 247,654
|
New Gekko UI in the works
Forum: Announcements
Last Post: celemtine
07-03-2025, 07:24 AM
» Replies: 185
» Views: 325,129
|
Gekko with malware spotte...
Forum: Announcements
Last Post: pugoing
07-01-2025, 02:29 AM
» Replies: 212
» Views: 276,761
|
Gekko development status ...
Forum: Announcements
Last Post: sanmarconns
10-21-2024, 06:34 PM
» Replies: 744
» Views: 1,476,086
|
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 134,445
|
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 22,978
|
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 57,367
|
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 72,010
|
crex24
Forum: Other exchanges
Last Post: marketingseo
10-05-2021, 09:47 AM
» Replies: 216
» Views: 514,037
|
|
|
Double Strategy Updates |
Posted by: limejuice - 08-23-2018, 02:36 PM - Forum: Technical Support
- Replies (2)
|
 |
Hi,
does anyone else ever see two strategy updates one after the other as if the 'check' function of your strategy is being called twice instead of once? Looks something like this for me (using NNv2):
2018-08-23 10:42:37 (DEBUG):
Current market: bear
Percent change predicted: 0.10299030411228689
Current price: 0.00077024
Last buy price: 0
Current position: short
2018-08-23 10:42:37 (DEBUG):
Current market: bear
Percent change predicted: 0.08582525343061481
Current price: 0.00077024
Last buy price: 0
Current position: short
|
|
|
Feeding Strategy Portfolio/Exposed values |
Posted by: limejuice - 08-23-2018, 01:53 PM - Forum: Strategy Development
- Replies (6)
|
 |
Hi there,
due to me having to restart my bots quite a bit at the moment due to bugs I was wondering if it was possible to pass along the 'exposed' variable or the portfolio using 'portfolioValueChanged' or 'portfolioChanged' events so that my strategy knows whether I am long or not upon restart.
Thanks!
|
|
|
[TUT] Running a backtest through the CLI |
Posted by: askmike - 08-17-2018, 07:10 AM - Forum: Guides
- No Replies
|
 |
[I might move this guide into the docs one day]
If you are developing your own strategy or want to gain more insights in what is happening you can easily use the commandline interface (CLI) to run a backtest quickly. By default these backtests include a lot of debugging information which you can use to understand what is going on inside the strategy you are running.
This guide assumes you have historical data available (imported previously or obtained from a live gekko).
Step 1: create a config file
Copy gekko/sample-config.js into gekko/config.js
Step 2: configure your config
Open up the gekko/config.js file with a text editor (sublime is excellent, free and runs on all major OSes).
- Search for "config.watch" and replace exchange, currency and asset with the market you want to backtest over.
- Search for "config.tradingAdvisor" and set method to your strategy, candleSize to the type of candles you want (in minutes, hourly candles means filling in 60).
- [optoinally] Search for "paperTrader" and configure the slippage and spread according to the market. If you are trading on a big market (BTC/USD for example) the defaults are fine.
Step 3: run the backtest
- Open a terminal and navigate to the Gekko directory.
- Run the backtest by typing: node gekko -c config.js -b
|
|
|
|