Schaff Trend Cycle

When I go to backtest your strategy, I'm seeing on the right (in the UI) a section that says Parameters and has these options:

threshold_buy = 1.0
threshold_sell = -1.0
method = 'adadelta'

learning_rate = 1.2
momentum = 0.9
decay = 0.10
stoploss_enabled = false
stoploss_threshold = 0.85
hodl_threshold = 1.2
price_buffer_len = 100
min_predictions = 1000

and it confuses me! I tried to review the strategy code itself and I don't see any reference to any stoploss or hodl_threshold and I'm confused. Any guidance on what these parameters are?
Those Parameters look like a set for a neural network strategy... I don't think they're the right ones for Zschoro's STC at all

I adapted his STC calculations into an indicator to use with other strategies:

Zschoro pointed out on discord again that to use it in a strategy you need to account for the times that it peaks about half way and drop again - the linked strategy doesn't account for that.
I updated my strategy, and included a stop loss.
Would someone mind doing some backtesting on it?

Now my question is:
Gryphon, how did you graph that ?

Having some graph is really something that would help with Gekko !
(04-14-2018, 12:01 AM)ManuManu Wrote: Now my question is:
Gryphon, how did you graph that ?

Having some graph is really something that would help with Gekko !

Yes Thank you so much for helping and testing Gryphon!
The graph is super helpful.

@henry sorry for the previous mistakes with my toml file i have fixed it

If anyone is able to run this through one of the genetic algo things to get an idea of good parameters I'd really appreciate it.

I added a stop loss and also I account for the false signal now too (the thing where it goes up midway past the threshold, but then drops right back down).
enable_stop_loss = true # use or don't use the stop loss
stoploss_threshold = 5 # percentage below the last high seen from a long that you should sell

when adjust_false_signal is enabled if you get a false signal - meaning the indicator went past the threshold into the middle, but then went right back before crossing the other threshold.

adjust_false_signal = true
threshold_adjustment = 5

when I try to backtest yours, I am getting an error saying "failed to load indicator" .. Did I perhaps put the indicator in the wrong spot? I'm putting these two files in gekko/strategies/indicators and the toml file in gekko/config/strategies, and then of course this file in gekko/strategies ... is that right?

solved it, I had accidentally STC.js and STC.js.1 in /strategies/indicators and that was somehow messing things up, simply removing STC.js.1 (which was gryphon's version of the indicator) seemed to solve the problem
I will run this through GekkoGA later today i will only test from Feb to today as the bull run over December and Jan really throw out the numbers
My graphing is rather basic... I write everything I want out to a .csv file each check, then open it in excel and graph it out. I kinda think there must be better ways, but it does work.

Check the strat here: The write out is at line 69.
Gryphon, the plot trick is amazing. Thanks for sharing!

Forum Jump:

Users browsing this thread: