一條均線加DMI濾網波段程式碼
在某一篇小弟有說到一條均線加DMI濾網當沖...這裡把它寫成波段
1條80均線....30DMI....+-DI以30為界....
我用2000tick跑還算免強...
無停損停利...(裡面我用999999.....要跑最佳化的自己玩...)
有興趣的朋友就夾去配吧...
========================
Input:
N(80),
N1(30),
RR(30),
SP(999999),
SL(999999);
if DMIPlus(N1) cross over RR and c>Average(c,N) then buy next bar at market;
if DMIMinus(N1) cross over RR and c<Average(c,N) then sellshort next bar at market;
setstoploss(Sl*200);
setprofittarget(sp*200);
========================
謝謝大大,好人一生平安 感謝分享
頁:
[1]