• Talib

    real = MAVP(close, periods, minperiod=2, maxperiod=30, matype=0)
    
  • periods的意义

    This is what the function does. It gets an input price array, and a periods array that are the same length. The output price array is the moving average at the point using the specified period at the point. So, if you have an array of [1, 5, 3, 8] and you specify periods [2,3,3,2] then the output will be:

    [SMA(2)[0], SMA(3)[1], SMA(3)[2], SMA(2)[3]]
    

    With the exception that it puts maxperiods number of nan’s at the front, for some reason so you’d need to call it like:

    >>> prices = np.array([1,5,7,8], dtype=float)
    >>> periods =np.array([2,3,3,2], dtype=float)
    >>> ta.MAVP(prices, periods, maxperiod=3)
    array([        nan,         nan,  4.33333333,  7.5       ])>>> ta.SMA(prices, 2)
    array([ nan,  3. ,  6. ,  7.5])>>> ta.SMA(prices, 3)
    array([        nan,         nan,  4.33333333,  6.66666667])
    
  • References

  1. Ta-Lib: What is the Idea of Periods in MAVP - (Moving average with variable period)?

Talib.MAVP中的periods参数意义相关推荐

  1. oracle的mode,Oracle中使用optimizer_mode参数意义

    Oracle使用Optimizer_mode参数来控制优化器的偏好,9i常用的几个参数有:first_rows,all_rows,first_rows_N,rule ,choose等.而10g少了ru ...

  2. FFmpeg 中的一些参数意义(tbr, tbn, tbc)

    一.系统打印命令解析 在此命令执行过程中,我们可以看到如下数据: 1.ffmpeg在运行过程中需要用到的lib库如下 libavutil      52. 47.101 / 52. 47.101 li ...

  3. **matlab 中svmtrain函数参数的意义 及设定

    matlab 中svmtrain函数参数的意义 及设定 model = svmtrain(training_label_vector, training_instance_matrix, 'libsv ...

  4. Amber中的NMR restraint中的一些参数的设置的意义

    在对结构中的对距离角度,二面角,距离等加入限制时需要首先在输入文件中加入一些参数来应用这些限制. DISANG="限制文件的路径"          nmropt 参数值设置为大于 ...

  5. U-boot中LPDDR4关键参数的意义

    LPDDR4关键参数意义 #!/usr/bin/env python3 import struct# 手动配置: 0-disable; 1-enable manual_config = 0# DDR的 ...

  6. python参数传递方法_深入理解python中函数传递参数是值传递还是引用传递

    python 的 深入理解python中函数传递参数是值传递还是引用传递 目前网络上大部分博客的结论都是这样的: Python不允许程序员选择采用传值还是传 引用.Python参数传递采用的肯定是&q ...

  7. sklearn中的RandomForestClassifier参数详解

    https://blog.csdn.net/qq_16633405/article/details/58596368 相当有思考的文章 sklearn随机森林分类类RandomForestClassi ...

  8. 神经网络中激活函数的真正意义?

    神经网络中激活函数的真正意义?一个激活函数需要具有哪些必要的属性?还有哪些属性是好的属性但不必要的? (1)非线性:即导数不是常数.这个条件是多层神经网络的基础,保证多层网络不退化成单层线性网络.这也 ...

  9. C#开发Unity游戏教程之Unity中方法的参数

    C#开发Unity游戏教程之Unity中方法的参数 Unity的方法的参数 出现在脚本中的方法,无论是在定义的时候,还是使用的时候,后面都跟着一对括号"( )",有意义吗?看起来最 ...

  10. Redis运维和开发学习笔记(4) Redis参数意义

    Redis运维和开发学习笔记(4) Redis参数意义 文章目录 Redis运维和开发学习笔记(4) Redis参数意义 参数意义 参数意义 Client连接 问题 id=567800790 addr ...

最新文章

  1. 服务器系统加速,系统加速技巧:让Linux启动更加快速
  2. linux下用户配置文件与系统配置文件
  3. 刀片服务器和机架服务器性能,刀片服务器与机架服务器的区别是什么 刀片服务器与机架服务器的区别介绍...
  4. 深度学习-词嵌入(word2vec)
  5. java gbk汉字 10进制,用java程序将GBK字符转成UTF-8编码格式
  6. 特斯拉下一代Roadster跑车生产时间再度推迟至2023年
  7. 麻省、北大、清华等顶尖高校与企业 20 位强化学习专家齐聚,RLChina 2021 强化学习暑期课免费报名啦!...
  8. 计算机组成原理 实验报告
  9. web前端知识体系之基础知识 - CSS语言和功能
  10. 以实例说明,网吧组网方案详解!(转)
  11. SPIKE创新科技套装做探路机器人(上)
  12. 什么是雪花算法?啥原理?
  13. Ubuntu 20.04 QGIS update 报错 GPG error: https://ubuntu.qgis.org/ubuntu jammy InRelea
  14. matlab站点插值格点,基于xarray的气象场站点和格点插值
  15. 解决Mac下pycharm不提示element.click()方法
  16. 领域驱动设计实践框架-COLA的解读
  17. 屏幕长度与像素长度的转换
  18. 改造vue-quill-editor: 结合element-ui上传图片到服务器
  19. android+驾考软件开发,「驾考app开发」驾考app开发解决方案
  20. 微信小程序下拉刷新不执行 enablePullDownRefresh

热门文章

  1. 用Excel自带图表插入带分类变量的箱形图(单坐标轴并列箱)
  2. Scholar ID
  3. 机器学习实战 | SKLearn入门与简单应用案例
  4. Reached heap limit Allocation failed - JavaScript heap out of memory
  5. m3u8加密文件原理及下载脚本
  6. VMware Workstation未能挂起虚拟机
  7. 移动web开发+前端框架bootstrap相关笔记(二)
  8. Machine Learning/Random Projection
  9. 论文那些事—Admix: Enhancing the Transferability of Adversarial Attacks
  10. ENFJ型的人:什么样的人很适合人工智能方向