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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 39,322
» Latest member: DishisdesignJewellery
» Forum threads: 926
» Forum posts: 6,383

Full Statistics

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

Latest Threads
An official Gekko service...
Forum: Announcements
Last Post: tanvirai
11-20-2025, 12:18 PM
» Replies: 113
» Views: 291,571
Gekko development status ...
Forum: Announcements
Last Post: erectilenovus
11-17-2025, 11:36 AM
» Replies: 753
» Views: 1,767,825
Gekko 0.6 released
Forum: Announcements
Last Post: soniyathakur
11-02-2025, 12:21 PM
» Replies: 129
» Views: 380,269
Gekko with malware spotte...
Forum: Announcements
Last Post: cofffee124
10-30-2025, 09:56 AM
» Replies: 216
» Views: 345,981
New Gekko UI in the works
Forum: Announcements
Last Post: cofffee124
09-04-2025, 08:12 AM
» Replies: 186
» Views: 390,431
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 159,116
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 31,835
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 70,988
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 87,735
Is there any way to make ...
Forum: Custom Systems
Last Post: seorun
10-05-2021, 08:20 AM
» Replies: 42
» Views: 134,733

 
  i can't see my new strategy
Posted by: remony - 02-09-2018, 06:01 AM - Forum: Technical Support - Replies (2)

can u explain how to embed in new strategy. 
i create a .js file under gekko/strategies
i create a .toml file under gekko/config/strategies but
i can't see it under the strategy menu. what i am missing?


  a couple of technical Questions
Posted by: Derbeweis - 02-09-2018, 05:08 AM - Forum: Technical Support - Replies (25)

Hello, 
first of all I want to thank you all here for the great work... I have been researching trading bots along time now, and I have to admit your work here is great... so thanks... and keep up the great work... 
also looking forward for the hosted Gekko that you announced... that could be great for a lot of us... 

now to my questions... 
I am setting Gekko up to run in an VPS on Linux, and I am convinced with a good strategy that I want to try now live... 
And after reading the comments of ASKMIKE I decided to run Gekko from the CL 
but I still have some Questions: 

1. the ORDERS: 
how will Gekko perform the orders on the exchanges ? are they market orders or limit orders ? and if they are limit orders, and they don't trigger (the price moved very fast) will it cancel the order or not? and if they are Market Orders, will it consider the Advice price as the start or the real price that it was able to get on the exchange ? 

and because we are in Exchanges (not CFDs) does this mean Gekko will never be able to run a Short before it had a Long right? 

2. Margin: 
is it possible to make Gekko run Margin Orders (in Bitfinix for example!) or will it always run an exchange order?

