커뮤니티
부탁드립니다.
2018-10-25 03:19:03
223
글번호 123008
항상 고맙습니다.
타주기(분용) 수식 문의 드립니다
input:n1(10);
var:ap(0),esa(0),d(0),ci(0);
ap=(h+l+c)/3;
esa=ema(ap,n1);
d=ema(abs(ap-esa),n1);
ci=(ap-esa)/(d*0.015);
답변 1
예스스탁 예스스탁 답변
2018-10-25 11:46:50
안녕하세요
예스스탁입니다.
Input : ntime(30),n1(10);
var : S1(0),D1(0),TM(0),TF1(0),AP(0);
var : idx(0),HH(0),LL(0),EP(0),ci(0);
Var : Ep1(0), JISU1(0), PreJISU1(0);
Var : Ep2(0), JISU2(0), PreJISU2(0);
Ep1 = 2/(n1+1);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF1 = TM%ntime;
if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF1 < TF1[1]) Then
{
HH = H;
LL = L;
idx = idx+1;
PreJISU1 = JISU1[1];
PreJISU2 = JISU2[1];
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
ap = (HH+LL+c)/3;
if idx <= 1 then
{
JISU1 = ap;
JISU2 = abs(ap-jisu1);
}
else
{
JISU1 = ap * EP1 + PreJISU1 * (1-EP1);
JISU2 = abs(ap-JISU1) * EP1 + PreJISU2 * (1-EP1);
}
ci = (ap-JISU1)/(JISU2*0.015);
plot1(ci);
}
즐거운 하루되세요
> 뮬리 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 항상 고맙습니다.
타주기(분용) 수식 문의 드립니다
input:n1(10);
var:ap(0),esa(0),d(0),ci(0);
ap=(h+l+c)/3;
esa=ema(ap,n1);
d=ema(abs(ap-esa),n1);
ci=(ap-esa)/(d*0.015);
다음글