커뮤니티

수식수정 부탁 드립니다.

프로필 이미지
다올
2022-02-11 16:26:17
947
글번호 156207
답변완료
//지표식 == (slope of price) 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; 기존 지표식(slope of price)을 Data2로 바꾸는 과정입니다. 잘못된 부분 수정 부탁드립니다. Inputs: D2Length(14); Variables: D2idx(0), D2sum(0),D2Avgv(0),D2Power(0),D2PowAvg(0),D2Mean(0),D2PowStd(0),D2PriceSlope(0); D2idx = data2(accum(1)); D2Sum = data2(accumn(idx*C,Length)); D2Avgv = data2((accumn(idx,Length)*(accumn(C,Length))))/D2Length; D2Power = data2((accumn(Pow(idx,2),Length))); D2PowAvg = data2(Pow(accumn(idx,Length),2))/Length; D2Mean = D2Sum - D2avgv; D2PowStd = D2Power - D2PowAvg; If D2PowStd == 0 Then D2PriceSlope = 0; Else D2PriceSlope = D2Mean / D2PowStd;
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-02-14 11:12:03

안녕하세요 예스스탁입니다. Inputs: Length(14); Var : D2idx(0,Data2), D2sum(0,Data2),D2Avgv(0,Data2),D2Power(0,Data2); var : D2PowAvg(0,Data2),D2Mean(0,Data2),D2PowStd(0,Data2),D2PriceSlope(0,Data2); D2idx = data2(accum(1)); D2Sum = data2(accumn(D2idx*C,Length)); D2Avgv = data2((accumn(D2idx,Length)*(accumn(C,Length)))/Length); D2Power = data2((accumn(Pow(D2idx,2),Length))); D2PowAvg = data2(Pow(accumn(D2idx,Length),2)/Length); D2Mean = D2Sum - D2avgv; D2PowStd = D2Power - D2PowAvg; If D2PowStd == 0 Then D2PriceSlope = 0; Else D2PriceSlope = D2Mean / D2PowStd; 즐거운 하루되세요 > 다올 님이 쓴 글입니다. > 제목 : 수식수정 부탁 드립니다. > //지표식 == (slope of price) 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; 기존 지표식(slope of price)을 Data2로 바꾸는 과정입니다. 잘못된 부분 수정 부탁드립니다. Inputs: D2Length(14); Variables: D2idx(0), D2sum(0),D2Avgv(0),D2Power(0),D2PowAvg(0),D2Mean(0),D2PowStd(0),D2PriceSlope(0); D2idx = data2(accum(1)); D2Sum = data2(accumn(idx*C,Length)); D2Avgv = data2((accumn(idx,Length)*(accumn(C,Length))))/D2Length; D2Power = data2((accumn(Pow(idx,2),Length))); D2PowAvg = data2(Pow(accumn(idx,Length),2))/Length; D2Mean = D2Sum - D2avgv; D2PowStd = D2Power - D2PowAvg; If D2PowStd == 0 Then D2PriceSlope = 0; Else D2PriceSlope = D2Mean / D2PowStd;