請教文法
作者:MultiCharts MC 來源:cxh99.com 發(fā)布時間:2012年08月01日
- 咨詢內(nèi)容:
設(shè)定今天的5分k第一根紅的h-l>15點
突破這跟高+3點買進(jìn)
停損在跌破這跟低-3賣出
收盤出場
但是不能F3,why?
vars:longcount(0);
if date<>date[1] then begin
longcount=0;
end;
value1= High(0)-low(0);
if value1>15 and time<=0850 and longcount=0 then begin
value2=high+3;
value3=low-3;
buy next bar at value2 stop;
end;
if marketposition=1 then longcount=1;
sell next bar at value3 stop;
setexitonclose;
- MC技術(shù)部:
vars:longcount(0);
if date<>date[1] then begin
longcount=0;
end;
value1= High(0)-low(0);
if value1>15 and time<=0850 and longcount=0 then begin
value2=high+3;
value3=low-3;
buy next bar at value2 stop;
end;
if marketposition=1 then begin
longcount=1;
sell next bar at value3 stop;
end;
setexitonclose;
可能是少了這兩個紅字,你再試試看。
編輯文章 by JackLee 2012-04-18 13:24:27