커뮤니티

재문의

프로필 이미지
목마와숙녀
2023-04-24 09:41:31
657
글번호 167132
답변완료

첨부 이미지

답변 수식을 진입수식에 적용했는데 하락(200) exitlong 시뮬레이션 결과값이 없습니다. 수식 살펴주십시요. input : fs(100); input : 하락(200),상승(200),st(140000); if data2(c>lowD(0)+fs) Then Buy(); var : Tcond(false,Data2),h2(0,Data2),L2(0,Data2); if Data2(Bdate != Bdate[1]) Then Tcond = False; if Data2((sdate != sdate[1] and stime >= st) or (sdate == sdate[1] and stime >= st and stime[1] < st)) Then { Tcond = False; h2 = Data2(h); l2 = Data2(l); } if Tcond == true Then { if Data2(H) > h2 Then h2 = Data2(h); if Data2(L) < l2 Then l2 = Data2(l); if data2(c<h2-하락) then exitlong(); if data2(c>l2+상승) then exitshort(); } ******************************************************************************* 안녕하세요 예스스탁입니다. input : 하락(200),상승(200),st(140000); var : Tcond(false,Data2),h2(0,Data2),L2(0,Data2); if Data2(Bdate != Bdate[1]) Then Tcond = False; if Data2((sdate != sdate[1] and stime >= st) or (sdate == sdate[1] and stime >= st and stime[1] < st)) Then { Tcond = False; h2 = Data2(h); l2 = Data2(l); } if Tcond == true Then { if Data2(H) > h2 Then h2 = Data2(h); if Data2(L) < l2 Then l2 = Data2(l); if data2(c<h2-하락) then exitlong(); if data2(c>l2+상승) then exitshort(); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 아래 수식을 입력한 시간(14시) 이후 발생한 봉부터 고점과 저점을 계산한다는 내용으로 변경바랍니다. **************************************************************************************** input : 하락(200),st(140000); if stime>=st and data2(c<highd(0)-하락) then exitlong(); input : 상승(200),st(140000); if stime>=st and data2(c>lowd(0)+상승) then exitshort();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-03-14 14:47:35

안녕하세요 예스스탁입니다. 식을 수정해 드립니다. input : fs(100); input : 하락(200),상승(200),st(140000); if data2(c>lowD(0)+fs) Then Buy(); var : Tcond(false,Data2),h2(0,Data2),L2(0,Data2); if Data2(Bdate != Bdate[1]) Then Tcond = False; if Data2((sdate != sdate[1] and stime >= st) or (sdate == sdate[1] and stime >= st and stime[1] < st)) Then { Tcond = true; h2 = Data2(h); l2 = Data2(l); } if Tcond == true Then { if Data2(H) > h2 Then h2 = Data2(h); if Data2(L) < l2 Then l2 = Data2(l); if data2(c<h2-하락) then exitlong(); if data2(c>l2+상승) then exitshort(); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 답변 수식을 진입수식에 적용했는데 하락(200) exitlong 시뮬레이션 결과값이 없습니다. 수식 살펴주십시요. input : fs(100); input : 하락(200),상승(200),st(140000); if data2(c>lowD(0)+fs) Then Buy(); var : Tcond(false,Data2),h2(0,Data2),L2(0,Data2); if Data2(Bdate != Bdate[1]) Then Tcond = False; if Data2((sdate != sdate[1] and stime >= st) or (sdate == sdate[1] and stime >= st and stime[1] < st)) Then { Tcond = False; h2 = Data2(h); l2 = Data2(l); } if Tcond == true Then { if Data2(H) > h2 Then h2 = Data2(h); if Data2(L) < l2 Then l2 = Data2(l); if data2(c<h2-하락) then exitlong(); if data2(c>l2+상승) then exitshort(); } ******************************************************************************* 안녕하세요 예스스탁입니다. input : 하락(200),상승(200),st(140000); var : Tcond(false,Data2),h2(0,Data2),L2(0,Data2); if Data2(Bdate != Bdate[1]) Then Tcond = False; if Data2((sdate != sdate[1] and stime >= st) or (sdate == sdate[1] and stime >= st and stime[1] < st)) Then { Tcond = False; h2 = Data2(h); l2 = Data2(l); } if Tcond == true Then { if Data2(H) > h2 Then h2 = Data2(h); if Data2(L) < l2 Then l2 = Data2(l); if data2(c<h2-하락) then exitlong(); if data2(c>l2+상승) then exitshort(); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 아래 수식을 입력한 시간(14시) 이후 발생한 봉부터 고점과 저점을 계산한다는 내용으로 변경바랍니다. **************************************************************************************** input : 하락(200),st(140000); if stime>=st and data2(c<highd(0)-하락) then exitlong(); input : 상승(200),st(140000); if stime>=st and data2(c>lowd(0)+상승) then exitshort();