搜索资源列表
indicators
- matlab 交易技术指标源代码, 包含常用的各种指标RSI, MACD etc-matlab source code for trading technical indicators
MACD
- 可以通过指标自由修改MACD所合计的各种参数,包括权重、周期等,从而实现对股票的观测(You can change the parameter freely,include the period and the weight.So it can help you to make the right choice for stock.)
strategy.m
- macd交易策略代码 % 子函数1:top_sharpes 选取夏普比率最高五只股票 % 子函数2:best_weights 确定最优权重 % 子函数3:my_macd 计算各股macd % 子函数4:backtest 识别买卖信号模拟交易,计算各股累计收益 % 主函数思路:1.设定训练期为1年,测试期为半年 % 2.动态选股:2.1 使用4个子函数计算第i个测试期的累计收益 % 2.2 将第i个测试期并入训练期 %