 | |  |  |
飞狐明日买卖源码公式:
input:p1(5), p2(4);
DRAWGBK(1,COLORRGB(0,0,66),COLORRGB(0,18,55),1);
Var1:=LLV(LOW,P1);
Var2:=HHV(HIGH,P1);
短 :EMA((CLOSE-Var1)/(Var2-Var1)*100,P2),COLOR446600;
线 :EMA(0.667*REF(短,1)+0.333*短,2) ,COLORFFCC66;
中 :EMA((短+线)/2,13);
拐点:REF(线,1),COLOR00FF00,LINETHICK0 ;
PARTLINE(线>拐点,MA(线,1)),COLORGREEN ;
PARTLINE(线<拐点,MA(线,1)),COLOR0088FF;
次日买入价:if(close>open,open+(close-open)/2+0.05,0),COLORRED,LINETHICK0;
次日卖出价:if(open>close and 线>短,close+(open-close)/2-0.1,0),COLORBLUE,LINETHICK0;
次日上涨空间:close+(high-low)*2,COLORYELLOW,LINETHICK0;
次日下跌空间:close-(high-low),COLORWHITE,LINETHICK0;
买入参考:=CROSS(短,线);
drawicon(买入参考,线,6); |
| |  | |  |
|