搜索
人大经济论坛 附件下载

附件下载

所在主题:
文件名:  如何用EasyLanguage编写指标与策略.docx
资料下载链接地址: https://bbs.pinggu.org/a-2376604.html
附件大小:
317.21 KB   举报本内容

EasyLanguage 编写指标与策略快速入门
[size=12.0000pt]
[size=12.0000pt]
一、 指标设置
[size=12.0000pt]
[size=12.0000pt]
[size=10.5000pt]可在[size=10.5000pt]“[size=10.5000pt]图形分析[size=10.5000pt]”[size=10.5000pt]与[size=10.5000pt]“[size=10.5000pt]雷达屏[size=10.5000pt]”[size=10.5000pt]两种窗口插入指标。
[size=12.0000pt]
[size=10.5000pt]选中[size=10.5000pt] “[size=10.5000pt]雷达屏[size=10.5000pt]”[size=10.5000pt]窗口,点击菜单栏[size=10.5000pt]“[size=10.5000pt]插入[size=10.5000pt]”[size=10.5000pt]->[size=10.5000pt]“[size=10.5000pt]指标[size=10.5000pt]”[size=10.5000pt],即可打开[size=10.5000pt]“[size=10.5000pt]插入分析技术[size=10.5000pt]”[size=10.5000pt]界
[size=12.0000pt]
[size=10.5000pt]面,界面中的按钮可以进行相应操作:
[size=12.0000pt]
[size=10.5000pt]l [size=10.5000pt]添加[size=10.5000pt]/[size=10.5000pt]删除:窗口内指标的添加、删除。
[size=21.0000pt]
[size=9.0000pt]l [size=9.0000pt]定义:打开[size=9.0000pt] TradeStation [size=9.0000pt]帮助文档,查看系统自带指标的定义。
[size=16.5000pt]
[size=9.0000pt]l [size=9.0000pt]编辑[size=9.0000pt] EasyLanguage[size=9.0000pt]:打开[size=9.0000pt] TradeStation [size=9.0000pt]开发环境,浏览[size=9.0000pt]/[size=9.0000pt]修改指标源代码。
[size=16.5000pt]
[size=9.0000pt]l [size=9.0000pt]导入:通过系统外部的[size=9.0000pt] ELD [size=9.0000pt]文件,导入系统外的指标。
[size=16.5000pt]
[size=9.0000pt]l [size=9.0000pt]上移[size=9.0000pt]/[size=9.0000pt]下移:改变指标在窗口内的排序。
[size=16.5000pt]
[size=8.5000pt]l [size=8.5000pt]设置:打开指标设置界面,设置指标具体参数。
[size=15.0000pt]
[size=10.5000pt]指标设置界面中的六张选项卡可以设置指标的各个参数。
[size=15.0000pt]
[size=10.5000pt]l [size=10.5000pt]“[size=10.5000pt]常规[size=10.5000pt]”[size=10.5000pt]选项卡:设置指标的计算细节。
[size=21.0000pt]
[size=9.0000pt]w [size=9.0000pt]引用的最大图条数量:指定可以追溯的历史[size=9.0000pt] Bar [size=9.0000pt]的数量。
[size=16.5000pt]
[size=9.0000pt]w [size=9.0000pt]Bar [size=9.0000pt]内更新值:若取消该项,则只在[size=9.0000pt] Bar [size=9.0000pt]结束时调用一次指标的计算。
[size=16.5000pt]
[size=8.5000pt]w [size=8.5000pt]为累积计算加载更多数据:是否允许数据缓存。
[size=15.0000pt]
[size=8.5000pt]w [size=8.5000pt]币种:选择币种。
[size=15.0000pt]
[size=8.5000pt]l [size=8.5000pt]“[size=8.5000pt]输入值[size=8.5000pt]”[size=8.5000pt]选项卡:修改指标的输入参数。
[size=15.0000pt]
[size=9.0000pt]w [size=9.0000pt]词典:打开[size=9.0000pt] EasyLanguage [size=9.0000pt]字典,查看[size=9.0000pt] EL [size=9.0000pt]函数的声明。
[size=16.5000pt]
[size=8.5000pt]w [size=8.5000pt]默认值:恢复指标参数为默认值。
[size=15.0000pt]
[size=8.5000pt]l [size=8.5000pt]“[size=8.5000pt]预警[size=8.5000pt]”[size=8.5000pt]选项卡:设置预警条件被触发时的响应方式。
[size=15.0000pt]
[size=8.5000pt]l [size=8.5000pt]“[size=8.5000pt]样式[size=8.5000pt]”[size=8.5000pt]选项卡:设置指标的文本样式。
[size=15.0000pt]
[size=8.5000pt]l [size=8.5000pt]“[size=8.5000pt]颜色[size=8.5000pt]”[size=8.5000pt]选项卡:设置指标的文本颜色。
[size=15.0000pt]
[size=8.5000pt]l [size=8.5000pt]“[size=8.5000pt]高级[size=8.5000pt]”[size=8.5000pt]选项卡:设置计算过程的优化规则。
[size=12.0000pt]
[size=10.5000pt]与[size=10.5000pt]“[size=10.5000pt]雷达屏[size=10.5000pt]”[size=10.5000pt]类似,选中[size=10.5000pt]“[size=10.5000pt]图形分析[size=10.5000pt]”[size=10.5000pt]窗口,点击菜单栏[size=10.5000pt]“[size=10.5000pt]插入[size=10.5000pt]”[size=10.5000pt]->[size=10.5000pt]“[size=10.5000pt]指标[size=10.5000pt]”[size=10.5000pt]即可插入
[size=12.0000pt]
[size=10.5000pt]指标。
[size=12.0000pt]

