GP:=CODELIKE('300') OR CODELIKE('301');
个股单日偏离: (C-REF(C,1))*100/REF(C,1),NODRAW;
CYBDPC:="399102$C";
指数单日偏离: (CYBDPC-REF(CYBDPC,1))*100/REF(CYBDPC,1),NODRAW;
单日偏离:个股单日偏离-指数单日偏离,NODRAW;
三日偏离:SUM(单日偏离,3),NODRAW,COLORYELLOW;
DRAWNUMBER(GP AND CURRBARSCOUNT<=21 ,L*0.96,三日偏离),COLORYELLOW;
{10日内最低点到顶部的偏离值,也就是不到10天的偏离值超过100%就行,所以要找10日内的低点,这个距今大概要在 7-10日内}
十日最低距今:BARSLAST(C=LLV(C,3)),NODRAW,COLORGREEN;
十日偏离N:SUM(单日偏离,十日最低距今),NODRAW,COLORRED;
十日偏离10:SUM(单日偏离,10),NODRAW,COLORRED;
十日偏离:IF(十日偏离N>十日偏离10,十日偏离N,十日偏离10),NODRAW,COLORRED;
DRAWNUMBER(GP AND CURRBARSCOUNT<=21 ,L*0.92,十日偏离),COLORRED;
三十日偏离:SUM(单日偏离,30),NODRAW,COLORGREEN;
DRAWNUMBER(GP AND CURRBARSCOUNT<=21 ,L*0.87,三十日偏离),COLORGREEN;
三日偏离2:SUM(单日偏离,2),NODRAW,COLORYELLOW;
DRAWNUMBER(GP AND CURRBARSCOUNT<=3 { AND 三日偏离2>=15 },L*0.82,(30-三日偏离2 ) ),COLORYELLOW;
十日偏离9:SUM(单日偏离,9),NODRAW,COLORRED;
十日偏离2:IF(十日偏离N>十日偏离9,十日偏离N,十日偏离9),NODRAW,COLORRED;
DRAWNUMBER(GP AND CURRBARSCOUNT<=3 { AND 十日偏离2>=50} ,L*0.77,(100-十日偏离2 )),COLORRED;
三十日偏离2:SUM(单日偏离,29),NODRAW,COLORGREEN;
DRAWNUMBER(GP AND CURRBARSCOUNT<=3 {AND 涨幅20}{AND 三十日偏离2>=100} ,L*0.72,(200-三十日偏离2 ) ),COLORGREEN;
6个数字 从上到下
3日偏离
10日偏离
30日偏离
假定明天创业板综指是0% 不涨不跌
基于2、 9 、 29 天相对于今天的偏离,以及 分别偏离30 、100、200要停牌的规则,倒推明天个股需要涨多少
这就是 后面三个数字的意思
后3个数字,正表示还需要涨这么多达标,,,负数表示 已经超标了