커뮤니티

안녕하세요

프로필 이미지
탐라
2019-04-04 01:06:07
162
글번호 127613
답변완료
안녕하세요. 수고 많으십니다. 다름아니라 아래수식은 20 이동평균선이 당일 중심선 Per3(50.0)을 관통할때 매도 매수를 할려고하는데 잘 안되네요. 수식보안 부탁드립니다. 감사합니다. 수고 하세요. var : pp(0),tx(0); var1 = ma(C,20); input : Per1(23.6),Per2(38.2),Per3(50.0),Per4(61.8),Per5(76.4); var : cnt(0),HH(0),LL(0),RR(0),Tcond(false); if (sdate != sdate[1] and stime >= 000000) or (sdate == sdate[1] and stime >= 000000 and stime[1] < 000000) Then { Tcond = true; HH = H; LL = L; } if (sdate != sdate[1] and stime >= 160000) or (sdate == sdate[1] and stime >= 160000 and stime[1] < 160000) Then { Tcond = true; HH = H; LL = L; } if (sdate != sdate[1] and stime >= 233000) or (sdate == sdate[1] and stime >= 233000 and stime[1] < 233000) Then { Tcond = true; HH = H; LL = L; } if Tcond == true then { if H > HH then HH = H; if L < LL Then LL = L; RR = HH-LL; } if L > O[1] and crossup( var1)>,Per3(50.0) Then buy(); if H < O[1] and CrossDown( var1>Per3(50.0) Then sell();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-04-04 10:42:00

안녕하세요 예스스탁입니다. var : pp(0),tx(0); var1 = ma(C,20); input : Per1(23.6),Per2(38.2),Per3(50.0),Per4(61.8),Per5(76.4); var : cnt(0),HH(0),LL(0),RR(0),Tcond(false); if (sdate != sdate[1] and stime >= 000000) or (sdate == sdate[1] and stime >= 000000 and stime[1] < 000000) Then { Tcond = true; HH = H; LL = L; } if (sdate != sdate[1] and stime >= 160000) or (sdate == sdate[1] and stime >= 160000 and stime[1] < 160000) Then { Tcond = true; HH = H; LL = L; } if (sdate != sdate[1] and stime >= 233000) or (sdate == sdate[1] and stime >= 233000 and stime[1] < 233000) Then { Tcond = true; HH = H; LL = L; } if Tcond == true then { if H > HH then HH = H; if L < LL Then LL = L; RR = HH-LL; } var1 = ma(C,20); if L > O[1] and crossup(var1,LL+RR*(per3/100)) Then buy(); if H < O[1] and CrossDown(var1,LL+RR*(Per3/100)) Then sell(); 즐거운 하루되세요 > 탐라 님이 쓴 글입니다. > 제목 : 안녕하세요 > 안녕하세요. 수고 많으십니다. 다름아니라 아래수식은 20 이동평균선이 당일 중심선 Per3(50.0)을 관통할때 매도 매수를 할려고하는데 잘 안되네요. 수식보안 부탁드립니다. 감사합니다. 수고 하세요. var : pp(0),tx(0); var1 = ma(C,20); input : Per1(23.6),Per2(38.2),Per3(50.0),Per4(61.8),Per5(76.4); var : cnt(0),HH(0),LL(0),RR(0),Tcond(false); if (sdate != sdate[1] and stime >= 000000) or (sdate == sdate[1] and stime >= 000000 and stime[1] < 000000) Then { Tcond = true; HH = H; LL = L; } if (sdate != sdate[1] and stime >= 160000) or (sdate == sdate[1] and stime >= 160000 and stime[1] < 160000) Then { Tcond = true; HH = H; LL = L; } if (sdate != sdate[1] and stime >= 233000) or (sdate == sdate[1] and stime >= 233000 and stime[1] < 233000) Then { Tcond = true; HH = H; LL = L; } if Tcond == true then { if H > HH then HH = H; if L < LL Then LL = L; RR = HH-LL; } if L > O[1] and crossup( var1)>,Per3(50.0) Then buy(); if H < O[1] and CrossDown( var1>Per3(50.0) Then sell();