[size=9.0000pt]1


[size=10.0000pt]
[size=10.0000pt]
二、 策略设置
[size=10.0000pt]
[size=10.0000pt]
[size=10.5000pt]可在[size=10.5000pt]“[size=10.5000pt]图形分析[size=10.5000pt]”[size=10.5000pt]、[size=10.5000pt]“[size=10.5000pt]步进优化器[size=10.5000pt]”[size=10.5000pt]、[size=10.5000pt]“[size=10.5000pt]组合管理大师[size=10.5000pt]”[size=10.5000pt]三种窗口插入策略。此处仅介绍在
[size=10.0000pt]
[size=10.5000pt]图形分析窗口中插入策略。
[size=10.0000pt]
[size=10.5000pt]选中[size=10.5000pt] “[size=10.5000pt]图形分析[size=10.5000pt]”[size=10.5000pt]窗口,点击菜单栏[size=10.5000pt]“[size=10.5000pt]插入[size=10.5000pt]”[size=10.5000pt]->[size=10.5000pt]“[size=10.5000pt]策略[size=10.5000pt]”[size=10.5000pt],即可打开[size=10.5000pt]“[size=10.5000pt]插入策略[size=10.5000pt]”[size=10.5000pt]界面,
[size=10.0000pt]
[size=10.5000pt]界面中的按钮可以进行相应操作:
[size=10.0000pt]
[size=10.5000pt]l [size=10.5000pt]定义:打开[size=10.5000pt] TradeStation [size=10.5000pt]帮助文档,查看系统自带策略的定义。
[size=21.0000pt]
[size=9.0000pt]l [size=9.0000pt]编辑[size=9.0000pt] EasyLanguage[size=9.0000pt]:打开[size=9.0000pt] TradeStation [size=9.0000pt]开发环境,浏览[size=9.0000pt]/[size=9.0000pt]修改策略源代码。
[size=16.5000pt]
[size=9.0000pt]l [size=9.0000pt]导入:通过系统外部的[size=9.0000pt] ELD [size=9.0000pt]文件,导入系统外的策略。
[size=16.5000pt]
[size=10.5000pt]l [size=10.5000pt]“[size=10.5000pt]提示设置[size=10.5000pt]”[size=10.5000pt]复选框:选中后,下一步可以在[size=10.5000pt]“[size=10.5000pt]设置分析技术及策略[size=10.5000pt]”[size=10.5000pt]页面设置策略的具体参数。
[size=10.0000pt]
[size=10.5000pt]“[size=10.5000pt]设置分析技术及策略[size=10.5000pt]”[size=10.5000pt]页面提供了策略参数设置的有关操作:
[size=10.0000pt]
[size=10.5000pt]l [size=10.5000pt]设置:可以填写策略的输入参数、进场平仓信号图形的颜色形状、图条内交易的计算规则。
[size=21.0000pt]
[size=10.5000pt]l [size=10.5000pt]通用属性:设置成本、佣金、利率,仓位限制,交易规模,回测数据的粒度;以及回测计算规则、策略执行逻辑。
[size=21.0000pt]
[size=10.5000pt]l [size=10.5000pt]切换状态:设置策略的打开[size=10.5000pt]/[size=10.5000pt]关闭。
[size=21.0000pt]
[size=9.0000pt]l [size=9.0000pt]上移[size=9.0000pt]/[size=9.0000pt]下移:改变指标在窗口内的排序。
[size=16.5000pt]
[size=9.0000pt]l [size=9.0000pt]编辑[size=9.0000pt] EasyLanguage[size=9.0000pt]:打开[size=9.0000pt] TradeStation [size=9.0000pt]开发环境,浏览[size=9.0000pt]/[size=9.0000pt]修改策略源代码。
[size=16.5000pt]
[size=8.5000pt]l [size=8.5000pt]删除:在图形分析界面删除该策略。
[size=10.0000pt]
[size=10.0000pt]
三、 EL 简介
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]EasyLanguage[size=10.0000pt],简称[size=10.0000pt] EL[size=10.0000pt],是由美国[size=10.0000pt] TradeStation [size=10.0000pt]证券公司所开发的[size=10.0000pt] TradeStation [size=10.0000pt]平台的专
[size=10.0000pt]

