![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
交易策略
Bruce技术博客
喜欢思考,研究商业问题,喜欢研究技术,思考人性,喜欢简单,自由的生活
展开
-
用MC写一个策略
策略开发概念1. 价格关卡2. 线性转折3. 交叉比较4. 权重平分 RSI MACD5. 通道偏差6. 形状颜色value1 = (high + low)/2;condition1 = close > Average(close, 10);condition2 = close < Average(close, 10);condition3 =原创 2017-11-20 18:02:37 · 1169 阅读 · 0 评论 -
用lua语言写技术指标
FXCM 技术指标可以自动生成大部分代码主要包括 Parameters 和 streams block两部分indicator:name("RSB");indicator:description("");indicator:requiredSource(core.Tick);indicator:type(core.Indicator);indicaotor.p原创 2017-11-23 15:20:59 · 491 阅读 · 0 评论 -
写技术指标的一般方法
写技术指标的一般方法:技术指标是什么?以均线为例,是数列,即array, 名称数量:位置排序一根Bar对应一个value,技术指标的计算:数据源data source (market price or output)计算方法(onBar, onTick, onTimer)技术指标参数:参数类型parameter attributes指标输出:原创 2017-11-24 17:08:35 · 7811 阅读 · 0 评论 -
How to use another indicator in your code?
1) Create an instance of the indicator in your prepare() function举例local mva7;local stream;function Prepare() mva7 = core.indicators:create("MVA", source, 7); stream = instance:addStream原创 2017-11-25 09:48:21 · 146 阅读 · 0 评论 -
写一个交易策略的基本框架
写一个交易策略的基本框架A framework to a trading strategy1. 仓位个数MaxSpread > 0 && (ASK - BID) > MaxSpreadCalculationModel !=0 && isNewBarif(MultiOrder) maxOrder =12. 条件 filter condition executi原创 2018-01-04 18:57:34 · 1464 阅读 · 0 评论