[SHARE] Simple RSI BULL/BEAR strategy
(02-09-2018, 09:25 PM)tommiehansen Wrote:
(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

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_RSI: 10,
 BULL_RSI_high: 80,
 BULL_RSI_low: 60,

 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?

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  Wink

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 Smile

Thank you again for your help!

Messages In This Thread
Werkkrew Stoploss - by susitronix - 02-02-2018, 09:39 PM
Removed post - by susitronix - 02-03-2018, 06:49 PM
RE: [SHARE] Simple RSI BULL/BEAR strategy - by gibba - 02-10-2018, 07:21 PM
@Gryphon Confirmation - by mvangoor - 03-22-2019, 11:59 PM
for 3 months - by ankasem - 02-18-2018, 05:30 PM

Forum Jump:

Users browsing this thread: