[TB源码] 区间突破系统
//------------------------------------------------------------------------// 简称: My_breakoutSYS
// 名称: 区间突破系统
// 类别: 交易指令
// 类型: 其他
// 输出:
//------------------------------------------------------------------------
Vars
Numeric Day5H;
Numeric Day10H;
Numeric Day5L;
Numeric Day10L;
Begin
Day5H = Highest (Close,5);
Day5L = Lowest(Close,5);
Day10H = Highest (Close,10);
Day10L = Lowest(Close,10);
If (Close >= Day10H)
{
BUY(0,Close,TRUE);
}
IF (Close <= Day5L)
{
Sell(0,Close,True);
}
If (Close <= Day10L)
{
SellShort(0,Close,True);
}
IF(Close >= Day5H)
{
BuyToCover(0,Close,True);
}
End
//------------------------------------------------------------------------
// 编译版本 GS2004.06.12
// 用户版本 2011/03/01 14:41
// 版权所有 yezi08895
// 更改声明 TradeBlazer Software保留对TradeBlazer平台
// 每一版本的TrabeBlazer公式修改和重写的权利
//------------------------------------------------------------------------
页:
[1]