안녕하세요
지표 수식 부탁 드립니다.
1.일봉
100 봉 기준으로
전일고가 76.4 / 61.8/ 50 / 38.2/ 23.6/ 전일저가 7개 수식 부탁 드립니다
2. 주봉 동일
답변 1
예스스탁
예스스탁 답변
2022-03-11 16:26:55
안녕하세요
예스스탁입니다.
1
input : N(100);
var : hh(0),ll(0),cnt(0);
if DayHigh(n) > 0 and DayLow(n) > 0 Then
{
hh = 0;
ll = 0;
For cnt = 1 to N
{
if hh == 0 or (hh > 0 and DayHigh(cnt) > hh) Then
hh = DayHigh(cnt);
if ll == 0 or (ll > 0 and DayLow(cnt) < ll) Then
ll = DayLow(cnt);
}
Plot1(hh);
Plot2(ll-(hh-ll)*0.764);
Plot3(ll-(hh-ll)*0.618);
Plot4(ll-(hh-ll)*0.500);
Plot5(ll-(hh-ll)*0.382);
Plot6(ll-(hh-ll)*0.236);
Plot7(ll);
}
2
input : N(100);
var : hh(0),ll(0),cnt(0);
Array : wh[200](0),wl[200](0);
if DayOfWeek(Bdate) < DayOfWeek(Bdate[1]) Then
{
wh[0] = h;
wl[0] = l;
For cnt = 1 to 199
{
wh[cnt] = wh[cnt-1][1];
wl[cnt] = wl[cnt-1][1];
}
}
if wh[0] > 0 and h > wh[0] Then
wh[0] = h;
if wl[0] > 0 and l < wl[0] Then
wl[0] = l;
if wh[n] > 0 and wl[n] > 0 Then
{
hh = 0;
ll = 0;
For cnt = 1 to N
{
if hh == 0 or (hh > 0 and wh[cnt] > hh) Then
hh = wh[cnt];
if ll == 0 or (ll > 0 and wl[cnt] < ll) Then
ll = wl[cnt];
}
Plot1(hh);
Plot2(ll-(hh-ll)*0.764);
Plot3(ll-(hh-ll)*0.618);
Plot4(ll-(hh-ll)*0.500);
Plot5(ll-(hh-ll)*0.382);
Plot6(ll-(hh-ll)*0.236);
Plot7(ll);
}
즐거운 하루되세요
> 럭키잭팟 님이 쓴 글입니다.
> 제목 : 지표 수식
>
안녕하세요
지표 수식 부탁 드립니다.
1.일봉
100 봉 기준으로
전일고가 76.4 / 61.8/ 50 / 38.2/ 23.6/ 전일저가 7개 수식 부탁 드립니다
2. 주봉 동일