zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

Setting time period for simulation?

Open jasurakk opened this issue 9 years ago • 8 comments

How exactly do I tell the time period for the wanted simulation strategy?? I if a take a look for what "zenbot sim --help" returns, it gives me these options: --conf path to optional conf overrides file --strategy strategy to use --order_type order type to use (maker/taker) --filename filename for the result output (ex: result.html). "none" to disable --start start at timestamp --end end at timestamp --days set duration by day count --currency_capital amount of start capital in currency --asset_capital amount of start capital in asset --avg_slippage_pct avg. amount of slippage to apply to trades --buy_pct buy with this % of currency balance --sell_pct sell with this % of asset balance --markup_pct % to mark up or down ask/bid price --order_adjust_time adjust bid/ask on this interval to keep orders competitive --sell_stop_pct sell if price drops below this % of bought price --buy_stop_pct buy if price surges above this % of sold price --profit_stop_enable_pct enable trailing sell stop when reaching this % profit --profit_stop_pct maintain a trailing stop this % below the high-water mark of profit --max_sell_loss_pct avoid selling at a loss pct under this float --max_slippage_pct avoid selling at a slippage pct above this float --symmetrical reverse time at the end of the graph, normalizing buy/hold to 0 --rsi_periods number of periods to calculate RSI at --disable_options disable printing of options --enable_stats enable printing order stats --verbose print status lines on every period -h, --help output usage information

There is this "strategy"- setting, but no "time period" to be used for that strategy anywhere? Could someone provide a basic config file for simulation, just to get started?? Thank you!

jasurakk avatar Oct 24 '17 13:10 jasurakk

answer is in your question;

--start start at timestamp --end end at timestamp

eg: zenbot sim --start '2017-06-10' --end '2017-06-17' gdax.eth-usd --strategy=trend_ema

mikeh21 avatar Oct 25 '17 14:10 mikeh21

Thank you mikeh21 for your answer, and sorry for my vague question; what I actually tried to ask for was how to set period such as M15, H2 or D1, meaning the period for the used strategy? There doesn't seem to be any setting for that?

jasurakk avatar Oct 25 '17 17:10 jasurakk

ok sorry for confusion.

you can set period in strategy settings

eg: zenbot sim --strategy=trend_ema --period=1h

zenbot list-strategies - will list the settings and configuration available for each strategy

mikeh21 avatar Oct 25 '17 17:10 mikeh21

Aaaa OK, so that "zenbot sim --help" does not actually list ALL possible settings for the simulation! So I could basically create one simulation_conf.js- file that contains all settings listed by "zenbot sim --help" and "zenbot list-strategies", right?

jasurakk avatar Oct 25 '17 18:10 jasurakk

--period is a setting for the chosen strategy. not a simulation setting.

each strategy has its own individual settings.you can see this from "zenbot list-strategies"

mikeh21 avatar Oct 25 '17 18:10 mikeh21

Ok, but do I need a different conf- file for both strategy- and simulation settings? Or can they both be on the same file, which is then used with --conf- parameter?

jasurakk avatar Oct 25 '17 18:10 jasurakk

no, and the command line settings will overide anything set in conf.js anyway

mikeh21 avatar Oct 25 '17 18:10 mikeh21

Dear issue reporter,

We have slightly changed our github issue policy and would now kindly request folks that have questions that they ask them in our zenbot subreddit.

You can find it here: https://reddit.com/r/zenbot

This issue will be closed, but if you disagree with your ticket being marked as a question feel free to leave a comment defending your case.

Thanks for contributing time and effort!

Greetings, 🤖

DeviaVir avatar Feb 28 '18 11:02 DeviaVir