[BOUNTY] Transform a Pine Script indicator to a Gekko indicator
#12
Thank you very much MeanSquaredError for the effort. I haven't stated clearly from the start what I would like from this indicator and how I would like it to work in a Gekko strategy. It is my mistake and I'm sorry for it. I would have liked for MeanSquaredError to receive half of the bounty since he put some work into this code and since it was my mistake to not clearly specify my needs, but he declined and I will respect his decision.

Now onwards with this indicator and what I want from it:

1) I would like the indicator to return different attributes about the current given candle size (15m, 1H, 2H etc) in such a way that they could be used in strategies. The indicator returns a lot of information in any given timeframe and I would like to be able to use that information as much as possible. Also it needs just 4 candles to warm up;

2) I would like to be able to run and also backtest this indicator on a live market in the any timeframe that I want. Let's say 1H. I would like the indicator to continuously (live) check the status of the current candle and to return what number it represents in a setup or countdown counter (1 green/red, 2 green/red, 3 green/red etc). After reporting the number of the candle I would like the strategy to act upon this returned number and give long or short signal based on somehow custom attributes. For example I am interested in a strategy that sounds like this: When candle 2 starts trading above/below candle 1 then long/short. This would be to open the trade. I'll get to the closing the order in a second.

3) About closing the order or giving the short/long signal. MeanSquaredError told me in a private message:

"Right now the strategy just issues a 'short' or 'long' advice to Gekko once the TD countdown is completed. If by SL and TP you mean the stop-loss and take-profit, then I guess I can implement something like that, but the real problem is that the custom strategy does not see separate orders. The strategy just gives Gekko's portfolio manager to go 'short' or 'long'. So if we have issued a 'long' advice, then after a while we can sort of close that order by giving a 'short' advice. But we can not even be sure what amount has Gekko sold after our advice.

I guess we can discuss this with Mike and see whether he is willing to make changes to Gekko that would make possible the development of more complex strategies."

@Mike are you planning on stop-loss and take-profit capabilities on trades? I guess this could be coded as a series of ifs>else, right? Also how does the bot operates in live trading? It just does a market buy/sell with all the account balance?


I guess I will expand more after someone answers this.
  Reply


Messages In This Thread
RE: [BOUNTY] Transform a Pine Script indicator to a Gekko indicator - by Road.Apps - 02-07-2018, 07:46 PM

Forum Jump:


Users browsing this thread: