怎樣編寫(xiě)BS買(mǎi)賣(mài)的公式呢
{送給你一個(gè)已編好的BS買(mǎi)賣(mài)點(diǎn)主圖指標}買(mǎi)線(xiàn):=EMA(C,2); 賣(mài)線(xiàn):=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(買(mǎi)線(xiàn),賣(mài)線(xiàn)); SEL:=CROSS(賣(mài)線(xiàn),買(mǎi)線(xiàn)); DRAWTEXT(bu,LOW,'B'),ALIGN1,VALIGN0,colorred,linethick2; DRAWTEXT(sel,HIGH,'S'),ALIGN1,VALIGN2,colorgreen,linethick2; STICKLINE(買(mǎi)線(xiàn)>=賣(mài)線(xiàn),LOW,HIGH,0,1),colorred; STICKLINE(買(mǎi)線(xiàn)>=賣(mài)線(xiàn),CLOSE,OPEN,10,0),color000044; STICKLINE(買(mǎi)線(xiàn)>=賣(mài)線(xiàn),CLOSE,OPEN,7,0),color000066;STICKLINE(買(mǎi)線(xiàn)>=賣(mài)線(xiàn),CLOSE,OPEN,3,0),color000088;STICKLINE(買(mǎi)線(xiàn)>=賣(mài)線(xiàn),CLOSE,OPEN,1,0),colorred;STICKLINE(買(mǎi)線(xiàn)<賣(mài)線(xiàn),CLOSE,OPEN,10,0),color004400; STICKLINE(買(mǎi)線(xiàn)<賣(mài)線(xiàn),CLOSE,OPEN,7,0),color006600; STICKLINE(買(mǎi)線(xiàn)<賣(mài)線(xiàn),CLOSE,OPEN,3,0),color008800; STICKLINE(買(mǎi)線(xiàn)<賣(mài)線(xiàn),CLOSE,OPEN,1,0),color00ff00; STICKLINE(買(mǎi)線(xiàn)<賣(mài)線(xiàn),LOW,HIGH,0,1),color00ff00; STICKLINE(CROSS(買(mǎi)線(xiàn),賣(mài)線(xiàn)) ,OPEN,CLOSE,10,0),color0033ff; STICKLINE(CROSS(買(mǎi)線(xiàn),賣(mài)線(xiàn)) ,OPEN,CLOSE,7,0),color0055ff; STICKLINE(CROSS(買(mǎi)線(xiàn),賣(mài)線(xiàn)) ,OPEN,CLOSE,3,0),color0099ff; STICKLINE(CROSS(買(mǎi)線(xiàn),賣(mài)線(xiàn)) ,OPEN,CLOSE,1,0),color00ffff; STICKLINE( CROSS(賣(mài)線(xiàn),買(mǎi)線(xiàn)),OPEN,CLOSE,10,0),color333300; STICKLINE( CROSS(賣(mài)線(xiàn),買(mǎi)線(xiàn)),OPEN,CLOSE,7,0),color555500; STICKLINE( CROSS(賣(mài)線(xiàn),買(mǎi)線(xiàn)),OPEN,CLOSE,3,0),color777700; STICKLINE( CROSS(賣(mài)線(xiàn),買(mǎi)線(xiàn)),OPEN,CLOSE,1,0),colorffff00; 指導線(xiàn):EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick3,ColorFFffFF; 界:MA(CLOSE,27),linethick2,Color00FFFF;聯(lián)系客服