커뮤니티

요청

프로필 이미지
목마와숙녀
2020-10-23 15:22:15
755
글번호 143349
답변완료
아래 진입수식을 data2에 사용할 수 있게 변환바랍니다. ******************************************************************************** 1) buy 수식 input : ntime(090000),range1(0.82),상소pt1(0.54),상대pt2(1.78); var : hh(0),ll(0),hl(0),lh(0); if (sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime) Then { hh = h; hl = h; ll = l; lh = l; } if stime > ntime then { if h > hh Then { hh = h; hl = h; if hh[1] >= ll[1]+range1 and hl[1] <= hh[1]-상소pt1 and hl[1] >= hh[1]-상대pt2 Then buy(); } if h != hh and l < hl Then hl = l; if l != ll and h > lh Then lh = h; } 2)sell수식 input : ntime(090000),range2(1.20),하소pt1(0.72),하대pt2(2.38); var : hh(0),ll(0),hl(0),lh(0); if (sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime) Then { hh = h; hl = h; ll = l; lh = l; } if stime > ntime then { if l < ll Then { ll = l; lh = l; if hh[1] >= ll[1]+range2 and lh[1] >= ll[1]+하소pt1 and lh[1] <= ll[1]+하대pt2 Then sell(); } if h != hh and l < hl Then hl = l; if l != ll and h > lh Then lh = h; }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-10-23 16:21:56

안녕하세요 예스스탁입니다. 1 input : ntime(090000),range1(0.82),상소pt1(0.54),상대pt2(1.78); var : hh(0,data2),ll(0,data2),hl(0,data2),lh(0,data2); if data2((sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then { hh = data2(h); hl = data2(h); ll = data2(l); lh = data2(l); } if data2(stime > ntime) then { if data2(h) > hh Then { hh = data2(h); hl = data2(h); if hh[1] >= ll[1]+range1 and hl[1] <= hh[1]-상소pt1 and hl[1] >= hh[1]-상대pt2 Then buy(); } if data2(h) != hh and data2(l) < hl Then hl = data2(l); if data2(l) != ll and data2(h) > lh Then lh = data2(h); } 2 input : ntime(090000),range2(1.20),하소pt1(0.72),하대pt2(2.38); var : hh(0,data2),ll(0,data2),hl(0,data2),lh(0,data2); if data2((sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then { hh = data2(h); hl = data2(h); ll = data2(l); lh = data2(l); } if data2(stime > ntime) then { if data2(l) < ll Then { ll = data2(l); lh = data2(l); if hh[1] >= ll[1]+range2 and lh[1] >= ll[1]+하소pt1 and lh[1] <= ll[1]+하대pt2 Then sell(); } if data2(h) != hh and data2(l) < hl Then hl = data2(l); if data2(l) != ll and data2(h) > lh Then lh = data2(h); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 요청 > 아래 진입수식을 data2에 사용할 수 있게 변환바랍니다. ******************************************************************************** 1) buy 수식 input : ntime(090000),range1(0.82),상소pt1(0.54),상대pt2(1.78); var : hh(0),ll(0),hl(0),lh(0); if (sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime) Then { hh = h; hl = h; ll = l; lh = l; } if stime > ntime then { if h > hh Then { hh = h; hl = h; if hh[1] >= ll[1]+range1 and hl[1] <= hh[1]-상소pt1 and hl[1] >= hh[1]-상대pt2 Then buy(); } if h != hh and l < hl Then hl = l; if l != ll and h > lh Then lh = h; } 2)sell수식 input : ntime(090000),range2(1.20),하소pt1(0.72),하대pt2(2.38); var : hh(0),ll(0),hl(0),lh(0); if (sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime) Then { hh = h; hl = h; ll = l; lh = l; } if stime > ntime then { if l < ll Then { ll = l; lh = l; if hh[1] >= ll[1]+range2 and lh[1] >= ll[1]+하소pt1 and lh[1] <= ll[1]+하대pt2 Then sell(); } if h != hh and l < hl Then hl = l; if l != ll and h > lh Then lh = h; }