inputs:jump(50);
vars:openlow(0),openhigh(0),longcount(0); if d<>d[1] then longcount=0; if time=0850 then begin openlow=Low(0); openhigh=high(0); end; if closed(1)-opend(0)>jump and time>0850 and time <1300 and longcount=0 then buy next bar at openhigh stop; if marketposition=1 then begin longcount=1; sell next bar at openlow stop; end; setexitonclose;
那一天有問題? 幾分K
我用一分K 看60天 都沒問題耶~
像2008/10/23
我在想如果是NEXT BAR同時有碰到openlow 和openhigh則會出問題,不知道是不是?
我用5分K
inputs:jump(50); vars:openlow(0),openhigh(0),longcount(0); if d<>d[1] then longcount=0; if time=0850 then begin openlow=Low(0); openhigh=high(0); end; if closed(1)-opend(0)>jump and time>0850 and time <1300 and longcount=0 then buy next bar at openhigh stop; if marketposition=1 then longcount=1; sell next bar at openlow stop; setexitonclose; 編輯文章 by ching000 2012-04-24 11:46:34
像2008/10/23
我在想如果是NEXT BAR同時有碰到openlow 和openhigh則會出問題,不知道是不是?
我用5分K
inputs:jump(50); vars:openlow(0),openhigh(0),longcount(0); if d<>d[1] then longcount=0; if time=0850 then begin openlow=Low(0); openhigh=high(0); end; if closed(1)-opend(0)>jump and time>0850 and time <1300 and longcount=0 then buy next bar at openhigh stop; if marketposition=1 then longcount=1; sell next bar at openlow stop; setexitonclose; 編輯文章 by ching000 2012-04-24 11:46:34