分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]赢亏百分比--BS指标成功率一目了解[/B]
软件类型:国产软件
运行环境:Win9X/2000/XP/2003/
软件语言:简体中文
授权方式:解密版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2009-01-19 14:06:58
软件简介:

赢亏百分比--BS指标成功率一目了解


 

通达信新版本可以用,老版输出不能大于16条,可能用不了.一个计算 B S 类操盘系统的小工具,只在指标栏中占用1厘米多的空间.可以自动计算出自B点买入价到S点卖出价之间的赢亏百分比,红色代表赢利,绿色代表亏损."发"的意思代表赢利超过100&以上.这样操盘指标的成功率高低一目了然.下面的代码不能真接用,需加在你的操盘指标代码中.只需对前面两句买入和卖出条件代码修改一下合入你的指标中即可.其中第四句 D2:=FLOOR(((C-REF(C,D))/REF(C,D))*100);存在一点小问题,至今也没找到原因.当买入价咯与卖出价咯相当时,出现了一个条件空白区,输出了所有信号,这点请大家注意,当出现一个看不清的数字时,大概代表是"0"的意思.如能有高手解决这个问题或有更简单的办法不胜感激.不会改指标的把你的代码发出来,我帮你改.

买入条件:=由你自己定义
卖出条件:=由你自己定义
D1:=BARSLAST(买入条件);
D2:=FLOOR(((C-REF(C,D1))/REF(C,D1))*100);
0.95,COLORBLACK;
1.1,COLORBLACK;
DRAWTEXT(卖出条件,1,IF(D2=0,'0',DRAWNULL)),COLORWHITE;
DRAWTEXT(卖出条件,1,IF(D2>0 AND D2<3,'2',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=3 AND D2<7,'5',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=7 AND D2<9,'8',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=9 AND D2<12,'10',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=12 AND D2<14,'12',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=14 AND D2<17,'15',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=17 AND D2<20,'18',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=20 AND D2<23,'22',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=23 AND D2<27,'25',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=27 AND D2<31,'30',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=31 AND D2<33,'32',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=33 AND D2<36,'35',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=36 AND D2<39,'38',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=39 AND D2<43,'40',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=43 AND D2<47,'45',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=47 AND D2<50,'48',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=50 AND D2<53,'50',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=53 AND D2<58,'55',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=58 AND D2<63,'60',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=63 AND D2<68,'65',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=68 AND D2<73,'70',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=73 AND D2<78,'75',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=78 AND D2<83,'80',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=83 AND D2<88,'85',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=88 AND D2<93,'90',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=93 AND D2<97,'95',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=97 AND D2<100,'99',DRAWNULL)),COLORRED;
DRAWTEXT(卖出条件,1,IF(D2>=100,'发',DRAWNULL)),COLORRED;

DRAWTEXT(卖出条件,1,IF(D2<=-1 AND D2>-3,'2',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-3 AND D2>-5,'3',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-5 AND D2>-7,'5',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-7 AND D2>-9,'7',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2=-9 ,'9',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-10 AND D2>-12,'10',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-12 AND D2>-14,'12',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-14 AND D2>-16,'14',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-16 AND D2>-18,'16',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-18 AND D2>-20,'18',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-20 AND D2>-23,'20',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-23 AND D2>-26,'23',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-26 AND D2>-28,'25',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-28 AND D2>-33,'30',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-33 AND D2>-35,'32',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-35 AND D2>-39,'35',DRAWNULL)),COLORGREEN;
DRAWTEXT(卖出条件,1,IF(D2<=-39 AND D2>-43,'40',DRAWNULL)),COLORGREEN;
 

仅仅提供源码


[url=http://www.70822.com/soft/sort013/sort05/down-5676.html]赢亏百分比--BS指标成功率一目了解[/url]

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