커뮤니티
부탁드립니다.
2018-09-19 04:44:45
210
글번호 122140
도움 주심에 감사 드립니다.
다음의 수식은 과거 100개봉전에서 현재 종가 까지 선을 긋고 있습니다.
이것을
(예를 들어)
과거 200개봉전에서 부터 과거 100개봉전까지
tl,tl1,tl2,tl3,tl4선이 그어지도록 부탁 드립니다.
미리 경배로 감사 인사 올립니다.
input : X(100),N(20);
var : cnt(0),TL(0),hh(0),hi(0),ll(0),li(0);
var : tl1(0),tl2(0),tl3(0),tl4(0);
Array : DD[10](0),TT[10](0),ii[10](0);
TL_Delete(TL);
TL_Delete(TL1);
TL_Delete(TL2);
TL_Delete(TL3);
TL_Delete(TL4);
if abs(C-C[x]) <= PriceScale*N then
{
TL = TL_New(sdate[X],stime[X],C,sdate,stime,C);
hh = h[0];
hi = 0;
ll = l[0];
li = 0;
for cnt = 0 to X
{
if h[cnt] > hh Then
{
hh = h[cnt];
hi = cnt;
}
if l[cnt] < ll Then
{
ll = l[cnt];
li = cnt;
}
}
TL1 = TL_New(sdate[X],stime[X],C,sdate[hi],stime[hi],hh);
TL2 = TL_New(sdate[hi],stime[hi],hh,sdate,stime,c);
TL3 = TL_New(sdate[X],stime[X],C,sdate[li],stime[li],ll);
TL4 = TL_New(sdate[li],stime[li],ll,sdate,stime,c);
}
답변 1
예스스탁 예스스탁 답변
2018-09-19 10:46:45
안녕하세요
예스스탁입니다.
외부변수로 이전봉 지정하게 변경해 드립니다.
input : X1(100),X2(200),N(20);
var : cnt(0),TL(0),hh(0),hi(0),ll(0),li(0);
var : tl1(0),tl2(0),tl3(0),tl4(0);
Array : DD[10](0),TT[10](0),ii[10](0);
TL_Delete(TL);
TL_Delete(TL1);
TL_Delete(TL2);
TL_Delete(TL3);
TL_Delete(TL4);
if abs(C-C[x1]) <= PriceScale*N then
{
TL = TL_New(sdate[X2],stime[X2],C[X1],sdate[X1],stime[X1],C[X1]);
hh = h[X1];
hi = 0;
ll = l[X1];
li = 0;
for cnt = X1 to X2
{
if h[cnt] > hh Then
{
hh = h[cnt];
hi = cnt;
}
if l[cnt] < ll Then
{
ll = l[cnt];
li = cnt;
}
}
TL1 = TL_New(sdate[X2],stime[X2],C[X1],sdate[hi],stime[hi],hh);
TL2 = TL_New(sdate[hi],stime[hi],hh,sdate[x1],stime[X1],c[X1]);
TL3 = TL_New(sdate[X2],stime[X2],C[X1],sdate[li],stime[li],ll);
TL4 = TL_New(sdate[li],stime[li],ll,sdate[X1],stime[X1],c[X1]);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 도움 주심에 감사 드립니다.
다음의 수식은 과거 100개봉전에서 현재 종가 까지 선을 긋고 있습니다.
이것을
(예를 들어)
과거 200개봉전에서 부터 과거 100개봉전까지
tl,tl1,tl2,tl3,tl4선이 그어지도록 부탁 드립니다.
미리 경배로 감사 인사 올립니다.
input : X(100),N(20);
var : cnt(0),TL(0),hh(0),hi(0),ll(0),li(0);
var : tl1(0),tl2(0),tl3(0),tl4(0);
Array : DD[10](0),TT[10](0),ii[10](0);
TL_Delete(TL);
TL_Delete(TL1);
TL_Delete(TL2);
TL_Delete(TL3);
TL_Delete(TL4);
if abs(C-C[x]) <= PriceScale*N then
{
TL = TL_New(sdate[X],stime[X],C,sdate,stime,C);
hh = h[0];
hi = 0;
ll = l[0];
li = 0;
for cnt = 0 to X
{
if h[cnt] > hh Then
{
hh = h[cnt];
hi = cnt;
}
if l[cnt] < ll Then
{
ll = l[cnt];
li = cnt;
}
}
TL1 = TL_New(sdate[X],stime[X],C,sdate[hi],stime[hi],hh);
TL2 = TL_New(sdate[hi],stime[hi],hh,sdate,stime,c);
TL3 = TL_New(sdate[X],stime[X],C,sdate[li],stime[li],ll);
TL4 = TL_New(sdate[li],stime[li],ll,sdate,stime,c);
}
이전글