커뮤니티

문의

프로필 이미지
좌오비우오비
2023-08-03 13:20:35
1035
글번호 171182
답변완료
아래 수식에 입력시간부터 봉을 계산하는 수식을 추가하여 주십시요. ***************************************************************************** input : ntime(084800); input: 연속봉(1),연속small(0.52),연속large(0.56); if data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then buy();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-08-03 15:40:58

안녕하세요 예스스탁입니다. input : ntime(084800); input: 연속봉(1),연속small(0.52),연속large(0.56); var : Tcond(False); if data2(Bdate != Bdate[1]) Then Tcond = False; if Data2((sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then Tcond = true; if Tcond == true and data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then buy(); 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : 문의 > 아래 수식에 입력시간부터 봉을 계산하는 수식을 추가하여 주십시요. ***************************************************************************** input : ntime(084800); input: 연속봉(1),연속small(0.52),연속large(0.56); if data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then buy();