커뮤니티
부탁 드립니다.
2017-04-28 16:15:30
131
글번호 109278
도움 주심에 감사 드립니다.
참고 수식과 같이 시작일시에서
0으로 출발 하도록 부탁 드립니다.
미리 감사 드립니다.
Input : Period(12), Period1(5);
var : StoK(0);
StoK = StochasticsK(Period,Period1);
참고수식)
input : 시작일(0),시작시간(0);
Input : Period1(12),Period2(26),Period3(9);
Var : Ep1(0), JISU1(0),Ep2(0), JISU2(0),Ep3(0),Jisu3(0);
var : MACDVal(0),MACDSig(0),idx(0);
var:cond15(false);
if sdate == 시작일 and (stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간)) then
cond15 = true;
Ep1 = 2/(Period1+1);
Ep2 = 2/(Period2+1);
Ep3 = 2/(Period3+1);
if cond15 == true and cond15[1] == false Then
idx = 0;
if cond15 == true then{
idx = idx+1;
if idx == 1 then {
JISU1 = C;
JISU2 = C;
MACDVal = JiSu1-Jisu2;
MACDsig = MACDVal;
}
else{
JISU1 = C * EP1 + JISU1[1] * (1-EP1);
JISU2 = C * EP2 + JISU2[1] * (1-EP2);
MACDVal = JiSu1-Jisu2;
MACDsig = MACDVal * EP3 + MACDsig[1] * (1-EP3);
}
plot1(MACDVal);
plot2(MACDsig);
PlotBaseLine1(0);
}
답변 1
예스스탁 예스스탁 답변
2017-04-28 16:32:57
안녕하세요
예스스탁입니다.
input : 시작일(0),시작시간(0);
Input : sto1(12),sto2(5),sto3(5);
Var : Ep1(0),Ep2(0);
var : HH(0),LL(0),FK(0),SK(0),SD(0),idx(0);
var : cond15(false);
if sdate == 시작일 and (stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간)) then
cond15 = true;
Ep1 = 2/(sto2+1);
Ep2 = 2/(sto3+1);
if cond15 == true and cond15[1] == false Then{
idx = 0;
}
if cond15 == true then{
idx = idx+1;
LL = Lowest(L, min(sto1,idx));
HH = Highest(H, min(sto1,idx));
FK = (Close - LL) / (HH - LL) * 100;
if idx == 1 then {
SK = FK;
SD = FK;
}
else{
SK = FK * EP1 + SK[1] * (1-EP1);
SD = sk * EP2 + SD[1] * (1-EP2);
}
plot1(SK);
plot2(SD);
PlotBaseLine1(20);
PlotBaseLine2(80);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 도움 주심에 감사 드립니다.
참고 수식과 같이 시작일시에서
0으로 출발 하도록 부탁 드립니다.
미리 감사 드립니다.
Input : Period(12), Period1(5);
var : StoK(0);
StoK = StochasticsK(Period,Period1);
참고수식)
input : 시작일(0),시작시간(0);
Input : Period1(12),Period2(26),Period3(9);
Var : Ep1(0), JISU1(0),Ep2(0), JISU2(0),Ep3(0),Jisu3(0);
var : MACDVal(0),MACDSig(0),idx(0);
var:cond15(false);
if sdate == 시작일 and (stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간)) then
cond15 = true;
Ep1 = 2/(Period1+1);
Ep2 = 2/(Period2+1);
Ep3 = 2/(Period3+1);
if cond15 == true and cond15[1] == false Then
idx = 0;
if cond15 == true then{
idx = idx+1;
if idx == 1 then {
JISU1 = C;
JISU2 = C;
MACDVal = JiSu1-Jisu2;
MACDsig = MACDVal;
}
else{
JISU1 = C * EP1 + JISU1[1] * (1-EP1);
JISU2 = C * EP2 + JISU2[1] * (1-EP2);
MACDVal = JiSu1-Jisu2;
MACDsig = MACDVal * EP3 + MACDsig[1] * (1-EP3);
}
plot1(MACDVal);
plot2(MACDsig);
PlotBaseLine1(0);
}
이전글