Gekko Forum
[Bounty] Hiring someone to write a simple 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: [Bounty] Hiring someone to write a simple Strategy (/thread-1541.html)

Pages: 1 2


RE: [Bounty] Hiring someone to write a simple Strategy - donkykong017 - 02-26-2018

(02-26-2018, 11:27 AM)spellfire Wrote: [quote pid='2203' dateline='1519634913']

this seems to be a very safe method. what i do not understand is that the start prize, prize to watch is a fixed value. what do you do when the market goes above that and stays there or has a long up trending motion. you will not be able to buy again without changing the strat params.

The start price is exactly the price your currency has when you start the trade.

When the market goes up you follow it with your sell and buy orders , remeber every time it goes down by a step in the grid, you profit (rarely it just simply goes ONLY UP in a straight line, but it has ups and downs)

Remember you don't profit from the value of the currency but from it's volatility.

It's nothing new, in forex grid trading are used a lot
[/quote]

yeah i think i get the idea. but i dont get how that is implemented in a gekko strat without changing the start prize parameter.
the last buy prize should always replace the start price when you want it to be automated right?


RE: [Bounty] Hiring someone to write a simple Strategy - spellfire - 02-26-2018

[quote pid='2210' dateline='1519645087']

yeah i think i get the idea. but i dont get how that is implemented in a gekko strat without changing the start prize parameter.
the last buy prize should always replace the start price when you want it to be automated right?

>>Well I was under the impression that it cannot be done in Gekko as user ManuManu Stated in this same thread but if someone is able to do it I would be happy to pay for the developement
[/quote]


RE: [Bounty] Hiring someone to write a simple Strategy - donkykong017 - 02-27-2018

(02-26-2018, 12:08 PM)spellfire Wrote: [quote pid='2210' dateline='1519645087']

yeah i think i get the idea. but i dont get how that is implemented in a gekko strat without changing the start prize parameter.
the last buy prize should always replace the start price when you want it to be automated right?

>>Well I was under the impression that it cannot be done in Gekko as user ManuManu Stated in this same thread but if someone is able to do it I would be happy to pay for the developement

[/quote]

Afaik it cant be done. as gekko does not know the price you recently bought or sold. what manumanu was telling is that gekko cant also trade small parts of of the wallet. but there are some PR working on that, as it is obviously the most requested feature.


RE: [Bounty] Hiring someone to write a simple Strategy - ManuManu - 02-27-2018

Note that I think you can be warned of the price your sold / bought, throught the ontrade callback in your strategy.

Manu


RE: [Bounty] Hiring someone to write a simple Strategy - donkykong017 - 03-01-2018

(02-27-2018, 12:53 PM)ManuManu Wrote: Note that I think you can be warned of the price your sold / bought, throught the ontrade callback in your strategy.

Manu

you are right:
https://github.com/askmike/gekko/blob/0d975707009456720f59b98c102c334c05e35585/docs/internals/events.md#portfolioChange-event


RE: [Bounty] Hiring someone to write a simple Strategy - karl32 - 03-06-2018

(02-24-2018, 08:14 PM)ManuManu Wrote: Here is something that should work :

Create a aroundPrice.js, and put it in your gekko/strategies folder :
Code:
var log = require('../core/log');

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

// Prepare everything our method needs
strat.init = function() {
 this.input = 'candle';
 this.currentTrend = 'neutral';
 this.requiredHistory = 0;
 
 this.priceToWatch = this.settings.price_to_watch;
 this.percentUpper = this.settings.percentUpper;
 this.percentLower = this.settings.percentLower;
}

// Based on the newly calculated
// information, check if we should
// update or not.
strat.check = function(candle)
{
    if(this.currentTrend === 'neutral')
    {
        var lowLimit = this.priceToWatch *  ( 1 - this.percentLower/100.0 );
        if ( candle.close < lowLimit )
        {
            this.advice('long');
            this.currentTrend = 'long';
            log.debug("Going long at " + candle.close + " - under : " + lowLimit );
        }
    }
    if (this.currentTrend === 'long')
    {
        var highLimit = this.priceToWatch * ( 1 + this.percentUpper / 100.0);
        if ( candle.close > highLimit )
        {
            this.currentTrend = 'neutral';
            this.advice('short');
            log.debug("Going short at " + candle.close + " - above : " + highLimit );
        }
    }
}


module.exports = strat;


Then create a aroundPrice.toml file and put it into the gekko/config/strategies folder :
Code:
price_to_watch = 10
percentUpper = 10
percentLower = 10


Set the price you want, the upper and lower percentage thresholds,
And that's it...


Not sure it really deserve a bounty, though !


ManuManu

Ps : I tried it on ETH/USDT Binance, from 01/01/2018 to 1st of february, with 1000 to watch +/- 5%, and it gave me +116% in backtest...

it is possible to have multiple prices to watch ?


RE: [Bounty] Hiring someone to write a simple Strategy - Feetz - 03-12-2018

(02-24-2018, 08:14 PM)ManuManu Wrote: Here is something that should work :

Create a aroundPrice.js, and put it in your gekko/strategies folder :
Code:
var log = require('../core/log');

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

// Prepare everything our method needs
strat.init = function() {
 this.input = 'candle';
 this.currentTrend = 'neutral';
 this.requiredHistory = 0;
 
 this.priceToWatch = this.settings.price_to_watch;
 this.percentUpper = this.settings.percentUpper;
 this.percentLower = this.settings.percentLower;
}

