커뮤니티

조건식 별로 진입 후 5분 경과 하면 청산

프로필 이미지
외국인
2012-06-09 21:01:30
276
글번호 51830
답변완료
안녕하세요? if 조건식a then buy(); if 조건식b then buy(); 조건식a는 4분30초경과시 소리발생 5분후 청산 조건식b는 9분30초경과시 소리발생 10분후청산 식부탁합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-06-11 10:21:30

안녕하세요? 예스스탁입니다. sound알람은 timetomimutes를 이용할 경우 1분 단위로만 작성 가능하여 4분과 9분으로 작성하였습니다. if 조건식a then { buy(); var1 = TimeToMinutes(stime); } if 조건식b then { buy(); var2 = TimeToMinutes(stime); } if TimeToMinutes(stime) - var1 == 4 then PlaySound("C:₩예스트레이더31₩data₩alert.wav"); } if TimeToMinutes(stime) - var2 == 9 then PlaySound("C:₩예스트레이더31₩data₩alert.wav"); } if TimeToMinutes(stime) - var1 == 5 Then exitlong(); if TimeToMinutes(stime) - var2 == 10 Then exitshort(); > 외국인 님이 쓴 글입니다. > 제목 : 조건식 별로 진입 후 5분 경과 하면 청산 > 안녕하세요? if 조건식a then buy(); if 조건식b then buy(); 조건식a는 4분30초경과시 소리발생 5분후 청산 조건식b는 9분30초경과시 소리발생 10분후청산 식부탁합니다.