设为首页收藏本站

 找回密码
 注册
楼主: chengjun1201
打印 上一主题 下一主题

求助编写程序 [复制链接]

Rank: 5Rank: 5

精华
0
UID
4250
积分
891
帖子
198
主题
42
阅读权限
60
注册时间
2009-4-28
最后登录
2019-12-1
11#
发表于 2009-12-8 15:36:01 |只看该作者
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

看着眼行吗

语句少 而且简介

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

bottom

静态版|手机版|联系我们|交易开拓者 ( 粤ICP备07044698   

GMT+8, 2024-5-18 22:00

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部