커뮤니티

문의

프로필 이미지
목마와숙녀
2023-10-12 14:28:14
546
글번호 173027
답변완료
아래 수식을 data2 수식으로 변환하여 주십시요. 항상 고맙습니다. ***************************************************************************** input : 시작시간(090000),끝시간(090400); input : dn시작시간(142800),dn끝시간(142800); var : h1(0),l1(0); if (sdate != sdate[1] and stime >= 시작시간) or (sdate == sdate[1] and stime >= 시작시간 and stime[1] < 시작시간) Then { H1 = H; } if stime >= 시작시간 and sTime <= 끝시간 Then { if h > h1 Then h1 = h; } if sTime > 끝시간 and CrossUp(c,h1) Then Buy("b"); if (sdate != sdate[1] and stime >= dn시작시간) or (sdate == sdate[1] and stime >= dn시작시간 and stime[1] < dn시작시간) Then { L1 = L; } if stime >= dn시작시간 and sTime <= dn끝시간 Then { if l < l1 Then l1 = l; } if sTime > dn끝시간 and CrossDown(c,l1) Then ExitLong();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-10-12 15:51:42

안녕하세요 예스스탁입니다. input : 시작시간(090000),끝시간(090400); input : dn시작시간(142800),dn끝시간(142800); var : h1(0,Data2),l1(0,Data2); if Data2( (sdate != sdate[1] and stime >= 시작시간) or (sdate == sdate[1] and stime >= 시작시간 and stime[1] < 시작시간)) Then { H1 = data2(H); } if data2(stime >= 시작시간 and sTime <= 끝시간) Then { if data2(h > h1) Then h1 = data2(h); } if data2(sTime > 끝시간 and CrossUp(c,h1)) Then Buy("b"); if Data2((sdate != sdate[1] and stime >= dn시작시간) or (sdate == sdate[1] and stime >= dn시작시간 and stime[1] < dn시작시간)) Then { L1 = data2(L); } if data2(stime >= dn시작시간 and sTime <= dn끝시간) Then { if data2(l < l1) Then l1 = data2(l); } if data2(sTime > dn끝시간 and CrossDown(c,l1)) Then ExitLong(); 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 아래 수식을 data2 수식으로 변환하여 주십시요. 항상 고맙습니다. ***************************************************************************** input : 시작시간(090000),끝시간(090400); input : dn시작시간(142800),dn끝시간(142800); var : h1(0),l1(0); if (sdate != sdate[1] and stime >= 시작시간) or (sdate == sdate[1] and stime >= 시작시간 and stime[1] < 시작시간) Then { H1 = H; } if stime >= 시작시간 and sTime <= 끝시간 Then { if h > h1 Then h1 = h; } if sTime > 끝시간 and CrossUp(c,h1) Then Buy("b"); if (sdate != sdate[1] and stime >= dn시작시간) or (sdate == sdate[1] and stime >= dn시작시간 and stime[1] < dn시작시간) Then { L1 = L; } if stime >= dn시작시간 and sTime <= dn끝시간 Then { if l < l1 Then l1 = l; } if sTime > dn끝시간 and CrossDown(c,l1) Then ExitLong();