커뮤니티

문의드립니다..

프로필 이미지
회원
2014-01-01 11:54:29
145
글번호 70961
답변완료
야간 18:30분부터 24:00까지만 거래코저 하는데 성능보고서에는 01:00 이후 새벽시간에서 거래가 되는군요.. 감사합니다. if (stime >= 183000 or stime < 240000) and T == 1 Then{ if L >= var10+PriceScale*5 Then Bcond = true; if Bcond == true Then buy("b",atlimit,var1); } if (stime >= 183000 or stime < 240000) and T == -1 Then{ if H <= var10-PriceScale*5 Then Scond = true; if Scond == true Then sell("s",atlimit,var1); } if stime == 010100 Then{ exitlong(); ExitShort(); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-01-02 19:28:03

안녕하세요 예스스탁입니다. 시간조건이 and로 연결이 되어야 합니다. if (stime >= 183000 and stime < 240000) and T == 1 Then{ if L >= var10+PriceScale*5 Then Bcond = true; if Bcond == true Then buy("b",atlimit,var1); } if (stime >= 183000 and stime < 240000) and T == -1 Then{ if H <= var10-PriceScale*5 Then Scond = true; if Scond == true Then sell("s",atlimit,var1); } if stime == 010100 Then{ exitlong(); ExitShort(); } 즐거운 하루되세요 > HI_pj***** 님이 쓴 글입니다. > 제목 : 문의드립니다.. > 야간 18:30분부터 24:00까지만 거래코저 하는데 성능보고서에는 01:00 이후 새벽시간에서 거래가 되는군요.. 감사합니다. if (stime >= 183000 or stime < 240000) and T == 1 Then{ if L >= var10+PriceScale*5 Then Bcond = true; if Bcond == true Then buy("b",atlimit,var1); } if (stime >= 183000 or stime < 240000) and T == -1 Then{ if H <= var10-PriceScale*5 Then Scond = true; if Scond == true Then sell("s",atlimit,var1); } if stime == 010100 Then{ exitlong(); ExitShort(); }