这是我在通达信上自己编写的公式,但是在金字塔内无法实现,希望大佬帮助改写一下,可以金字塔内实现,不胜感激!
AO:=O#WEEK;
AC:=C#WEEK;
AH:=H#WEEK;
AL:=L#WEEK;
STICKLINE( AO>AC,AH,AL,4,0),COLORLICYAN;
STICKLINE( AO<AC,AH,AL,4,0),COLOR4A4758;
BO:=O#DAY;
BC:=C#DAY;
BH:=H#DAY;
BL:=L#DAY;
STICKLINE( BO>BC,BH,BL,4,0),COLORGREEN;
STICKLINE( BO<BC,BH,BL,4,0),COLORLIMAGENTA;
CO:=O#MIN60;
CC:=C#MIN60;
CH:=H#MIN60;
CL:=L#MIN60;
STICKLINE( CO>CC,CH,CL,4,0),COLORBLUE;
STICKLINE( CO<CC,CH,CL,4,0),COLORMAGENTA;
DRAWKLINE(H,O,L,C);
AO:="$OPEN#WEEK";
AC:="$CLOSE#WEEK";
AH:="$HIGH#WEEK";
AL:="$LOW#WEEK";
STICKLINE( AO>AC,AH,AL,4,0),COLORLICYAN;
STICKLINE( AO<AC,AH,AL,4,0),COLOR4A4758;
BO:="$OPEN#DAY";
BC:="$CLOSE#DAY";
BH:="$HIGH#DAY";
BL:="$LOW#DAY";
STICKLINE( BO>BC,BH,BL,4,0),COLORGREEN;
STICKLINE( BO<BC,BH,BL,4,0),COLORLIMAGENTA;
CO:="$OPEN#MIN60";
CC:="$CLOSE#MIN60";
CH:="$HIGH#MIN60";
CL:="$LOW#MIN60";
STICKLINE( CO<CC,CH,CL,4,0),COLORMAGENTA;
KLINE(H,O,L,C,0);
柱形的颜色,在最后一个参数定义,这个你自己改下,类似下面这样,然后你这里的几个颜色不是全部都支持,你修改成其他颜色即可:
STICKLINE( CO>CC,CH,CL,4,0,COLORBLUE);