[SHARE] Simple RSI BULL/BEAR 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: [SHARE] Simple RSI BULL/BEAR strategy (/thread-100.html) |
RE: [SHARE] Simple RSI BULL/BEAR strategy - gibba - 02-09-2018 Hello and thanks for sharing this strategy! I'm trying to figure out how to set parameters in config.js using commandline not gekko UI Code: config.tradingAdvisor = { Is this right? Looking at other strategies in the config.js file i see they use a "thresholds" nested brackets, but i don't know hot to adapt that for this strategy. Thank you! RE: [SHARE] Simple RSI BULL/BEAR strategy - tommiehansen - 02-09-2018 (02-09-2018, 08:35 PM)gibba Wrote: Hello and thanks for sharing this strategy! Threshholds is a function that this strategy does not use, just like it doesn't use Double EMA or other things that could be used. Thus you would have to write such functions for this strategy if you would like to use such things. Different strategies make use of different settings since they rely on different indicators, methods etc. If you find it hard to change params use the UI? (02-09-2018, 08:02 PM)ankasem Wrote: Thank you very much That strategy does not use a TOML-file for its settings since it's hard coded (since it's a test). If you would like to use a TOML-file you simply would have to write one + remove the /* TEMP: set params */ from the JS-code. RE: [SHARE] Simple RSI BULL/BEAR strategy - ankasem - 02-09-2018 Thanks for the quick response success follows RE: [SHARE] Simple RSI BULL/BEAR strategy - Nima - 02-09-2018 (02-09-2018, 07:53 PM)tommiehansen Wrote:(02-09-2018, 02:26 PM)Nima Wrote: Thank you, Thx. This would help finding good Parameters: https://github.com/Gab0/japonicus/issues/74 RE: [SHARE] Simple RSI BULL/BEAR strategy - tommiehansen - 02-10-2018 (02-09-2018, 10:10 PM)Nima Wrote:(02-09-2018, 07:53 PM)tommiehansen Wrote:(02-09-2018, 02:26 PM)Nima Wrote: Thank you, All these seem over-engineered and i have yet to get any GA working. I'll look into the gekko api to see if i can just POST, get data and append to csv files etc. It would seem one could just create some simple php + ajax stuff for this. php would not require any depedencies except a running server so would be easy to setup and run for most. This is off topic for this thread though, started a GA-thread here: https://forum.gekko.wizb.it/thread-1460.html RE: [SHARE] Simple RSI BULL/BEAR strategy - gibba - 02-10-2018 (02-09-2018, 09:25 PM)tommiehansen Wrote:(02-09-2018, 08:35 PM)gibba Wrote: Hello and thanks for sharing this strategy! Hello and thanks for your answer! Is not that i find it hard to modify params in config.js, is the opposite, i find it as easy as to open vim editor. My question was more towards the syntax i need to use in config.js. Is my previous example correct? Will it work as expected using my snippet of code? Taking your words about thresholds it seems that my example it's ok I can't/wan't use UI because i'm over ssh on a VPS, no risks opening a new port to the net and some extra features like Telegram Thank you again for your help! RE: [SHARE] Simple RSI BULL/BEAR strategy - tommiehansen - 02-11-2018 Config.js is to configure output from TOML-files RSI BULL/BEAR ADX does not have a TOML-file so it simply will not work. In order for it to work you would have to: 1. Create a TOML-file 2. Make that test-strategy use it (by removing the TEMP-params in the strategy.js file); all the this.settings.XXXXX = stuff that should go into the TOML-file without the 'this.settings'. See other strategies for how it works. The syntax one has to use in the config.js is out of the scope for this thread and would seem to be more of a general Gekko question? RE: [SHARE] Simple RSI BULL/BEAR strategy - gibba - 02-11-2018 (02-11-2018, 12:10 AM)tommiehansen Wrote: Config.js is to configure output from TOML-files RSI BULL/BEAR ADX does not have a TOML-file so it simply will not work. Hallo Tommie, i don't use ADX version but the strategy you shared in the first post My original question was just how to convert your TOML file to an usable config.js I have received an advice from the live testing i'm currently running (with the config.js i have posted above) so I think I succeeded Anyway i will keep your 2 steps instructions for a future references WITH ADX Thanks! RE: [SHARE] Simple RSI BULL/BEAR strategy - xFFFFF - 02-11-2018 Code: config.RSI_BULL_BEAR = { RE: [SHARE] Simple RSI BULL/BEAR strategy - gibba - 02-11-2018 (02-11-2018, 07:29 PM)xFFFFF Wrote: Yes i know, it was a post of mine |