【求助】编译测试同花顺指标。。
发布网友
发布时间:2024-03-07 02:17
我来回答
共1个回答
热心网友
时间:2024-08-20 08:17
部分函数不适用TDX找替代的即可。
AA:DAY!=REF(DAY,1);
QA:=BARSLAST(AA);
总:SUM(AMOUNT/10000,QA+1),NODRAW;
QC:=IF(ABS(AMOUNT/10000>=100) AND C>=REF(C,1),AMOUNT/10000,0);
QG:=IF(ABS(AMOUNT/10000>=100) AND C<REF(C,1),AMOUNT/10000,0);
QD:=IF(ABS(AMOUNT/10000<50) AND C>=REF(C,1),AMOUNT/10000,0);
QH:=IF(ABS(AMOUNT/10000<50) AND C<REF(C,1),AMOUNT/10000,0);
ZD:=IF(ABS(AMOUNT/10000<100 AND AMOUNT/10000>50) AND C>=REF(C,1),AMOUNT/10000,0);
ZH:=IF(ABS(AMOUNT/10000<100 AND AMOUNT/10000>50) AND C<REF(C,1),AMOUNT/10000,0);
大:SUM(QC-QG,QA+1),COLORRED;
中:SUM(ZD-ZH,QA+1),COLORYELLOW;
小:SUM(QD-QH,QA+1),COLORGREEN;
大小比:(大/小-1)*100,COLORWHITE,NODRAW;
DRAWTEXT(ISLASTBAR,大,'大'),COLORRED;
DRAWTEXT(ISLASTBAR,中,'中'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,小,'小'),COLORGREEN;