- 精华
- 0
- 在线时间
- 150 小时
- UID
- 4250
- 积分
- 891
- 帖子
- 198
- 阅读权限
- 60
- 注册时间
- 2009-4-28
- 最后登录
- 2019-12-1
- 精华
- 0
- UID
- 4250
- 积分
- 891
- 帖子
- 198
- 主题
- 42
- 阅读权限
- 60
- 注册时间
- 2009-4-28
- 最后登录
- 2019-12-1
|
Vars
NumericSeries nlow;
NumericSeries nflag;
NumericSeries nRSI;
Numeric an;
NumericSeries ncount;
Numeric lowestValue(999999);
Numeric i;
Begin
//初始化
nRSI=RSI(9);
If(BarStatus==0)
{
nflag=0;
}Else
nflag=nflag[1];
If(nRSI<20)
{
nflag=nflag[1]+1;//记录持续低于20的周期数
for i=0 to nflag-1
{
lowestValue=Min(lowestValue,nRSI);}
Commentary("nRSI="+Text(nRSI));
Commentary("nflag="+Text(nflag));
Commentary("nlow="+Text(nlow));
Commentary("ncount="+Text(ncount));
End
看着眼行吗
语句少 而且简介 |
|