02-09-2018, 09:25 PM
(This post was last modified: 02-09-2018, 09:26 PM by tommiehansen.)
(02-09-2018, 08:35 PM)gibba Wrote: 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 = {
enabled: true,
method: 'RSI_BULL_BEAR',
candleSize: 15,
historySize: 10,
adapter: 'sqlite'
}
config.RSI_BULL_BEAR = {
//SMA Trends
SMA_long: 1000,
SMA_short: 50,
//BULL
BULL_RSI: 10,
BULL_RSI_high: 80,
BULL_RSI_low: 60,
//BEAR
BEAR_RSI: 15,
BEAR_RSI_high: 50,
BEAR_RSI_low: 20
}
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!
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
tommie
look pretty
we are a little nervous
RSI_BULL_BEAR_ADX.js okey but
settings (code)
where to place
Can you give an example to toml file
thank you
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.