參數(shù) x 設(shè)成 你的開倉(cāng)價(jià) 1 10000 買入價(jià):=X; DRAWTEXT(ISLASTBAR=1,買入價(jià)*0.999,'買入價(jià)'),COLORWHITE; STICKLINE(買入價(jià),買入價(jià),買入價(jià),10,1),COLORBB97BB; DRAWNUMBER(ISLASTBAR,買入價(jià),買入價(jià),0),COLORWHITE; 止贏5%:=買入價(jià)*1.005; DRAWTEXT(ISLASTBAR=1, 止贏5%*0.999,'止贏5%'),COLORFF00FF; STICKLINE(止贏5%, 止贏5%, 止贏5%,10,1),COLOR000090; DRAWNUMBER(ISLASTBAR,止贏5%,止贏5%,0),COLORFF00FF; 止贏10%:=買入價(jià)*1.01; DRAWTEXT(ISLASTBAR=1, 止贏10%*0.999,'止贏10%'),COLORFF00FF; STICKLINE(止贏10%, 止贏10%, 止贏10%,10,1),COLORB00060; DRAWNUMBER(ISLASTBAR,止贏10%,止贏10%,0),COLORFF00FF; 止贏15%:=買入價(jià)*1.015; DRAWTEXT(ISLASTBAR=1, 止贏15%*0.999,'止贏15%'),COLORFF00FF; STICKLINE(止贏15%, 止贏15%, 止贏15%,10,1),COLOR008000; DRAWNUMBER(ISLASTBAR,止贏15%,止贏15%,0),COLORFF00FF; 止贏20%:=買入價(jià)*1.02; DRAWTEXT(ISLASTBAR=1, 止贏20%*0.999,'止贏20%'),COLORFF00FF; STICKLINE(止贏20%, 止贏20%, 止贏20%,10,1),COLOR0000FF; DRAWNUMBER(ISLASTBAR,止贏20%,止贏20%,0),COLORFF00FF; 止贏30%:=買入價(jià)*1.03; DRAWTEXT(ISLASTBAR=1, 止贏30%*0.999,'止贏30%'),COLORFF00FF; STICKLINE(止贏30%, 止贏30%, 止贏30%,10,1),COLOR0000FF; DRAWNUMBER(ISLASTBAR,止贏30%,止贏30%,0),COLORFF00FF; 止損5%:=買入價(jià)-買入價(jià)*0.005; DRAWTEXT(ISLASTBAR=1, 止損5%*0.999,'止損-5%'),COLORGREEN; STICKLINE(止損5%, 止損5%, 止損5%,10,1),COLOR000090; DRAWNUMBER(ISLASTBAR,止損5%,止損5%,0),COLORGREEN; 止損10%:=買入價(jià)-買入價(jià)*0.01; DRAWTEXT(ISLASTBAR=1, 止損10%*0.999,'止損-10%'),COLORGREEN; STICKLINE(止損10%, 止損10%, 止損10%,10,1),COLORB00060; DRAWNUMBER(ISLASTBAR,止損10%,止損10%,0),COLORGREEN; 止損15%:=買入價(jià)-買入價(jià)*0.015; DRAWTEXT(ISLASTBAR=1, 止損15%*0.999,'止損-15%'),COLORGREEN; STICKLINE(止損15%, 止損15%, 止損15%,10,1),COLOR008000; DRAWNUMBER(ISLASTBAR,止損15%,止損15%,0),COLORGREEN; 止損20%:=買入價(jià)-買入價(jià)*0.02; DRAWTEXT(ISLASTBAR=1, 止損20%*0.999,'止損-20%'),COLORGREEN; STICKLINE(止損20%, 止損20%, 止損20%,10,1),COLOR0000FF; DRAWNUMBER(ISLASTBAR,止損20%,止損20%,0),COLORGREEN; 例子一。黃金分割? 買入價(jià):= ref(c,1);{if(CROSS(DEA1,DIFF1),c,0);賣'} DRAWTEXT(ISLASTBAR=1,買入價(jià)*0.999,'買入價(jià)'),COLORWHITE; STICKLINE(ISLASTBAR and 買入價(jià),買入價(jià),買入價(jià),10,1),COLORBB97BB; DRAWNUMBER(ISLASTBAR,買入價(jià),買入價(jià),0),COLORWHITE; 止贏5%:=買入價(jià)*1.005; STICKLINE(ISLASTBAR and 止贏5%, 止贏5%, 止贏5%,10,1),COLOR000090; DRAWNUMBER(ISLASTBAR,止贏5%,止贏5%,0),COLORFF00FF; 止贏10%:=買入價(jià)*1.01; STICKLINE(ISLASTBAR and 止贏10%, 止贏10%, 止贏10%,10,1),COLORB00060; DRAWNUMBER(ISLASTBAR,止贏10%,止贏10%,0),COLORFF00FF; 止贏15%:=買入價(jià)*1.015; STICKLINE(ISLASTBAR and 止贏15%, 止贏15%, 止贏15%,10,1),COLOR008000; DRAWNUMBER(ISLASTBAR,止贏15%,止贏15%,0),COLORFF00FF; 止贏20%:=買入價(jià)*1.02; STICKLINE(ISLASTBAR and 止贏20%, 止贏20%, 止贏20%,10,1),COLOR0000FF; DRAWNUMBER(ISLASTBAR,止贏20%,止贏20%,0),COLORFF00FF; 止贏30%:=買入價(jià)*1.03; STICKLINE(ISLASTBAR and 止贏30%, 止贏30%, 止贏30%,10,1),COLOR0000FF; DRAWNUMBER(ISLASTBAR,止贏30%,止贏30%,0),COLORFF00FF; 止損5%:=買入價(jià)-買入價(jià)*0.005; STICKLINE(ISLASTBAR and 止損5%, 止損5%, 止損5%,10,1),COLOR000090; DRAWNUMBER(ISLASTBAR,止損5%,止損5%,0),COLORGREEN; 止損10%:=買入價(jià)-買入價(jià)*0.01; STICKLINE(ISLASTBAR and 止損10%, 止損10%, 止損10%,10,1),COLORB00060; DRAWNUMBER(ISLASTBAR,止損10%,止損10%,0),COLORGREEN; 止損15%:=買入價(jià)-買入價(jià)*0.015; STICKLINE(ISLASTBAR and 止損15%, 止損15%, 止損15%,10,1),COLOR008000; DRAWNUMBER(ISLASTBAR,止損15%,止損15%,0),COLORGREEN; 止損20%:=買入價(jià)-買入價(jià)*0.02; STICKLINE(ISLASTBAR and 止損20%, 止損20%, 止損20%,10,1),COLOR0000FF; DRAWNUMBER(ISLASTBAR,止損20%,止損20%,0),COLORGREEN; {STICKLINE(買入價(jià),止贏5%,止損5%,1,1),COLORgreen;} 例子二 在買賣點(diǎn)處加上? 買入價(jià):=if(CROSS(ma(c,20),ma(c,10)),c,0);{賣出} DRAWTEXT(ISLASTBAR=1,買入價(jià)*0.999,'買入價(jià)'),COLORWHITE; STICKLINE(ISLASTBAR and 買入價(jià),買入價(jià),買入價(jià),10,1),COLORBB97BB; DRAWNUMBER(ISLASTBAR,買入價(jià),買入價(jià),0),COLORWHITE; 止贏5%:=買入價(jià)*1.005; STICKLINE(ISLASTBAR and 止贏5%, 止贏5%, 止贏5%,20,1),COLOR000090; DRAWNUMBER(ISLASTBAR,止贏5%,止贏5%,0),COLORFF00FF; 止損5%:=買入價(jià)-買入價(jià)*0.005; STICKLINE(ISLASTBAR and 止損5%, 止損5%, 止損5%,10,1),COLOR000090; DRAWNUMBER(ISLASTBAR,止損5%,止損5%,0),COLORGREEN; STICKLINE(買入價(jià),止贏5%,止損5%,1,1),COLORgreen; 補(bǔ)充內(nèi)容 (2015-6-15 14:14): 群號(hào)130497848 懶人的笨方法 |
|