本帖最後由 SALLY 於 20-2-27 19:52 編輯
inputs:beginTime(0900),endTime(1300); vars:ah(0),al(0);
if time= beginTime then begin ah=highd(0); al=lowd(0);
end;
condition1=time>=beginTime and time<endTime;
if condition1 then begin
buy next bar at ah stop; sellshort next bar at al stop;
end;
setexitonclose;
|