: | : | :期货程序化 | :期货程序化研究 | :期货量化学习 | :期货量化 |
返回列表 发帖

[MC源码] 开思路的一个策略,这几天将一直研究它

支持

TOP

先收藏一下原版MC上面的策略:
本帖隐藏的内容需要回复才可以浏览
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

下面是解析反手策略:
If MarketPosition = -1 then  Buy("REVERSEtoLONG")  next bar at Value6 stop;

If MarketPosition = +1 then  sellshort("REVERSEtoSHORT")  next bar at Value7 stop;
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

下面是解析的是出场策略:

Value1 = Close + TrueRange[0];
Value2=  Close  - TrueRange[0];

sell("LX-TrabosExit")  next bar  at Value2 stop;
buytocover("SX-TrabosExit") next bar at Value1 stop;上面说了设置了两个区间上下轨,突破上轨做多,之后跌破下轨平多。反之同样。
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

上面进 场类似一个区间突破的策略,上下两轨,突破上轨做多,突破下轨做空。
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

解析:进出场策略
Value6 = Close +  (Buycent/100)*TrueRange;
Value7 = Close -  (Sellcent/100)*TrueRange;
If MarketPosition = 0  then Buy("Trabos Buy") next bar at Value6 stop;
If MarketPosition =0 then  sellshort("Trabos Sell")  next bar at  Value7 stop;

语法:TrueRange

返回(双精度数)
一个包含当前柱状线的 TrueHigh 和 TrueLow 之间差值的数值 。

参数


备注
这个函数类似于 Range,区别在于它使用 TrueHigh 和 TrueLow 值,考虑之前柱状线的收盘价以及当前柱状线的最高价和最低价。

TrueRange 定义为以下数值中较大的数值:

当日 High 与当日 Low 之间的差。

当日 High 与前一日 Close 之间的差。

当日 Low 与前一日 Close 之间的差。

TrueRange = TrueHigh - TrueLow ;

-------------------------------------
truehigh:
  1. if Close[1] < Low then
  2.         TrueLow = Close[1]
  3. else
  4.         TrueLow = Low ;
复制代码

truelow:
  1. if Close[1] < Low then         TrueLow = Close[1]
  2. else
  3.         TrueLow = Low ;
复制代码
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

15分钟螺纹上面跑的效果图:MC没有优化,没有特别设置,均按默认的设置。

如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

返回列表