커뮤니티
부탁 드립니다.
2018-09-17 18:12:34
268
글번호 122119
도움주심에 감사 드립니다.
그림과 같이 부탁 드립니다.
미리 감사드립니다.
수식)
input : N(20);
var : cnt(0),TL(0);
Array : DD[10](0),TT[10](0);
if bdate != bdate[1] Then
{
for cnt = 1 to 9
{
DD[cnt] = DD[cnt-1][1];
TT[cnt] = TT[cnt-1][1];
}
}
DD[0] = bdate;
TT[0] = stime;
TL_Delete(TL);
if abs(C-DayClose(3)) <= PriceScale*N then
{
TL = TL_New(DD[3],TT[3],C,DD[0],TT[0],C);
}
- 1. 59341.PNG (0.03 MB)
답변 3
예스스탁 예스스탁 답변
2018-09-18 13:17:47
안녕하세요
예스스탁입니다.
input : 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);
if bdate != bdate[1] Then
{
ii[0] = 0;
for cnt = 1 to 9
{
DD[cnt] = DD[cnt-1][1];
TT[cnt] = TT[cnt-1][1];
ii[cnt] = ii[cnt-1][1];
}
}
DD[0] = bdate;
TT[0] = stime;
ii[0] = ii[0]+1;
TL_Delete(TL);
TL_Delete(TL1);
TL_Delete(TL2);
TL_Delete(TL3);
TL_Delete(TL4);
if abs(C-DayClose(3)) <= PriceScale*N then
{
TL = TL_New(DD[3],TT[3],C,DD[0],TT[0],C);
hh = h[0];
hi = 0;
ll = l[0];
li = 0;
for cnt = 0 to (ii[0]+ii[1]+ii[2]-1)
{
if h[cnt] > hh Then
{
hh = h[cnt];
hi = cnt;
}
if l[cnt] < ll Then
{
ll = l[cnt];
li = cnt;
}
}
TL1 = TL_New(DD[3],TT[3],C,sdate[hi],stime[hi],hh);
TL2 = TL_New(sdate[hi],stime[hi],hh,sdate,stime,c);
TL3 = TL_New(DD[3],TT[3],C,sdate[li],stime[li],ll);
TL4 = TL_New(sdate[li],stime[li],ll,sdate,stime,c);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 도움주심에 감사 드립니다.
그림과 같이 부탁 드립니다.
미리 감사드립니다.
수식)
input : N(20);
var : cnt(0),TL(0);
Array : DD[10](0),TT[10](0);
if bdate != bdate[1] Then
{
for cnt = 1 to 9
{
DD[cnt] = DD[cnt-1][1];
TT[cnt] = TT[cnt-1][1];
}
}
DD[0] = bdate;
TT[0] = stime;
TL_Delete(TL);
if abs(C-DayClose(3)) <= PriceScale*N then
{
TL = TL_New(DD[3],TT[3],C,DD[0],TT[0],C);
}
yes
2018-09-18 15:41:41
수식 답변에 매우 감사 드립니다.
답변 수식에서 과거 3일전 종가기준으로 시작한 점을
과거 몇개봉 전(예 m개봉전)으로 수정 변경 가능한지요?
미리 감사 드립니다.
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 부탁 드립니다.
> 안녕하세요
예스스탁입니다.
input : 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);
if bdate != bdate[1] Then
{
ii[0] = 0;
for cnt = 1 to 9
{
DD[cnt] = DD[cnt-1][1];
TT[cnt] = TT[cnt-1][1];
ii[cnt] = ii[cnt-1][1];
}
}
DD[0] = bdate;
TT[0] = stime;
ii[0] = ii[0]+1;
TL_Delete(TL);
TL_Delete(TL1);
TL_Delete(TL2);
TL_Delete(TL3);
TL_Delete(TL4);
if abs(C-DayClose(3)) <= PriceScale*N then
{
TL = TL_New(DD[3],TT[3],C,DD[0],TT[0],C);
hh = h[0];
hi = 0;
ll = l[0];
li = 0;
for cnt = 0 to (ii[0]+ii[1]+ii[2]-1)
{
if h[cnt] > hh Then
{
hh = h[cnt];
hi = cnt;
}
if l[cnt] < ll Then
{
ll = l[cnt];
li = cnt;
}
}
TL1 = TL_New(DD[3],TT[3],C,sdate[hi],stime[hi],hh);
TL2 = TL_New(sdate[hi],stime[hi],hh,sdate,stime,c);
TL3 = TL_New(DD[3],TT[3],C,sdate[li],stime[li],ll);
TL4 = TL_New(sdate[li],stime[li],ll,sdate,stime,c);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 도움주심에 감사 드립니다.
그림과 같이 부탁 드립니다.
미리 감사드립니다.
수식)
input : N(20);
var : cnt(0),TL(0);
Array : DD[10](0),TT[10](0);
if bdate != bdate[1] Then
{
for cnt = 1 to 9
{
DD[cnt] = DD[cnt-1][1];
TT[cnt] = TT[cnt-1][1];
}
}
DD[0] = bdate;
TT[0] = stime;
TL_Delete(TL);
if abs(C-DayClose(3)) <= PriceScale*N then
{
TL = TL_New(DD[3],TT[3],C,DD[0],TT[0],C);
}
예스스탁 예스스탁 답변
2018-09-18 16:32:20
안녕하세요
예스스탁입니다.
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);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : Re : Re : 부탁 드립니다.
> 수식 답변에 매우 감사 드립니다.
답변 수식에서 과거 3일전 종가기준으로 시작한 점을
과거 몇개봉 전(예 m개봉전)으로 수정 변경 가능한지요?
미리 감사 드립니다.
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 부탁 드립니다.
> 안녕하세요
예스스탁입니다.
input : 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);
if bdate != bdate[1] Then
{
ii[0] = 0;
for cnt = 1 to 9
{
DD[cnt] = DD[cnt-1][1];
TT[cnt] = TT[cnt-1][1];
ii[cnt] = ii[cnt-1][1];
}
}
DD[0] = bdate;
TT[0] = stime;
ii[0] = ii[0]+1;
TL_Delete(TL);
TL_Delete(TL1);
TL_Delete(TL2);
TL_Delete(TL3);
TL_Delete(TL4);
if abs(C-DayClose(3)) <= PriceScale*N then
{
TL = TL_New(DD[3],TT[3],C,DD[0],TT[0],C);
hh = h[0];
hi = 0;
ll = l[0];
li = 0;
for cnt = 0 to (ii[0]+ii[1]+ii[2]-1)
{
if h[cnt] > hh Then
{
hh = h[cnt];
hi = cnt;
}
if l[cnt] < ll Then
{
ll = l[cnt];
li = cnt;
}
}
TL1 = TL_New(DD[3],TT[3],C,sdate[hi],stime[hi],hh);
TL2 = TL_New(sdate[hi],stime[hi],hh,sdate,stime,c);
TL3 = TL_New(DD[3],TT[3],C,sdate[li],stime[li],ll);
TL4 = TL_New(sdate[li],stime[li],ll,sdate,stime,c);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 도움주심에 감사 드립니다.
그림과 같이 부탁 드립니다.
미리 감사드립니다.
수식)
input : N(20);
var : cnt(0),TL(0);
Array : DD[10](0),TT[10](0);
if bdate != bdate[1] Then
{
for cnt = 1 to 9
{
DD[cnt] = DD[cnt-1][1];
TT[cnt] = TT[cnt-1][1];
}
}
DD[0] = bdate;
TT[0] = stime;
TL_Delete(TL);
if abs(C-DayClose(3)) <= PriceScale*N then
{
TL = TL_New(DD[3],TT[3],C,DD[0],TT[0],C);
}
다음글
이전글