커뮤니티
지표식질문
2009-08-19 04:27:04
671
글번호 24299
Inputs: Length(14);
Variables: idx(0), sum(0),Avgv(0),Power(0),PowAvg(0),Mean(0),PowStd(0),PriceSlope(0);
idx = accum(1);
Sum = accumn(idx*C,Length);
Avgv = (accumn(idx,Length)*(accumn(C,Length)))/Length;
Power = (accumn(Pow(idx,2),Length));
PowAvg = Pow(accumn(idx,Length),2)/Length;
Mean = Sum - avgv;
PowStd = Power - PowAvg;
If PowStd == 0 Then
PriceSlope = 0;
Else
PriceSlope = Mean / PowStd;
Plot1(PriceSlope,"Slope of Price");
PlotBaseLine1(0, "기준선1");
idx = accum(1) 과 idx = 1 이거랑 같지않나요? 왜 저렇게 표현한거에요?
답변 1
예스스탁 예스스탁 답변
2009-08-19 11:40:17
안녕하세요
예스스탁입니다.
accum(1)은 각봉의 갯수를 카운트하는 내용입니다.
1,2,3,4,5,~~
idx = 1은 idx에 1값만을 할당하는 것이 됩니다.
accum(1)은 index+1과 같습니다.
즐거운 하루되세요
> sdfadfe 님이 쓴 글입니다.
> 제목 : 지표식질문
> Inputs: Length(14);
Variables: idx(0), sum(0),Avgv(0),Power(0),PowAvg(0),Mean(0),PowStd(0),PriceSlope(0);
idx = accum(1);
Sum = accumn(idx*C,Length);
Avgv = (accumn(idx,Length)*(accumn(C,Length)))/Length;
Power = (accumn(Pow(idx,2),Length));
PowAvg = Pow(accumn(idx,Length),2)/Length;
Mean = Sum - avgv;
PowStd = Power - PowAvg;
If PowStd == 0 Then
PriceSlope = 0;
Else
PriceSlope = Mean / PowStd;
Plot1(PriceSlope,"Slope of Price");
PlotBaseLine1(0, "기준선1");
idx = accum(1) 과 idx = 1 이거랑 같지않나요? 왜 저렇게 표현한거에요?
이전글