分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册
当前位置:分析家公式网股票公式开拓者公式 → 一键转帖:自编RSI指标

软件名称:[B]自编RSI指标[/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:0 Bytes
官方主页:Home Page
更新时间:2015-04-08 02:47:30
软件简介:

// 简称: RSI_test

// 名称: 相对强弱指数测试版

// 类别: 技术指标

// 类型: 其它类

// 输出:

//------------------------------------------------------------------------

Params

    Numeric  Length(14);

        Numeric  Oversold(30);

        Numeric  Overbought(70);

Vars

    Numeric  Upvalue(0);

        Numeric  Downvalue(0);

        Numeric  i;

    Numeric  RSvalue;

        Numeric  RSIvalue;

Begin

    If(CurrentBar < Length )

           RSIvalue = InvalidNumeric;

        Else

           For i = length - 1 DownTo 0

             {

                    If(Close > Close[i+1])

                          {

                             Upvalue = Upvalue + Close;

                          }

                        Else If(Close < Close[i+1])

              {

                             Downvalue = Downvalue + Close;

                          }                        

                        RSvalue = (Upvalue/Length)/(Downvalue/Length);

            RSIvalue = 100*RSvalue/(1+RSvalue);                         

                 }

        PlotNumeric("RSI",RSIvalue);

    PlotNumeric("超买",Overbought);

    PlotNumeric("超卖",Oversold);

End

//------------------------------------------------------------------------

// 编译版本        GS2004.06.12

// 用户版本        2009/09/06 08:57

// 版权所有        larsir

// 更改声明        TradeBlazer Software保留对TradeBlazer评台

//                        每一版本的TrabeBlazer公式修改和重写的权利

//------------------------------------------------------------------------


[url=http://www.70822.com/soft/sort013/sort083/down-82949.html]自编RSI指标[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:15.62500 毫秒