- 精华
- 2
- 在线时间
- 2808 小时
- UID
- 4130
- 积分
- 20901
- 帖子
- 6519
- 阅读权限
- 200
- 注册时间
- 2009-4-15
- 最后登录
- 2019-4-12
- 精华
- 2
- UID
- 4130
- 积分
- 20901
- 帖子
- 6519
- 主题
- 17
- 阅读权限
- 200
- 注册时间
- 2009-4-15
- 最后登录
- 2019-4-12
|
将收盘价大于MA(C,60)条件记录下来
if(close[1]>AverageFC(Close,60))
settbprofilestring(symbol,"ma","true");
获取三个品种的条件,判断是否满足
rucon = gettbprofilesting("ru1205","ma");
tacon = gettbprofilesting("ta1205","ma");
ifcon = gettbprofilesting("if1205","ma");
if(rucon == "true" && tacon == "true" && ifcon == "true" )
{
buy(1,close);
} |
|