커뮤니티
그물망수정
2016-04-17 23:14:56
191
글번호 97167
안녕하세요. 늘 신속한 답변주셔서 감사합니다.
다름이 아니라 아래의 지표를 차트에 적용하고 싶은데 그물망 차트가 안되네요.
왜그런지 몰라서 부탁드립니다.
그리고 라인 20과 80 라인등 기준선은 없이 스토캐스틱 10.5.5 만 적용한 그물망수식을 부탁드립니다.
Input : Period(5);
Input : sto1(10),sto2(5),sto3(5);
var : HH(0),LL(0),cnt(0),RR(0);
Var : Value_Lowest(0), Value_Highest(0),fk(0),sk(0),sd(0);
Array : mav[100](0);
mav[1] = ma(c,Period*1);
mav[2] = ma(c,Period*2);
mav[3] = ma(c,Period*3);
mav[4] = ma(c,Period*4);
mav[5] = ma(c,Period*5);
mav[6] = ma(c,Period*6);
mav[7] = ma(c,Period*7);
mav[8] = ma(c,Period*8);
mav[9] = ma(c,Period*9);
mav[10] = ma(c,Period*10);
mav[11] = ma(c,Period*11);
mav[12] = ma(c,Period*12);
mav[13] = ma(c,Period*13);
mav[14] = ma(c,Period*14);
mav[15] = ma(c,Period*15);
mav[16] = ma(c,Period*16);
mav[17] = ma(c,Period*17);
mav[18] = ma(c,Period*18);
mav[19] = ma(c,Period*19);
mav[20] = ma(c,Period*20);
mav[21] = ma(c,Period*21);
mav[22] = ma(c,Period*22);
mav[23] = ma(c,Period*23);
mav[24] = ma(c,Period*24);
mav[25] = ma(c,Period*25);
mav[26] = ma(c,Period*26);
mav[27] = ma(c,Period*27);
mav[28] = ma(c,Period*28);
mav[29] = ma(c,Period*29);
mav[30] = ma(c,Period*30);
mav[31] = ma(c,Period*31);
mav[32] = ma(c,Period*32);
mav[33] = ma(c,Period*33);
mav[34] = ma(c,Period*34);
mav[35] = ma(c,Period*35);
mav[36] = ma(c,Period*36);
mav[37] = ma(c,Period*37);
mav[38] = ma(c,Period*38);
mav[39] = ma(c,Period*39);
mav[40] = ma(c,Period*40);
mav[41] = ma(c,Period*41);
mav[42] = ma(c,Period*42);
mav[43] = ma(c,Period*43);
mav[44] = ma(c,Period*44);
mav[45] = ma(c,Period*45);
mav[46] = ma(c,Period*46);
mav[47] = ma(c,Period*47);
mav[48] = ma(c,Period*48);
mav[49] = ma(c,Period*49);
mav[50] = ma(c,Period*10);
if mav[50] > 0 then{
HH = mav[1];
LL = mav[1];
for cnt = 1 to 50
{
if mav[cnt] > HH Then
HH = mav[cnt];
if mav[cnt] < LL Then
LL = mav[cnt];
}
RR = HH-LL;
Value_Lowest = Lowest(RR, sto1);
Value_Highest = Highest(RR, sto2);
FK = (RR - Value_Lowest) / (Value_Highest - Value_Lowest) * 100;
SK = ema(FK,sto2);
sD = ema(SK,sto3);
if sK > Sk[1] Then
plot1(sk,"k",RED);
Else
plot1(sk,"k",blue);
if sd > Sd[1] Then
plot2(sd,"d",RED);
Else
plot2(sd,"d",blue);
PlotBaseLine1(20);
PlotBaseLine2(80);
}
답변 1
예스스탁 예스스탁 답변
2016-04-18 13:32:41
안녕하세요
예스스탁입니다.
문의하신 내용 정확히 이해하지 못했습니다.
올리신 지표식은 그물망을 그리는 지표식이 아닙니다.
일반적으로 스토케스틱은 일정기간 최고가와 최저가를 이용하는데
첨부하신 식은 총 50개의 이평값(그물망)의 일정기간 최대값과 최소값을 이용해
스토케스틱을 계산해서 그리는 지표식입니다.
스토케스틱 자체를 그물망으로 되게 하기위해서는
해당 계산식을 50번 반복적으로 작성해야 하므로
시간이 너무 많이 투입되어 저희쪽에서 해당 부분은 작성해 드릴수는 없습니다.
Input : Period(5);
Input : sto1(10),sto2(5),sto3(5);
var : HH(0),LL(0),cnt(0),RR(0);
Var : Value_Lowest(0), Value_Highest(0),fk(0),sk(0),sd(0);
Array : mav[100](0);
mav[1] = ma(c,Period*1);
mav[2] = ma(c,Period*2);
mav[3] = ma(c,Period*3);
mav[4] = ma(c,Period*4);
mav[5] = ma(c,Period*5);
mav[6] = ma(c,Period*6);
mav[7] = ma(c,Period*7);
mav[8] = ma(c,Period*8);
mav[9] = ma(c,Period*9);
mav[10] = ma(c,Period*10);
mav[11] = ma(c,Period*11);
mav[12] = ma(c,Period*12);
mav[13] = ma(c,Period*13);
mav[14] = ma(c,Period*14);
mav[15] = ma(c,Period*15);
mav[16] = ma(c,Period*16);
mav[17] = ma(c,Period*17);
mav[18] = ma(c,Period*18);
mav[19] = ma(c,Period*19);
mav[20] = ma(c,Period*20);
mav[21] = ma(c,Period*21);
mav[22] = ma(c,Period*22);
mav[23] = ma(c,Period*23);
mav[24] = ma(c,Period*24);
mav[25] = ma(c,Period*25);
mav[26] = ma(c,Period*26);
mav[27] = ma(c,Period*27);
mav[28] = ma(c,Period*28);
mav[29] = ma(c,Period*29);
mav[30] = ma(c,Period*30);
mav[31] = ma(c,Period*31);
mav[32] = ma(c,Period*32);
mav[33] = ma(c,Period*33);
mav[34] = ma(c,Period*34);
mav[35] = ma(c,Period*35);
mav[36] = ma(c,Period*36);
mav[37] = ma(c,Period*37);
mav[38] = ma(c,Period*38);
mav[39] = ma(c,Period*39);
mav[40] = ma(c,Period*40);
mav[41] = ma(c,Period*41);
mav[42] = ma(c,Period*42);
mav[43] = ma(c,Period*43);
mav[44] = ma(c,Period*44);
mav[45] = ma(c,Period*45);
mav[46] = ma(c,Period*46);
mav[47] = ma(c,Period*47);
mav[48] = ma(c,Period*48);
mav[49] = ma(c,Period*49);
mav[50] = ma(c,Period*50);
if mav[50] > 0 then{
HH = mav[1];
LL = mav[1];
for cnt = 1 to 50
{
if mav[cnt] > HH Then
HH = mav[cnt];
if mav[cnt] < LL Then
LL = mav[cnt];
}
RR = HH-LL;
Value_Lowest = Lowest(RR, sto1);
Value_Highest = Highest(RR, sto2);
FK = (RR - Value_Lowest) / (Value_Highest - Value_Lowest) * 100;
SK = ema(FK,sto2);
sD = ema(SK,sto3);
if sK > Sk[1] Then
plot1(sk,"k",RED);
Else
plot1(sk,"k",blue);
if sd > Sd[1] Then
plot2(sd,"d",RED);
Else
plot2(sd,"d",blue);
}
즐거운 하루되세요
> 알리섬 님이 쓴 글입니다.
> 제목 : 그물망수정
> 안녕하세요. 늘 신속한 답변주셔서 감사합니다.
다름이 아니라 아래의 지표를 차트에 적용하고 싶은데 그물망 차트가 안되네요.
왜그런지 몰라서 부탁드립니다.
그리고 라인 20과 80 라인등 기준선은 없이 스토캐스틱 10.5.5 만 적용한 그물망수식을 부탁드립니다.
Input : Period(5);
Input : sto1(10),sto2(5),sto3(5);
var : HH(0),LL(0),cnt(0),RR(0);
Var : Value_Lowest(0), Value_Highest(0),fk(0),sk(0),sd(0);
Array : mav[100](0);
mav[1] = ma(c,Period*1);
mav[2] = ma(c,Period*2);
mav[3] = ma(c,Period*3);
mav[4] = ma(c,Period*4);
mav[5] = ma(c,Period*5);
mav[6] = ma(c,Period*6);
mav[7] = ma(c,Period*7);
mav[8] = ma(c,Period*8);
mav[9] = ma(c,Period*9);
mav[10] = ma(c,Period*10);
mav[11] = ma(c,Period*11);
mav[12] = ma(c,Period*12);
mav[13] = ma(c,Period*13);
mav[14] = ma(c,Period*14);
mav[15] = ma(c,Period*15);
mav[16] = ma(c,Period*16);
mav[17] = ma(c,Period*17);
mav[18] = ma(c,Period*18);
mav[19] = ma(c,Period*19);
mav[20] = ma(c,Period*20);
mav[21] = ma(c,Period*21);
mav[22] = ma(c,Period*22);
mav[23] = ma(c,Period*23);
mav[24] = ma(c,Period*24);
mav[25] = ma(c,Period*25);
mav[26] = ma(c,Period*26);
mav[27] = ma(c,Period*27);
mav[28] = ma(c,Period*28);
mav[29] = ma(c,Period*29);
mav[30] = ma(c,Period*30);
mav[31] = ma(c,Period*31);
mav[32] = ma(c,Period*32);
mav[33] = ma(c,Period*33);
mav[34] = ma(c,Period*34);
mav[35] = ma(c,Period*35);
mav[36] = ma(c,Period*36);
mav[37] = ma(c,Period*37);
mav[38] = ma(c,Period*38);
mav[39] = ma(c,Period*39);
mav[40] = ma(c,Period*40);
mav[41] = ma(c,Period*41);
mav[42] = ma(c,Period*42);
mav[43] = ma(c,Period*43);
mav[44] = ma(c,Period*44);
mav[45] = ma(c,Period*45);
mav[46] = ma(c,Period*46);
mav[47] = ma(c,Period*47);
mav[48] = ma(c,Period*48);
mav[49] = ma(c,Period*49);
mav[50] = ma(c,Period*10);
if mav[50] > 0 then{
HH = mav[1];
LL = mav[1];
for cnt = 1 to 50
{
if mav[cnt] > HH Then
HH = mav[cnt];
if mav[cnt] < LL Then
LL = mav[cnt];
}
RR = HH-LL;
Value_Lowest = Lowest(RR, sto1);
Value_Highest = Highest(RR, sto2);
FK = (RR - Value_Lowest) / (Value_Highest - Value_Lowest) * 100;
SK = ema(FK,sto2);
sD = ema(SK,sto3);
if sK > Sk[1] Then
plot1(sk,"k",RED);
Else
plot1(sk,"k",blue);
if sd > Sd[1] Then
plot2(sd,"d",RED);
Else
plot2(sd,"d",blue);
PlotBaseLine1(20);
PlotBaseLine2(80);
}
이전글