06-21-2018, 04:25 PM
(This post was last modified: 06-21-2018, 04:30 PM by susitronix.)
for the CLI-gekko (terminal gekko) we must set up the sample-config.js.
our strategie has its "my_strategie.toml" file, but in the config IT MUST BE AS JSON-style CODE.
if you do not use the backtest Machine from xFFFFF,
you can simply use an online tool that makes the conversation for you.
this is very easy and never makes an error.!!!
go to this page:
toml-json convertor
here simply copie paste your .toml code
now copie/paste the created .json code into your sample-config.js, as you can learn from my other Tutorial:
TUT#5
just scroll down and find the thread :-)
thanks to xFFFFF, Matias Korhonen, and Ankasem
hope this helps
our strategie has its "my_strategie.toml" file, but in the config IT MUST BE AS JSON-style CODE.
if you do not use the backtest Machine from xFFFFF,
you can simply use an online tool that makes the conversation for you.
this is very easy and never makes an error.!!!
go to this page:
toml-json convertor
here simply copie paste your .toml code
Code:
[___trendatron___]
#<<<>>><<<>>>#
__longPos = false
#>>><<<>>><<#
[_backtest_start_]
__________day = 1
______month = 4
_____hour = 18
_minute = 38
candle_size = 1
#<<<>>><<<>>>#
[RSI]
optInTimePeriod = 30
[trsRSI]
high = 68
low = 30
[___stop_abs____]
stop_abs = -1.7
abs_exp = -250
now copie/paste the created .json code into your sample-config.js, as you can learn from my other Tutorial:
Code:
{
"___trendatron___": {
"__longPos": false
},
"_backtest_start_": {
"__________day": 1,
"______month": 4,
"_____hour": 18,
"_minute": 38,
"candle_size": 1
},
"RSI": {
"optInTimePeriod": 30
},
"trsRSI": {
"high": 68,
"low": 30
},
"___stop_abs____": {
"stop_abs": -1.7,
"abs_exp": -250
}
}
TUT#5
just scroll down and find the thread :-)
thanks to xFFFFF, Matias Korhonen, and Ankasem
hope this helps