五月天 发表于 2023-6-12 21:44:52

请那位老师帮把下面的公式改写成盘立方可用的公式,先谢谢了!


SS:GETPRICE('YSETTLE'),COLORYELLOW,NODRAW;
HH:REF(HHV(H,DAYBARPOS),DAYBARPOS),COLORRED,NODRAW;
LL:REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORGREEN,NODRAW;
CC:REF(C,DAYBARPOS),COLORBLUE,NODRAW;
OO:REF(REF(O,DAYBARPOS-1),DAYBARPOS),COLORMAGENTA,NODRAW;
IF(BACKSET(ISLASTBAR,DAYBARPOS), SETTLE,NULL),COLORCYAN,DOT;

DRAWSL(ISLASTBAR,SS,0,-DAYBARPOS+1,0,COLORYELLOW),DOT;
DRAWSL(ISLASTBAR,HH,0,-DAYBARPOS+1,0,COLORRED),DOT;
DRAWSL(ISLASTBAR,LL,0,-DAYBARPOS+1,0,COLORGREEN),DOT;
DRAWSL(ISLASTBAR,CC,0,-DAYBARPOS+1,0,COLORCYAN),DOT;
DRAWSL(ISLASTBAR,OO,0,-DAYBARPOS+1,0,COLORMAGENTA),DOT;

DRAWTEXT(ISLASTBAR,SS,'昨结'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,HH,'昨高'),COLORRED;
DRAWTEXT(ISLASTBAR,LL,'昨低'),COLORGREEN;
DRAWTEXT(ISLASTBAR,CC,'昨收'),COLORCYAN;
DRAWTEXT(ISLASTBAR,OO,'昨开'),COLORMAGENTA;
页: [1]
查看完整版本: 请那位老师帮把下面的公式改写成盘立方可用的公式,先谢谢了!