Gekko Forum
[TUT] CONFIG-FILE CONVERTOR FOR CLI GEKKO - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Guides (https://forum.gekko.wizb.it/forum-22.html)
+--- Thread: [TUT] CONFIG-FILE CONVERTOR FOR CLI GEKKO (/thread-57274.html)



[TUT] CONFIG-FILE CONVERTOR FOR CLI GEKKO - susitronix - 06-21-2018

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
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


RE: [TUT] CONFIG-FILE CONVERTOR FOR CLI GEKKO - thegamecat - 07-13-2018

You guys might prefer this:

https://github.com/gekkowarez/bruteforce/blob/master/toml-config-converter.js

This will go through the config folder with the toml files in, convert them all into json, and write them all into the config.js (you can configure this in the file).

Saves a lot of time Smile


RE: [TUT] CONFIG-FILE CONVERTOR FOR CLI GEKKO - mrseo - 05-22-2021

I found Hubwit as a transparent s ite, a social hub which is a conglomerate of Buyers and Sellers who are ready to offer online digital consultancy at decent cost. Vakantiehuis huren