// Based on the newly calculated
// information, check if we should
// update or not.
strat.check = function(candle)
{
    if(this.currentTrend === 'neutral')
    {
        var lowLimit = this.priceToWatch *  ( 1 - this.percentLower/100.0 );
        if ( candle.close < lowLimit )
        {
            this.advice('long');
            this.currentTrend = 'long';
            log.debug("Going long at " + candle.close + " - under : " + lowLimit );
        }
    }
    if (this.currentTrend === 'long')
    {
        var highLimit = this.priceToWatch * ( 1 + this.percentUpper / 100.0);
        if ( candle.close > highLimit )
        {
            this.currentTrend = 'neutral';
            this.advice('short');
            log.debug("Going short at " + candle.close + " - above : " + highLimit );
        }
    }
}


module.exports = strat;


Then create a aroundPrice.toml file and put it into the gekko/config/strategies folder :
Code:
price_to_watch = 10
percentUpper = 10
percentLower = 10


Set the price you want, the upper and lower percentage thresholds,
And that's it...


Not sure it really deserve a bounty, though !


ManuManu

Ps : I tried it on ETH/USDT Binance, from 01/01/2018 to 1st of february, with 1000 to watch +/- 5%, and it gave me +116% in backtest...

i TRIED YOUR CONFIGURATION BUT DOESN'T MATCH I HAVE LOSS PROFITS, WHATS YOUR RECOMMENDATION TO PUT IN PRICE TO WATCH PERCENT UPPER AND LOWER, ALSO USDT/ ETH ISN'T AVAILABLE


RE: [Bounty] Hiring someone to write a simple Strategy - _xAPOx_ - 04-09-2018

(02-24-2018, 12:42 PM)spellfire Wrote: Hello,
my developer skills are very (VERY) limited so I would like to hire someone to develope the strategy I am using "manually" at the moment.
It's not sophisticated , fancy or by any means new, it's the classic grid trading from forex markets

Basically you setup a price and put x limit-stop margin orders higher and lower than the set price, then when orders get filled  the script replace that order (a buy with a sell a sell with a buy)

As I said it's not AI , doesn't use any indicators , doesn't get you rich quickly...but it 's perfect for me :-)
Anyone willing to help with  this for a price?


Thanks

Hello!
Your system and this thread was very intresting to me. 
I do programs for living but gekko environment and javascripts are not very familiar to me.
Altought i am intrested to learn and go my own strat with gekko now.
(currently importing 4 moths data from Gdax)

Can i ask did you get this program working?
About your strategy, is below example a same thing than your strategy?
You would buy 0,1 long and 0,1 short at starting price of 10000.
-If it goes up you sell 0,1 long and buy 0,1 long and 0,1 short again
-If it goes up you sell 0,1 long and buy 0,1 long and 0,1 short again
At this point u have made 0,1 + 0,1 from closed deals and you have some negative results from still-open short orders.
When price swings back to down you will find that profit.
I quess when that happens (and u reach profit) you can sell all open events and start same thing again.

Is this tactic more risky than yours, have you heard about that?
Im not even sure does crypto exhange sites such as gdax allow short orders where u profit when it goes down?
Does anyone know about that?


RE: [Bounty] Hiring someone to write a simple Strategy - rff - 04-10-2018

(02-24-2018, 08:14 PM)ManuManu Wrote: Here is something that should work :

Create a aroundPrice.js, and put it in your gekko/strategies folder :
Code:
var log = require('../core/log');

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

// Prepare everything our method needs
strat.init = function() {
 this.input = 'candle';
 this.currentTrend = 'neutral';
 this.requiredHistory = 0;
 
 this.priceToWatch = this.settings.price_to_watch;
 this.percentUpper = this.settings.percentUpper;
 this.percentLower = this.settings.percentLower;
}

// Based on the newly calculated
// information, check if we should
// update or not.
strat.check = function(candle)
{
    if(this.currentTrend === 'neutral')
    {
        var lowLimit = this.priceToWatch *  ( 1 - this.percentLower/100.0 );
        if ( candle.close < lowLimit )
        {
            this.advice('long');
            this.currentTrend = 'long';
            log.debug("Going long at " + candle.close + " - under : " + lowLimit );
        }
    }
    if (this.currentTrend === 'long')
    {
        var highLimit = this.priceToWatch * ( 1 + this.percentUpper / 100.0);
        if ( candle.close > highLimit )
        {
            this.currentTrend = 'neutral';
            this.advice('short');
            log.debug("Going short at " + candle.close + " - above : " + highLimit );
        }
    }
}


module.exports = strat;


Then create a aroundPrice.toml file and put it into the gekko/config/strategies folder :
Code:
price_to_watch = 10
percentUpper = 10
percentLower = 10


Set the price you want, the upper and lower percentage thresholds,
And that's it...


Not sure it really deserve a bounty, though !


ManuManu

Ps : I tried it on ETH/USDT Binance, from 01/01/2018 to 1st of february, with 1000 to watch +/- 5%, and it gave me +116% in backtest...


ManuManu, this works in concept, but the price needs to be set at the current price and to update as it moves - is this possible?
Many thanks!


RE: [Bounty] Hiring someone to write a simple Strategy - rff - 04-10-2018

(02-24-2018, 12:42 PM)spellfire Wrote: Hello,
my developer skills are very (VERY) limited so I would like to hire someone to develope the strategy I am using "manually" at the moment.
It's not sophisticated , fancy or by any means new, it's the classic grid trading from forex markets

Basically you setup a price and put x limit-stop margin orders higher and lower than the set price, then when orders get filled  the script replace that order (a buy with a sell a sell with a buy)

As I said it's not AI , doesn't use any indicators , doesn't get you rich quickly...but it 's perfect for me :-)
Anyone willing to help with  this for a price?


Thanks

Hi Spellfire,  like yourself I have some financial background but very limited development skills.  I would also like to try the grid trading method.  Were you able to get it programmed / working?  thanks.