Comments (5)
要附上相应的代码与对应时间周期。
肯定是不对的。顶底共用K线了。
from czsc.
@rabbit666666 按原文,这里肯定是不构成笔。如果要按原文画笔,环境变量参数相应的要调整。参考 https://github.com/waditu/czsc/blob/master/czsc/envs.py
from czsc.
谢谢回复。请问,是“ czsc_min_bi_len”参数吗?我是用的是默认的“6”,绘制结果就是上面的图。
请问,是不是还有别的参数?
from czsc.
我用的是BTCUSDT的数据,4小时数据,这两根K线是:2022-7-01 4:00~8:00和 2022-7-01 8:00~12:00,时区是UTC+8.
做的修改:
1:代码我就是用的quick_start.py的示例代码,把获取的数据转换成了RawBar。
2:模拟F60,增加了一个F240的频率。
3.:针对F240,增加了4小时间隔的时刻。
其余的就没了。
from czsc.
新版czsc增加了涨跌幅度条件成笔,不是原文的条件。
bi_change_th ,看环境变量定义 https://github.com/waditu/czsc/blob/master/czsc/envs.py
from czsc.
Related Issues (20)
- BarGenerator对连续交易市场k线合成不兼容 HOT 2
- __update_bi函数,未成笔的无包含k数如果小于3则退出,建议放到笔破坏处理的代码后面,具体如下: HOT 1
- 如果没有掘金终端,对应的功能如何替代。 HOT 2
- 代码理解 HOT 2
- update函数,更新持仓状态,没有新的开仓event,也会更新 last_event HOT 1
- 建议:兼容跨端用户 HOT 1
- czsc-0.9.17\examples\strategy_quick_start.py指标没有更新 HOT 1
- examples/ts_stocks_sensors.py 不能运行 HOT 1
- CZSC的fx_list里面会出现重复分型 HOT 3
- 代码逻辑错误:类CzscTrader的get_ensemble_pos方法
- get_signals_config解析信号错误 HOT 1
- 生成echart html文件的笔画法错误
- k线合并有个问题 HOT 3
- dummy.one_symbol_dummy函数执行出错 HOT 1
- 集中反馈一批信号问题
- 如何对接 QMT?新手刚接触,请作者给个简单教程,谢谢 HOT 1
- 【check_bi函数】查找极值时根据min_bi_len过滤
- 只有分型和笔,没有线段和中枢算法吗? HOT 5
- 个别数据在绘制笔时有问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from czsc.