两个公式都导入,引用公式不要改名
{显示涨停价和跌停价公式}
涨停价:=ZTPRICE(REF(CLOSE,1),0.15);
DRAWTEXT_FIX(1,0,0,0,STRCAT('涨停价:',CON2STR(涨停价,2))),COLORRED;
跌停价:=DTPRICE(REF(CLOSE,1),0.1);
DRAWTEXT_FIX(1,0.14,0,0,STRCAT('跌停价:',CON2STR(跌停价,2))),COLORGREEN;
{均线公式}
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
{开盘金額公式}
KPJE:=DYNAINFO(15)/10000;
开盘金額:=STRCAT(STRCAT('开盘金額:',CON2STR(KPJE,2)),'万');
DRAWTEXT_FIX(1,0.14,0.1,0,开盘金額),COLORGREEN;
{昨日成交额公式}
QQ1:="ZRCJ.QA#DAY";
昨日成交额:=STRCAT(STRCAT('昨日成交额:',CON2STR(QQ1,2)),'万');
DRAWTEXT_FIX(1,0.36,0.1,0,昨日成交额),COLORYELLOW;
{龙虎榜公式}
DRAWTEXT_FIX(1,0.28,0,0,'龙虎榜:')COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.35,0,0,EXTERNSTR(0,1000)),COLORYELLOW;{涨停原因指标};
{分析家公式网WWW.70822.COM}
{竞价爆量公式}
JJBL:=(KPJE/QQ1)*100;
竞价爆量:=STRCAT(STRCAT('竞价爆量:',CON2STR(JJBL,2)),'%');
DRAWTEXT_FIX(1,0,0.1,0,竞价爆量),COLORGREEN;
p20205110175145019.jpg
|