3. Multiplie instances: 
I understood from multiple  comments from Mike, that Gekko always uses 100% of the asset to run a strategy, so if I want trade more than one trader on the same exchange I should use disjunct couples i.e. BTC/USD , ETH/EUR for example... and I need to start a different Terminal window and a Gekko in every one... the main Question now: 
do I need to make a different copy of Gekko (different folder) for every Livetrade Gekko?  I understand that I have to change the config files for every Livetrade Setup (to add the different APIs if I am using different exchanges, and to add different parameters for the same strategy or different strategies.. IS THIS right? 
so for example If I want to run 3 Pairs (BTC/USD, ETH/EUR on Bitfiniex and BTC/LTC on Binance) I make 3 copies of Gekko, run every one separate  in a terminal window and leave it working... 
Am I right? 


I appreciate your help very much... 
thanks..


  Ping Pong strategy ??
Posted by: Storm-E - 02-09-2018, 04:17 AM - Forum: Strategy Development - Replies (2)

Hi all
I saw a post on here about ping pong strategy but can't find it.  Was I just delustional or was it deleted?

I'm only a newbie to Gekko and trading but ping pong is the kind of thing with my limited knowledge I can get my head around and would like to creating. 
When I work out how to work with Gekko. Huh

So anyone know about it or have a copy of the basic work done so I don't have to reinvent the wheel?

Thanks
john


Question Adding custom trading indicator to own strategy
Posted by: SuperUserek - 02-08-2018, 09:43 PM - Forum: Strategy Development - Replies (1)

Hi there, i am very new to Gekko. As a programmer (hobbyist) i was going to make my own bot till i have found Gekko, but lack of documentation and js (yet - so far i know basics so i will get on it quick) decided to use it and apply my trading skills. And make my own stategies with as less loss as possible.

But to start of i need some of you to clarify some things for me.

There is simple strategy config in js to be customised.

Code:
// Let's create our own strategy
var strat = {};

// Prepare everything our strat needs
strat.init = function() {
 // your code!
}

// What happens on every new candle?
strat.update = function(candle) {
 // your code!
}

// For debugging purposes.
strat.log = function() {
 // your code!
}

// Based on the newly calculated
// information, check if we should
// update or not.
strat.check = function(candle) {
 // your code!
}

// Optional for executing code
// after completion of a backtest.
// This block will not execute in
// live use as a live gekko is
// never ending.
strat.end = function() {
 // your code!
}

module.exports = strat;

I have had a look inside some strategies. And still doesnt understand where did you get variables and results from your own strategy.

For instance i would like to use Tulib and use some of indicators for example BBands.

So to code above as i have found on your webside to use tulib indicators example as followes

Code:
method.init = function() {
 var customMACDSettings = {
   optInFastPeriod: 10,
   optInSlowPeriod: 21,
   optInSignalPeriod: 9
 }

 // add the indicator to the strategy
 this.addTulipIndicator('mymacd', 'macd', customMACDSettings);
}

method.check = function() {
 // use indicator results
 var result = this.tulipIndicators.mymacd.result;
 var macddiff = result['macd'] - result['macdSignal'];

 // do something with macdiff
}

I have put this together for Bbands indicator but got some questions about it can you have a look on the code?


Code:
// Let's create our own strategy
var custommethod = {};
// ---------------------------- INIT
custommethod.init = function() {
 var customBBandsParams = {
 //I THINK this should be taken from: https://gekko.wizb.it/docs/strategies/tulip_indicators.html
optInTimePeriod: 20,
optInNbStdDevs: 2,
}
//this.addTulipIndicator('FUNCNAME,INDICNAME,PARAMSIFNEEDED')? <-- IS THIS RIGHT THINKING?
this.addTulipIndicator('mybbands', 'bbands', customBBandsParams);
}


// What happens on every new candle?
custommethod.update = function(candle) {
 // LETS SKIP THAT FOR NOW
 // CHECKING PRICE OR SOMETHING ELSE
}

// For debugging purposes.
custommethod.log = function() {
 // LETS SKIP THAT FOR NOW
}

custommethod.check = function(candle) {
 // your code!
 var result = this.tulipIndicators.mybbands.result;
 var resultofbbands = result['bbands'];
 //==============??????????????? HOW DO I GET DETAILS ABOUT IT TO CONSOLE?
 //==============??????????????? WHERE DID YOU GET LETS SAY 3 LINES top middle bottom one printed out to actually print numbers of possition of those bands??
 
 log.debug('RESULT FROM INDICATOR BBANDS');
 log.debug(result);
 log.debug('RESULT OF BBANDS');
 log.debug(resultofbbands);
 
}
/////////////////EXAMPLE WITH MACD FROM JS FILES
//method.check = function() {
//  // use indicator results
//  QUESTION WHERE DID YOU GOT THOSE VARIABLES SUCH AS RESULT MACD and MACDSIGNAL?
//  ANY WEBSITE / MANUAL ???
//  var macddiff = result['macd'] - result['macdSignal'];
//  var result = this.tulipIndicators.mymacd.result;
//
//  // do something with macdiff
//}

// Optional for executing code
// after completion of a backtest.
// This block will not execute in
// live use as a live gekko is
// never ending.
custommethod.end = function() {
 // your code!
}

module.exports = custommethod;

This is my first attempt and i have loads of questions

Thanks for looking, hope you can clarify my questions and make it brighter for me and others.

//I have already added this post but in wrong place.


  Error in instructions [SOLVED]
Posted by: proton - 02-08-2018, 08:51 PM - Forum: Technical Support - Replies (2)

https://gekko.wizb.it/docs/installation/...ws_10.html

1. Bash is not in windows store but you can use command lxrun /install

2. 

Code:
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production

Should be:
Code:
git clone git://github.com/askmike/gekko.git -b stable
cd gekko
npm install --only=production
The Master is not the stable version


  Adding Strategies
Posted by: proton - 02-08-2018, 08:42 PM - Forum: Technical Support - Replies (10)

I’m running gekko on windows vm with bash. Can’t figure out how to add new strategies.

Can anyone help ?? Adding .js and .toml doesn't work - they don't appear in UI


I saw this: 

"You can activate your own strategy by setting config.tradingAdvisor.strategy to custom (or whatever you named your file inside the gekko/strategies) in the loaded config." 

But, No idea what that means


  Access Restriction
Posted by: 0mathew0 - 02-08-2018, 09:15 AM - Forum: General Discussion - No Replies

@askmike: Would it be a good idea to restrict certain forum categories to members only?


  Gekko UI message when import fails and Date Range constraints
Posted by: mybigdata - 02-08-2018, 07:50 AM - Forum: Technical Discussion - Replies (3)

I'm adding a new market and its importer poses a new challenge for Gekko UI because it supports max. 30 days of trade history and fails if anything older is requested.
Users can enter anything as their Date From and then they'll wonder why it's not working. Can we fix it?

i.e., I'd like to support custom error messages like "You've entered Date From that's unsupported (too old). Please import max. 30 days of trade history." in Gekko UI and display a modal.

It'd be great to also support an optional parameter in exchange capabilities that will limit Date From in Gekko UI.

As a volunteer, If I contribute a pull request that adds "maxTradeHistory" into exchange capabilities and support for errors to be displayed in Gekko UI, will it get accepted?


  BINANCE (((((SERVER DOWN)))))
Posted by: susitronix - 02-08-2018, 02:02 AM - Forum: General Discussion - Replies (7)

BINANCE SERVER DOS NOT WORK NOR UPDATE THE BROWSER:
2018.02.08 2:00am

IT IS NOT GEKKO..! nor windoof 7

dööhhh

WHEN STARTING GEKKO STRATRUNNER, INSTEAD OF NEO ASSET, IT WAS FINDING USDT

// THE GEKKO-CLI DOS REQUEST THE TRADES BUT COME BACK WITH
NO NEW TRADES WICH IS BINANCE UNABLE TO PROVIDE DATA

no worries had portofolio issues before but then the balance was correct after 12 hours


Tryed also with COINIGY. It shows the same Result on Binance

// 4:00 STILL THE SAME
No new trades...



Attached Files
.png   BinanceServer.png (Size: 175.19 KB / Downloads: 8)

  Preload History
Posted by: 0mathew0 - 02-07-2018, 10:10 PM - Forum: Technical Discussion - Replies (4)

Hi all,

whats the right process to let gekko livetrader use as much local history (from an import) as possible? I have a strat that uses a very slow sma and it would take days to wait until it fetches enough data to start.

Thanks!

BR,
Mathias