candlestickTrader (new)
#1
So you've seen some youtube or red some books and thought Candle sticks are hot.
Oh well, I did for a while and stumbled upon some code on the internet, bug fixed it, and then extended it to trade basically.
This is not optimal code yet,. I wrote lots of comments in it,
So someone may find the time to expand upon this one, to improve the results.

I share candlestickTrader as a raw version of code with lots of comments.
I have less time to work out this one, but I hope someone else can continue on it.



Notice some functions I already added into in the code but currently are not used.

So bugs where resolved it does trade on candles,
But I think the whole idea behind candlestick patterns is flawed (oversimplified)  and not all of the theory behind is used
See partly my comments about it in the code, also some parts made no sense to me as I didn't understood it, your welcome to enlight me

This is not yet a good trading bot, but yes it does do candle trading (mostly).

Notice also that this strategy creates csv log files, for research and debugging (in the main Gekko folder)
Since Gekko doesn't show candlesticks, I figured you may like to see the raw data in Excel or Calc to verify this kind of trading.

Read the comments in the code before asking about this strategy
The comments contain lots of info.
I know this is not a very good trader at the moment, but it might be a good starting point to create one
As essentially the candle patterns are derived from the market in this piece of code.
 
There is no TOML file included, so I enforce you to alter the code if you like to change values, (it doesn't readout a toml file currently).

Oh one warning
Trading on Doji is highly risky
While it does spot a Doji, I decided not to trade on it.. (told earlier the theory isn't fully used)
Doji trading requires more market info and is better avoided if you don't know what to look for.
I got many thoughts about that, but I let you free to code that yourself
You can share your code here if you got something working stable on it.
Just didn't want to put people into high risks.

code can be found here: https://github.com/PGTBoos/GekkoStrategies
  Reply


Messages In This Thread
candlestickTrader (new) - by PGTART - 09-11-2019, 12:17 PM
RE: candlestickTrader (new) - by lucifar - 03-16-2021, 10:06 AM
RE: candlestickTrader (new) - by lucifar - 03-20-2021, 12:59 PM
RE: candlestickTrader (new) - by lucifar - 03-30-2021, 07:39 AM
RE: candlestickTrader (new) - by lucifar - 04-03-2021, 11:39 AM
RE: candlestickTrader (new) - by lucifar - 04-06-2021, 05:48 AM
RE: candlestickTrader (new) - by lucifar - 05-15-2021, 01:25 PM
RE: candlestickTrader (new) - by lucifar - 05-16-2021, 01:40 PM
RE: candlestickTrader (new) - by nasila - 05-16-2021, 08:10 PM
RE: candlestickTrader (new) - by nasila - 05-28-2021, 12:21 PM
mom - by mtom78632 - 07-15-2021, 10:39 AM
mtom - by mtom78632 - 07-19-2021, 06:42 AM
RE: candlestickTrader (new) - by lucifar - 07-19-2021, 07:43 PM
mtom - by mtom78632 - 07-22-2021, 04:44 PM
RE: candlestickTrader (new) - by mtom78632 - 07-26-2021, 12:07 PM
myom - by mtom78632 - 07-30-2021, 10:45 AM
RE: candlestickTrader (new) - by mtom78632 - 08-02-2021, 11:16 AM
RE: candlestickTrader (new) - by mtom78632 - 08-05-2021, 06:51 AM
mtom - by mtom78632 - 08-14-2021, 11:11 AM
mtom - by mtom78632 - 08-14-2021, 06:35 PM
RE: candlestickTrader (new) - by mtom78632 - 08-15-2021, 12:10 PM
mtom - by mtom78632 - 08-17-2021, 12:22 PM
IS - by mtom78632 - 08-28-2021, 01:24 PM
RE: candlestickTrader (new) - by mtom78632 - 08-29-2021, 07:58 AM
RE: candlestickTrader (new) - by mtom78632 - 09-05-2021, 06:30 AM
RE: candlestickTrader (new) - by mtom78632 - 09-11-2021, 07:45 AM
RE: candlestickTrader (new) - by mtom78632 - 09-14-2021, 07:24 AM
mot - by mtom78632 - 09-19-2021, 10:26 AM
RE: candlestickTrader (new) - by mtom78632 - 10-01-2021, 09:50 AM

Forum Jump:


Users browsing this thread: