커뮤니티
수식부탁드림니다=================
2017-05-15 17:09:26
114
글번호 109574
야간선물에적용하려고 합니다 전일치는 참고하지말고당일 18:00이후부터만
적용하게해주세요 감사함니다
Input : Period(12), Period1(5), Period2(5);
var : StoK(0),StoD(0);
StoK = StochasticsK(Period,Period1);
StoD = StochasticsD(Period,Period1,Period2);
Plot1(StoK, "StochasticsK");
Plot2(StoD, "StochasticsD");
PlotBaseLine1(20, "기준선20");
PlotBaseLine2(80, "기준선80");
답변 1
예스스탁 예스스탁 답변
2017-05-16 13:21:40
안녕하세요
예스스탁입니다.
Input : Period1(10),Period2(5),Period3(5);
Var : HH(0),LL(0),FK(0),EP1(0),EP2(0),SK(0),SD(0);
var : Tcond(false),idx(0);
if dayindex < Period1 Then{
HH = DayHigh;
LL = DayLow;
}
Else{
HH = highest(H,Period1);
LL = lowest(L,Period1);
}
FK = (Close - LL) / (HH - LL) * 100;
EP1 = 2/(Period2+1);
EP2 = 2/(Period3+1);
if sdate == CurrentDate and
(stime == 180000 or (stime > 180000 and stime[1] < 180000)) Then{
Tcond = true;
idx = 0;
}
if Tcond == true then{
idx = idx+1;
if idx == 1 Then{
SK = FK;
SD = SK;
}
Else{
SK = FK * EP1 + SK[1] * (1-EP1);
SD = SK * EP2 + SD[1] * (1-EP2);
}
plot1(SK,"%k");
plot2(SD,"%D");
PlotBaseLine1(20);
PlotBaseLine2(80);
}
즐거운 하루되세요
> leekss1 님이 쓴 글입니다.
> 제목 : 수식부탁드림니다=================
>
야간선물에적용하려고 합니다 전일치는 참고하지말고당일 18:00이후부터만
적용하게해주세요 감사함니다
Input : Period(12), Period1(5), Period2(5);
var : StoK(0),StoD(0);
StoK = StochasticsK(Period,Period1);
StoD = StochasticsD(Period,Period1,Period2);
Plot1(StoK, "StochasticsK");
Plot2(StoD, "StochasticsD");
PlotBaseLine1(20, "기준선20");
PlotBaseLine2(80, "기준선80");
다음글
이전글