커뮤니티

문의드립니다

프로필 이미지
회원
2006-10-23 21:34:21
976
글번호 11110
답변완료
안녕하세요, 답변 감사히 받았습니다. 답변 내용은 아래와 같은데, 이 수식을 모두 타종목으로 바꾸고 싶습니다. input : 매수기준날짜(20061013),매수기준시간(100000),청산기준날짜(20061016),청산기준시간(130000); if sdate == 매수기준날짜 and stime == 매수기준시간 then var1 = C; if sdate == 청산기준날짜 and stime == 청산기준시간 then var2 = L; if sdate >= 매수기준날짜 and stime > 매수기준시간 and crossup(c,var1) then buy(); if sdate >= 청산기준날짜 and stime > 청산기준시간 and crossdown(c,var2) then exitlong(); 제가 해보니까 잘 안되서요, 그럼, 답변 부탁드립니다. 수고하세요.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2006-10-24 09:06:08

안녕하세요 예스스탁입니다. input : 매수기준날짜(20061013),매수기준시간(100000),청산기준날짜(20061016),청산기준시간(130000); if sdate == 매수기준날짜 and stime == 매수기준시간 then var1 = data1("C"); if sdate == 청산기준날짜 and stime == 청산기준시간 then var2 = data1("L"); if sdate >= 매수기준날짜 and stime > 매수기준시간 and crossup(data1("c"),var1) then buy(); if sdate >= 청산기준날짜 and stime > 청산기준시간 and crossdown(data1("c"),var2) then exitlong(); 즐거운 하루되세요 > CJ_hj7670 님이 쓴 글입니다. > 제목 : 문의드립니다 > 안녕하세요, 답변 감사히 받았습니다. 답변 내용은 아래와 같은데, 이 수식을 모두 타종목으로 바꾸고 싶습니다. input : 매수기준날짜(20061013),매수기준시간(100000),청산기준날짜(20061016),청산기준시간(130000); if sdate == 매수기준날짜 and stime == 매수기준시간 then var1 = C; if sdate == 청산기준날짜 and stime == 청산기준시간 then var2 = L; if sdate >= 매수기준날짜 and stime > 매수기준시간 and crossup(c,var1) then buy(); if sdate >= 청산기준날짜 and stime > 청산기준시간 and crossdown(c,var2) then exitlong(); 제가 해보니까 잘 안되서요, 그럼, 답변 부탁드립니다. 수고하세요.