커뮤니티

3단선 수식부탁 드립니다.

프로필 이미지
요타
2018-12-04 10:31:31
173
글번호 124118
답변완료
<요청1> ① 상단선이 이전 3개 상단선 보더 크면 매수, 작으면 매도 로직 좀 부탁 드립니다. ② 선 완성시 소리로 나오게 표현좀 부탁 드립니다. PlaySound("C:₩예스트레이더₩data₩Sound₩stop"); 소리문장어디에 삽입하죠? ### 아래 수식 input : N(5); var : idx(0),hh(0),d1(0),t1(0),TL(0),TF(0); var : LL(0),TL2(0), mid(0), TL3(0); if bdate != bdate[1] Then idx = 0; Else idx = idx+1; TF = idx%N; if bdate != bdate[1] or (bdate == bdate[1] and TF < TF[1]) Then { hh = h; LL = L; mid = (hh+LL)/2; d1 = sdate; t1 = stime; TL = TL_New(d1,t1,hh,sdate,stime,hh); TL_SetColor(TL,RED); TL2 = TL_New(d1,t1,LL,sdate,stime,LL); TL_SetColor(TL2,blue); TL3 = TL_New(d1,t1,mid,sdate,stime,mid); TL_SetColor(TL3,gray); } else { if H > hh Then hh = h; if L < LL Then LL = L; mid = (hh+LL)/2; TL_SetBegin(TL,d1,t1,hh); TL_SetEnd(TL,sdate,stime,hh); TL_SetBegin(TL2,d1,t1,LL); TL_SetEnd(TL2,sdate,stime,LL); TL_SetBegin(TL3,d1,t1,mid); TL_SetEnd(TL3,sdate,stime,mid); } * 고맙 습니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-12-04 13:31:34

안녕하세요 예스스탁입니다. input : N(5); var : idx(0),hh(0),d1(0),t1(0),TL(0),TF(0),h1(0); var : LL(0),TL2(0), mid(0), TL3(0); if bdate != bdate[1] Then idx = 0; Else idx = idx+1; TF = idx%N; if bdate != bdate[1] or (bdate == bdate[1] and TF < TF[1]) Then { hh = h; LL = L; h1 = hh[1]; mid = (hh+LL)/2; d1 = sdate; t1 = stime; TL = TL_New(d1,t1,hh,sdate,stime,hh); TL_SetColor(TL,RED); TL2 = TL_New(d1,t1,LL,sdate,stime,LL); TL_SetColor(TL2,blue); TL3 = TL_New(d1,t1,mid,sdate,stime,mid); TL_SetColor(TL3,gray); } else { if H > hh Then hh = h; if L < LL Then LL = L; mid = (hh+LL)/2; TL_SetBegin(TL,d1,t1,hh); TL_SetEnd(TL,sdate,stime,hh); TL_SetBegin(TL2,d1,t1,LL); TL_SetEnd(TL2,sdate,stime,LL); TL_SetBegin(TL3,d1,t1,mid); TL_SetEnd(TL3,sdate,stime,mid); } if MarketPosition <= 0 and hh > h1 and h1 > 0 Then { buy(); PlaySound("C:₩예스트레이더₩data₩Sound₩stop"); } if MarketPosition >= 0 and hh < h1 and h1 > 0 Then { sell(); PlaySound("C:₩예스트레이더₩data₩Sound₩stop"); } 즐거운 하루되세요 > 요타 님이 쓴 글입니다. > 제목 : 3단선 수식부탁 드립니다. > <요청1> ① 상단선이 이전 3개 상단선 보더 크면 매수, 작으면 매도 로직 좀 부탁 드립니다. ② 선 완성시 소리로 나오게 표현좀 부탁 드립니다. PlaySound("C:₩예스트레이더₩data₩Sound₩stop"); 소리문장어디에 삽입하죠? ### 아래 수식 input : N(5); var : idx(0),hh(0),d1(0),t1(0),TL(0),TF(0); var : LL(0),TL2(0), mid(0), TL3(0); if bdate != bdate[1] Then idx = 0; Else idx = idx+1; TF = idx%N; if bdate != bdate[1] or (bdate == bdate[1] and TF < TF[1]) Then { hh = h; LL = L; mid = (hh+LL)/2; d1 = sdate; t1 = stime; TL = TL_New(d1,t1,hh,sdate,stime,hh); TL_SetColor(TL,RED); TL2 = TL_New(d1,t1,LL,sdate,stime,LL); TL_SetColor(TL2,blue); TL3 = TL_New(d1,t1,mid,sdate,stime,mid); TL_SetColor(TL3,gray); } else { if H > hh Then hh = h; if L < LL Then LL = L; mid = (hh+LL)/2; TL_SetBegin(TL,d1,t1,hh); TL_SetEnd(TL,sdate,stime,hh); TL_SetBegin(TL2,d1,t1,LL); TL_SetEnd(TL2,sdate,stime,LL); TL_SetBegin(TL3,d1,t1,mid); TL_SetEnd(TL3,sdate,stime,mid); } * 고맙 습니다.