커뮤니티

문의

프로필 이미지
목마와숙녀
2022-01-06 15:38:10
1565
글번호 155170
답변완료
국내선물 데이트레이딩 090000시부터 091000까지 v1=지수변동/상승거래량*0.01 091000시부터 092000까지 v2=지수변동/상승거래량*0.01 k=v2-v1 if k가 0.1% 상승 then buy(); 지수변동은 지정 시간대의 고점-저점입니다. 수식 완성 부탁드립니다.
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2022-01-06 16:11:07

안녕하세요 예스스탁입니다. input : StartTime1(90000),EndTime1(91000); input : StartTime2(91000),EndTime2(92000); var : Tcond1(false),tcond2(False); var : h1(0),l1(0),s1(0),v1(0),h2(0),l2(0),s2(0),v2(0),k(0); if (sdate != sdate[1] and stime >= EndTime1) or (sdate == sdate[1] and stime >= EndTime1 and stime[1] < EndTime1) Then Tcond1 = False; if (sdate != sdate[1] and stime >= StartTime1) or (sdate == sdate[1] and stime >= StartTime1 and stime[1] < StartTime1) Then { Tcond1 = true; h1 = h; l1 = l; s1 = 0; } if (sdate != sdate[1] and stime >= EndTime2) or (sdate == sdate[1] and stime >= EndTime2 and stime[1] < EndTime2) Then Tcond2 = False; if (sdate != sdate[1] and stime >= StartTime2) or (sdate == sdate[1] and stime >= StartTime2 and stime[1] < StartTime2) Then { Tcond2 = true; h2 = h; l2 = l; s2 = 0; } if Tcond1 == true Then { if h > h1 Then h1 = h; if l < l1 Then l1 = l; s1 = s1+Upvol; v1 = (h1-l1)/s1*0.01; } if Tcond2 == true Then { if h > h2 Then h2 = h; if l < l2 Then l2 = l; s2 = s2+Upvol; v2 = (h2-l2)/s2*0.01; k = v2-v1; if k >= 0.1 Then Buy(); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 국내선물 데이트레이딩 090000시부터 091000까지 v1=지수변동/상승거래량*0.01 091000시부터 092000까지 v2=지수변동/상승거래량*0.01 k=v2-v1 if k가 0.1% 상승 then buy(); 지수변동은 지정 시간대의 고점-저점입니다. 수식 완성 부탁드립니다.
프로필 이미지

목마와숙녀

2022-01-06 16:18:08

변수 적용해보니 시뮬레이션 값 변화가 없습니다. 살펴주십시요. input : StartTime1(90000),EndTime1(91000); input : StartTime2(91000),EndTime2(92000); input : 추세(0.1); var : Tcond1(false),tcond2(False); var : h1(0),l1(0),s1(0),v1(0),h2(0),l2(0),s2(0),v2(0),k(0); if (sdate != sdate[1] and stime >= EndTime1) or (sdate == sdate[1] and stime >= EndTime1 and stime[1] < EndTime1) Then Tcond1 = False; if (sdate != sdate[1] and stime >= StartTime1) or (sdate == sdate[1] and stime >= StartTime1 and stime[1] < StartTime1) Then { Tcond1 = true; h1 = h; l1 = l; s1 = 0; } if (sdate != sdate[1] and stime >= EndTime2) or (sdate == sdate[1] and stime >= EndTime2 and stime[1] < EndTime2) Then Tcond2 = False; if (sdate != sdate[1] and stime >= StartTime2) or (sdate == sdate[1] and stime >= StartTime2 and stime[1] < StartTime2) Then { Tcond2 = true; h2 = h; l2 = l; s2 = 0; } if Tcond1 == true Then { if h > h1 Then h1 = h; if l < l1 Then l1 = l; s1 = s1+Upvol; v1 = (h1-l1)/s1*0.01; } if Tcond2 == true Then { if h > h2 Then h2 = h; if l < l2 Then l2 = l; s2 = s2+Upvol; v2 = (h2-l2)/s2*0.01; k = v2-v1; if k >= 추세 Then Buy(); } ************************************************************************** > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. input : StartTime1(90000),EndTime1(91000); input : StartTime2(91000),EndTime2(92000); var : Tcond1(false),tcond2(False); var : h1(0),l1(0),s1(0),v1(0),h2(0),l2(0),s2(0),v2(0),k(0); if (sdate != sdate[1] and stime >= EndTime1) or (sdate == sdate[1] and stime >= EndTime1 and stime[1] < EndTime1) Then Tcond1 = False; if (sdate != sdate[1] and stime >= StartTime1) or (sdate == sdate[1] and stime >= StartTime1 and stime[1] < StartTime1) Then { Tcond1 = true; h1 = h; l1 = l; s1 = 0; } if (sdate != sdate[1] and stime >= EndTime2) or (sdate == sdate[1] and stime >= EndTime2 and stime[1] < EndTime2) Then Tcond2 = False; if (sdate != sdate[1] and stime >= StartTime2) or (sdate == sdate[1] and stime >= StartTime2 and stime[1] < StartTime2) Then { Tcond2 = true; h2 = h; l2 = l; s2 = 0; } if Tcond1 == true Then { if h > h1 Then h1 = h; if l < l1 Then l1 = l; s1 = s1+Upvol; v1 = (h1-l1)/s1*0.01; } if Tcond2 == true Then { if h > h2 Then h2 = h; if l < l2 Then l2 = l; s2 = s2+Upvol; v2 = (h2-l2)/s2*0.01; k = v2-v1; if k >= 0.1 Then Buy(); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 국내선물 데이트레이딩 090000시부터 091000까지 v1=지수변동/상승거래량*0.01 091000시부터 092000까지 v2=지수변동/상승거래량*0.01 k=v2-v1 if k가 0.1% 상승 then buy(); 지수변동은 지정 시간대의 고점-저점입니다. 수식 완성 부탁드립니다.
프로필 이미지

예스스탁 예스스탁 답변

2022-01-06 16:32:59

안녕하세요 예스스탁입니다. 1 090000시부터 091000까지 v1=지수변동/상승거래량*0.01 091000시부터 092000까지 v2=지수변동/상승거래량*0.01 k=v2-v1 수식은 올리신 계산내용으로 되어 있습니다. 해당 부분은 사용자분이 계산값이나 조건내용을 살펴보셔야 합니다. 저희가 해드릴 부분이 없습니다. v1,v2가 상당히 낮은값이고 k도 아주 작은값입니다. 아래와 같이 지표식으로 v1,v2,k값을 지표로 출력해서 보시기 바랍니다. 2 지표속성창의 y축표시에서 표시소숫점자리를 6자리로 지정하고 보시기 바랍니다. input : StartTime1(90000),EndTime1(91000); input : StartTime2(91000),EndTime2(92000); var : Tcond1(false),tcond2(False); var : h1(0),l1(0),s1(0),v1(0),h2(0),l2(0),s2(0),v2(0),k(0); if (sdate != sdate[1] and stime >= EndTime1) or (sdate == sdate[1] and stime >= EndTime1 and stime[1] < EndTime1) Then Tcond1 = False; if (sdate != sdate[1] and stime >= StartTime1) or (sdate == sdate[1] and stime >= StartTime1 and stime[1] < StartTime1) Then { Tcond1 = true; h1 = h; l1 = l; s1 = 0; } if (sdate != sdate[1] and stime >= EndTime2) or (sdate == sdate[1] and stime >= EndTime2 and stime[1] < EndTime2) Then Tcond2 = False; if (sdate != sdate[1] and stime >= StartTime2) or (sdate == sdate[1] and stime >= StartTime2 and stime[1] < StartTime2) Then { Tcond2 = true; h2 = h; l2 = l; s2 = 0; } if Tcond1 == true Then { if h > h1 Then h1 = h; if l < l1 Then l1 = l; s1 = s1+Upvol; v1 = (h1-l1)/s1*0.01; } if Tcond2 == true Then { if h > h2 Then h2 = h; if l < l2 Then l2 = l; s2 = s2+Upvol; v2 = (h2-l2)/s2*0.01; k = v2-v1; } Plot1(v1); plot2(v2); plot3(k); 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : Re : Re : 문의 > 변수 적용해보니 시뮬레이션 값 변화가 없습니다. 살펴주십시요. input : StartTime1(90000),EndTime1(91000); input : StartTime2(91000),EndTime2(92000); input : 추세(0.1); var : Tcond1(false),tcond2(False); var : h1(0),l1(0),s1(0),v1(0),h2(0),l2(0),s2(0),v2(0),k(0); if (sdate != sdate[1] and stime >= EndTime1) or (sdate == sdate[1] and stime >= EndTime1 and stime[1] < EndTime1) Then Tcond1 = False; if (sdate != sdate[1] and stime >= StartTime1) or (sdate == sdate[1] and stime >= StartTime1 and stime[1] < StartTime1) Then { Tcond1 = true; h1 = h; l1 = l; s1 = 0; } if (sdate != sdate[1] and stime >= EndTime2) or (sdate == sdate[1] and stime >= EndTime2 and stime[1] < EndTime2) Then Tcond2 = False; if (sdate != sdate[1] and stime >= StartTime2) or (sdate == sdate[1] and stime >= StartTime2 and stime[1] < StartTime2) Then { Tcond2 = true; h2 = h; l2 = l; s2 = 0; } if Tcond1 == true Then { if h > h1 Then h1 = h; if l < l1 Then l1 = l; s1 = s1+Upvol; v1 = (h1-l1)/s1*0.01; } if Tcond2 == true Then { if h > h2 Then h2 = h; if l < l2 Then l2 = l; s2 = s2+Upvol; v2 = (h2-l2)/s2*0.01; k = v2-v1; if k >= 추세 Then Buy(); } ************************************************************************** > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. input : StartTime1(90000),EndTime1(91000); input : StartTime2(91000),EndTime2(92000); var : Tcond1(false),tcond2(False); var : h1(0),l1(0),s1(0),v1(0),h2(0),l2(0),s2(0),v2(0),k(0); if (sdate != sdate[1] and stime >= EndTime1) or (sdate == sdate[1] and stime >= EndTime1 and stime[1] < EndTime1) Then Tcond1 = False; if (sdate != sdate[1] and stime >= StartTime1) or (sdate == sdate[1] and stime >= StartTime1 and stime[1] < StartTime1) Then { Tcond1 = true; h1 = h; l1 = l; s1 = 0; } if (sdate != sdate[1] and stime >= EndTime2) or (sdate == sdate[1] and stime >= EndTime2 and stime[1] < EndTime2) Then Tcond2 = False; if (sdate != sdate[1] and stime >= StartTime2) or (sdate == sdate[1] and stime >= StartTime2 and stime[1] < StartTime2) Then { Tcond2 = true; h2 = h; l2 = l; s2 = 0; } if Tcond1 == true Then { if h > h1 Then h1 = h; if l < l1 Then l1 = l; s1 = s1+Upvol; v1 = (h1-l1)/s1*0.01; } if Tcond2 == true Then { if h > h2 Then h2 = h; if l < l2 Then l2 = l; s2 = s2+Upvol; v2 = (h2-l2)/s2*0.01; k = v2-v1; if k >= 0.1 Then Buy(); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 국내선물 데이트레이딩 090000시부터 091000까지 v1=지수변동/상승거래량*0.01 091000시부터 092000까지 v2=지수변동/상승거래량*0.01 k=v2-v1 if k가 0.1% 상승 then buy(); 지수변동은 지정 시간대의 고점-저점입니다. 수식 완성 부탁드립니다.