커뮤니티

질문 올립니다.

프로필 이미지
즐겁게
2019-12-28 21:01:34
129
글번호 134724
답변완료
안녕하세요. 늘 감사드립니다. Data1을 A종목, Data2를 B종목이라 하고, 02시, 04시, 06시, 08시, 10시 에 계속 B종목 시봉 종가들이 상승했다면, 10시 30분 정각에 A종목에 매수 주문을 내고, 반대의 경우 매도 주문을 내는, 시스템 식 부탁 드립니다. 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-12-30 11:22:55

안녕하세요 예스스탁입니다. var : V1(0,data2); if data2(Sdate != sdate[1]) Then v1 = 0; if data2(sdate != sdate[1] and stime >= 020000) or data2(sdate != sdate[1] and stime >= 020000 and stime[1] < 020000) Then { if C > O Then V1 = V1+1; if C < O Then V1 = V1-1; } if data2(sdate != sdate[1] and stime >= 040000) or data2(sdate != sdate[1] and stime >= 040000 and stime[1] < 040000) Then { if C > O Then V1 = V1+1; if C < O Then V1 = V1-1; } if data2(sdate != sdate[1] and stime >= 060000) or data2(sdate != sdate[1] and stime >= 060000 and stime[1] < 060000) Then { if C > O Then V1 = V1+1; if C < O Then V1 = V1-1; } if data2(sdate != sdate[1] and stime >= 080000) or data2(sdate != sdate[1] and stime >= 080000 and stime[1] < 080000) Then { if C > O Then V1 = V1+1; if C < O Then V1 = V1-1; } if data2(sdate != sdate[1] and stime >= 100000) or data2(sdate != sdate[1] and stime >= 100000 and stime[1] < 100000) Then { if C > O Then V1 = V1+1; if C < O Then V1 = V1-1; } if data1(sdate != sdate[1] and stime >= 103000) or data1(sdate != sdate[1] and stime >= 103000 and stime[1] < 103000) Then { if V1 == 5 Then buy(); if V1 == -5 Then Sell(); } 새해 좋은 일만 가득하시길 기원합니다. > 즐겁게 님이 쓴 글입니다. > 제목 : 질문 올립니다. > 안녕하세요. 늘 감사드립니다. Data1을 A종목, Data2를 B종목이라 하고, 02시, 04시, 06시, 08시, 10시 에 계속 B종목 시봉 종가들이 상승했다면, 10시 30분 정각에 A종목에 매수 주문을 내고, 반대의 경우 매도 주문을 내는, 시스템 식 부탁 드립니다. 감사합니다.