Gekko Forum
First attempt to create a strategy - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html)
+--- Thread: First attempt to create a strategy (/thread-58209.html)



First attempt to create a strategy - bachmax - 11-03-2020

Hello everyone,
I hope i can put this here in this forum. I have no experience in JavaScript, but I have script knowledge in powershell. I'm just trying out a bit. In my current strategy I would like to buy and sell again as soon as I have a 1% profit.
The whole thing should then be repeated. I realize that this is not a good strategy but to learn and how it works in Javascript it would be interesting.
Here is my check function:

strat.check = function(candle) {


var ema = this.indicators.myema.result;
var sma = this.indicators.mysma.result;
var adx = this.indicators.myadx.result;

if(ema > sma && adx >25)
{

this.advice('long');
buyat = candle.close;
sellat = buyat / 0.99;
if(candle.close >= sellat)
{
delete buyat;
delete sellat;
this.adivce('short');

}
else
{

}
 }
  // your code!
}

module.exports = strat;
Sadly its not working i dont even know if im on the right path here
Any help much appriciated Smile


RE: First attempt to create a strategy - buysmartfitness - 12-16-2020

The holding up records bundle, proposed in March 2014, is the main endeavor to make a public technique to diminish sitting tight occasions for expert consideration in Poland.


RE: First attempt to create a strategy - mrseo - 02-01-2021

How to Secure a WordPress Site This was incredibly an exquisite implementation of your ideas


RE: First attempt to create a strategy - mrseo - 02-01-2021

I have been searching to find a comfort or effective procedure to complete this process and I think this is the most suitable way to do it effectively. WordPress Security Plugins


RE: First attempt to create a strategy - mrseo - 02-01-2021

Toxi Burn Supplement Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.


RE: First attempt to create a strategy - mrseo - 02-01-2021

A debt of gratitude is in order for giving late reports with respect to the worry, I anticipate read more. Custom Keto Diet


RE: First attempt to create a strategy - mrseo - 02-01-2021

I surely acquiring more difficulties from each surprisingly more little bit of it VideoScribe


RE: First attempt to create a strategy - mrseo - 02-01-2021

It's late finding this act. At least, it's a thing to be familiar with that there are such events exist. I agree with your Blog and I will be back to inspect it more in the future so please keep up your act. Flaticon Review


RE: First attempt to create a strategy - mrseo - 02-01-2021

With so many books and articles coming up to give gateway to make-money-online field and confusing reader even more on the actual way of earning money, Freepik Review