Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 28,554
» Latest member: f168vin
» Forum threads: 1,541
» Forum posts: 8,071
Full Statistics
|
Online Users |
There are currently 314 online users. » 1 Member(s) | 313 Guest(s) kontho
|
Latest Threads |
Gekko development status ...
Forum: Announcements
Last Post: kontho
14 minutes ago
» Replies: 1,010
» Views: 935,803
|
Gekko with malware spotte...
Forum: Announcements
Last Post: adeldoors
5 hours ago
» Replies: 192
» Views: 170,549
|
Gekko 0.6 released
Forum: Announcements
Last Post: Pharagon
11-23-2024, 10:13 AM
» Replies: 122
» Views: 269,397
|
An official Gekko service...
Forum: Announcements
Last Post: drivemad2
11-22-2024, 07:24 AM
» Replies: 103
» Views: 190,449
|
New Gekko UI in the works
Forum: Announcements
Last Post: clduplicateremover
11-18-2024, 08:21 PM
» Replies: 174
» Views: 228,033
|
How to Soft Reset or Hard...
Forum: General Discussion
Last Post: lucifar
10-07-2021, 07:18 PM
» Replies: 22
» Views: 53,058
|
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 108,466
|
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 19,133
|
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 45,852
|
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 58,611
|
|
|
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
|
|
|
Reuse proceeds only |
Posted by: wilbertvdl - 08-14-2018, 10:26 PM - Forum: Strategy Development
- Replies (5)
|
|
Hi,
I'm a bit confused with regards to trading multiple pairs on one exchange, perhaps someone is willing to explain to me how this works (or doesn't).
E.g. I would like to trade two pairs: GNT/ETH and NEO/ETH.
Let's say at a certain point both GNT and NEO sold:
- GNT sold with 1,0ETH proceeds
- NEO sold with 2,3ETH proceeds
Is it possible for Gekko to reuse only the 1,0ETH for the next GNT buy and the 2,3 NEO buy?
Sometimes I read that it ís possible to trade multiple pairs (like GNT/ETH and NEO/ETH) and sometimes I read that this will result in problems with the profit report and you should only trade different pairs like GNT/ETH and NEO/BTC.
I have quite a few different currencies in my portfolio and only BTC, USDT, BNB and ETH to trade against, which would leave me with only 4 pairs to trade. If reusing is not possible, what would be the best way to go?
Thanks for helping out!
|
|
|
|