커뮤니티
time, 3.1 or 3.0...
2007-06-21 13:08:03
1159
글번호 12832
같은 수식이 3.1에서 이상 반응을 보여 수정 부탁드립니다
input:starttime(090000),endtime(150000);
if time>=starttime and time<endtime then
messagelog("aaa TRUE %f, %f", date, time);
else messagelog("aaa FALSE %f, %f", date, time);
if time==1530 then begin
buy();
exitlong();
end
YT3.0에서는 잘 돌아가던 수식이지만, 3.1버전에선 3행의 조건 판단문에서
문제가 생기는듯 합니다
if time>=090000 and time<150000 then <- 이렇게 직접 숫자로 써줘야 돌아가더군요
수정 부탁합니다.
그럼, 수고하십시요.
답변 1
예스스탁 예스스탁 답변
2007-06-22 09:32:54
안녕하세요
예스스탁입니다.
input:starttime(090000),endtime(150000);
if time>=starttime and time<endtime then
부분을 변수처리여부에서 문제점은 없습니다.
다만 Time함수가 3.1에서는 시세 데이터가 들어오는 마지막 시간을 리턴합니다.
10분봉에서
예스트레이더 3는 14:50 분봉의 time은 145900을
예스트레이더 3.1에서 14:50 봉의 마지막 시세데이터가 14:51분에 있었다면
145100을 리턴합니다.
참고하시기 바랍니다.
즐거운 하루되세요
> teargas 님이 쓴 글입니다.
> 제목 : time, 3.1 or 3.0...
> 같은 수식이 3.1에서 이상 반응을 보여 수정 부탁드립니다
input:starttime(090000),endtime(150000);
if time>=starttime and time<endtime then
messagelog("aaa TRUE %f, %f", date, time);
else messagelog("aaa FALSE %f, %f", date, time);
if time==1530 then begin
buy();
exitlong();
end
YT3.0에서는 잘 돌아가던 수식이지만, 3.1버전에선 3행의 조건 판단문에서
문제가 생기는듯 합니다
if time>=090000 and time<150000 then <- 이렇게 직접 숫자로 써줘야 돌아가더군요
수정 부탁합니다.
그럼, 수고하십시요.
다음글
이전글