请教文法 [MultiCharts MC]
- 咨询内容:
设定今天的5分k第一根红的h-l>15点
突破这跟高+3点买进
停损在跌破这跟低-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技术部:
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