用MC写一个策略

来源:互联网 发布:数据切片 编辑:程序博客网 时间:2024/06/07 02:20

策略开发概念

1. 价格关卡

2. 线性转折

3. 交叉比较

4. 权重平分 

RSI MACD

5. 通道偏差

6. 形状颜色


value1 = (high + low)/2;condition1 = close > Average(close, 10);condition2 = close < Average(close, 10);condition3 = close cross over BollingerBand(close, 15, 1.5);condition4 = close cross under BollingerBand(close, 15, -1.5);if condition 1 then     buy next bar at market;else if condition2 then    sellshort next bar at market;setstoploss(10*bigpointvalue);


原创粉丝点击