Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Setting time period for simulation? #654

Closed
jasurakk opened this issue Oct 24, 2017 · 8 comments
Closed

Setting time period for simulation? #654

jasurakk opened this issue Oct 24, 2017 · 8 comments
Labels

Comments

@jasurakk
Copy link

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!

@mikeh21
Copy link

mikeh21 commented Oct 25, 2017

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

@jasurakk
Copy link
Author

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?

@mikeh21
Copy link

mikeh21 commented Oct 25, 2017

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

@jasurakk
Copy link
Author

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?

@mikeh21
Copy link

mikeh21 commented Oct 25, 2017

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

@jasurakk
Copy link
Author

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?

@mikeh21
Copy link

mikeh21 commented Oct 25, 2017

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

@DeviaVir
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants