Gekko Forum
Help for beginner - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: General Discussion (https://forum.gekko.wizb.it/forum-14.html)
+--- Thread: Help for beginner (/thread-57750.html)



Help for beginner - Hrondor - 11-01-2018

Hello, 
 is there any list with gekko commands in JS(like this.Advice etc)? The second thing is if someone can give me some good link to learn JS as fast as possible, because I have strategy, Im trading for few years, but my skills in JS arent good enough to write my own code... :Big Grin

Thank you


RE: Help for beginner - askmike - 11-02-2018

Awesome that you are trying to learn it!

Quote: is there any list with gekko commands in JS(like this.Advice etc)?

This document has 95% of what you can do: https://gekko.wizb.it/docs/strategies/creating_a_strategy.html

But I agree, we need better documentation for this. If things are not clear feel free to let us know in this thread so we can improve the docs!

Quote:The second thing is if someone can give me some good link to learn JS as fast as possible

I would recommend using a free tool like Code Academy: https://www.codecademy.com/


RE: Help for beginner - Feofilakt - 11-10-2018

Hello! I would want to join the question. Is there some documentation about "advice" function? It seems this is the main function that performs all the cryptotrading. Currently I found only a small piece of information here: https://gekko.wizb.it/docs/strategies/creating_a_strategy.html#check-function. It would be great to specify how to look balance (if possible), set order sum, different kinds of stop-losses (I saw something similar at the forum but it is hard to gather all actual and robust information).


RE: Help for beginner - askmike - 11-10-2018

Quote:It would be great to specify how to look balance (if possible), set order sum, different kinds of stop-losses (I saw something similar at the forum

All these things are not possible right now. Please see this document that describes more abstractly what kind of strategies Gekko is designed for: https://gekko.wizb.it/docs/introduction/scope.html

Quote:it is hard to gather all actual and robust information).

I will improve the docs asap, but right now the only thing you can do is:

- trigger an advice to go short or long.
- if the advice is long: pass a trailingStop of when to make an exit

There is another method you can add to your strategy called onTrade that will get called after a trade is completed. I'll explain this all properly in the docs asap.