[size=10.5000pt]属程序化语言。[size=10.5000pt]EasyLanguage [size=10.5000pt]接近英语自然语言,由常见的英文单词和标点符号构成,可

[size=10.0000pt]

[size=10.0000pt]读性非常高,而且它还封装了很多对象组件供开发者使用,与其他计算机语言相比,更容易

[size=10.0000pt]
[size=10.5000pt]上手。
[size=10.0000pt]
[size=10.5000pt]在交易应用程序列表里,选择[size=10.5000pt] EasyLanguage [size=10.5000pt]图标,便可打开[size=10.5000pt] EL [size=10.5000pt]的开发环境编写个性化
[size=10.0000pt]
[size=10.5000pt]的指标和策略。
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]

[size=9.0000pt]2


[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.0000pt]
[size=10.5000pt]l [size=10.5000pt]在[size=10.5000pt] TradeStation [size=10.5000pt]开发环境中,点击[size=10.5000pt]“[size=10.5000pt]文件[size=10.5000pt]”[size=10.5000pt]->[size=10.5000pt]“[size=10.5000pt]新建[size=10.5000pt]”[size=10.5000pt]->[size=10.5000pt]“[size=10.5000pt]指标[size=10.5000pt]”[size=10.5000pt]即可编写新的指标。
[size=21.0000pt]
[size=10.5000pt]l [size=10.5000pt]在[size=10.5000pt] TradeStation [size=10.5000pt]开发环境中,点击[size=10.5000pt]“[size=10.5000pt]文件[size=10.5000pt]”[size=10.5000pt]->[size=10.5000pt]“[size=10.5000pt]新建[size=10.5000pt]”[size=10.5000pt]->[size=10.5000pt]“[size=10.5000pt]策略[size=10.5000pt]”[size=10.5000pt]即可编写新的策略。完成指标代码编写后,点击工具栏[size=10.5000pt]“[size=10.5000pt]验证[size=10.5000pt]”[size=10.5000pt]按钮,进行程序的内容检查。通过验证的指
[size=10.0000pt]
[size=10.5000pt]标或策略就可以在[size=10.5000pt] TradeStation [size=10.5000pt]界面中使用了。
[size=10.0000pt]
[size=10.0000pt]
[size=16.0000pt]1)

[size=10.0000pt]




    熟悉论坛请点击新手指南
下载说明
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。
2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。
3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。
(如有侵权,欢迎举报)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

GMT+8, 2026-2-6 17:01