커뮤니티

시간조정

프로필 이미지
뚜벅뚜벅
2018-07-09 15:35:19
121
글번호 120403
답변완료
아래식을 아침9시 이후 부터 오후3시까지 범위 안에서만 신호가 나올수 있도록 만들어 주십시오. 가능하면 시간 조정을 할수 있도록 부탁 드립니다. Input : af1(0.02), maxAF1(0.2); Input : af2(0.02), maxAF2(0.2); input : P(60); var : sarv1(0),sarv2(0),mav(0); sarv1 = sar(af1,maxAF1); sarv2 = sar(af2,maxAF2); mav = ma(C,P); If C > sarv1 and C > mav Then { if C > sarv1 Then Buy(); Else ExitShort(); } If C < sarv1 and C < mav Then { if C < sarv2 Then Sell(); Else ExitLong(); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-07-10 13:21:46

안녕하세요 예스스탁입니다. input : 시작시간(90000),종료시간(150000); Input : af1(0.02), maxAF1(0.2); Input : af2(0.02), maxAF2(0.2); input : P(60); var : sarv1(0),sarv2(0),mav(0),tcond(false); if (sdate != sdate[1] and stime >= 시작시간) or (sdate == sdate[1] and stime >= 시작시간 and stime[1] < 시작시간) Then Tcond = true; if (sdate != sdate[1] and stime >= 종료시간) or (sdate == sdate[1] and stime >= 종료시간 and stime[1] < 종료시간) Then Tcond = false; sarv1 = sar(af1,maxAF1); sarv2 = sar(af2,maxAF2); mav = ma(C,P); if Tcond == true then { If C > sarv1 and C > mav Then { if C > sarv1 Then Buy(); Else ExitShort(); } If C < sarv1 and C < mav Then { if C < sarv2 Then Sell(); Else ExitLong(); } } 즐거운 하루되세요 > 뚜벅뚜벅 님이 쓴 글입니다. > 제목 : 시간조정 > 아래식을 아침9시 이후 부터 오후3시까지 범위 안에서만 신호가 나올수 있도록 만들어 주십시오. 가능하면 시간 조정을 할수 있도록 부탁 드립니다. Input : af1(0.02), maxAF1(0.2); Input : af2(0.02), maxAF2(0.2); input : P(60); var : sarv1(0),sarv2(0),mav(0); sarv1 = sar(af1,maxAF1); sarv2 = sar(af2,maxAF2); mav = ma(C,P); If C > sarv1 and C > mav Then { if C > sarv1 Then Buy(); Else ExitShort(); } If C < sarv1 and C < mav Then { if C < sarv2 Then Sell(); Else ExitLong(); }