期货日内交易系统 [开拓者 TB]
- 咨询内容:
//1、最好使用在每日波动大于100点的品种上
//2、使用在一分钟K线图。
//3、做空:要求均线系统5、10同时在20下,20在30下,30在60下空头排列,
// 期价反弹上5、10,但不能导致5、10线反弹上20线,其后又跌破5、10做空,
// 注意一定是收盘价先上5、10线,然后再下5、10线时做空。
//4、平仓:收盘价上MA5平仓或止损。
//5、买多相反
求编程 - TB技术人员:
params
numeric length1(5);
numeric length2(10);
numeric length3(20);
numeric length4(30);
numeric length4(60);
Numeric ExitOnCloseMins(14.55);
numeric lots(1);
vars
numeric ma1(5);
numeric ma2(10);
numeric ma3(20);
numeric ma4(30);
numeric ma4(60);
begin
ma1 = xaverage (close , length1);
ma2 = xaverage (close , length2);
ma3 = xaverage (close , length3);
ma4 = xaverage (close , length4);
If(Date<>Date[1] and Time<ExitOnCloseMins/100)
{
if( ma1[1]<ma3[1] and ma2[1] <ma3[1] and ma3[1] < ma4[1])
{
if ( ma1[1] < ma4[1] and ma2[1] <ma4[1])
{
if (close[1]>ma1[1] and close[1] > ma2[1] )
{
if ( low < ma1[1] and low <ma2[1] )
{
sellshort(lots ,open);
}
}
}
}
If(Time>=ExitOnCloseMins/100)
{
if (low <ma1[1] and low <ma2[1] )
{
buytocover(0.0);
}
}
end
以上代码,我没有测试,不过希望给一个提示。 - TB客服:
- 网友回复: 代码里面有问题吧
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容