大智慧跳空缺口-主图中显示跳空缺口的白线(源码)介绍
大智慧跳空缺口-主图中显示跳空缺口的白线(源码)
主图中显示跳空缺口的白线(源码):
MA1:MA(CLOSE,P1);{P1是均线参数,可以自己设}
MA2:MA(CLOSE,P2);
MA3:MA(CLOSE,P3);
MA4:MA(CLOSE,P4);
MA5:MA(CLOSE,P5);
MA6:MA(CLOSE,P6);
Gapup:=low>ref(high,1);
cond1:=llv(low,barslast(Gapup))>=ref(high,barslast(gapup)+1);
cond2:=backset(cond1,3);
cond22:=cond2>ref(cond2,1);
cond222:=llv(low,barslast(cond22))>=ref(high,barslast(cond22));
cond2222:=low<ref(high,barslast(cond22));
stickline(cond222 and barslast(cond22)>=2,LLV(low,barslast(cond22)),ref(high,barslast(cond22)),20,0),colorgray,layer5;
A1:=amount*(bigorder(1,2)-bigorder(2,2))/10000;
A5:=sum(A1,5);
A10:=sum(A1,10);
A20:=sum(A1,20);
drawtextrel(0,40,'今日资金流入:'+numtostrn(A1,1)+'万'),colorwhite;
drawtextrel(0,80,'5日 资金流入:'+numtostrn(A5,1)+'万'),colorgreen;
drawtextrel(0,120,'10日资金流入:'+numtostrn(A10,1)+'万'),coloryellow;
图:
gd13108