커뮤니티

문의합니다

프로필 이미지
뚜벅뚜벅
2011-11-24 01:43:59
435
글번호 45107
답변완료
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"); 위 식을 직선으로 가능한지요? 기준선 돌파면 업 하향이면 다운 으로 색깔도 위는 빨강 아래는 파랑으로 같이 나올수있도록 구현 가능하면 부탁드립니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-11-24 10:15:51

안녕하세요 예스스탁입니다. 0선위에서 붉은색, 0선 아래서는 파란색으로 수식을 수정했습니다. 직선으로 만드신다고 하시는 부분이 막대그래프로 보고자 하시는 내용이시면 지표속성창에서 막대그래프로 설정하시고 굵기를 조정하시면 되며 차트에 수평선을 긋고자 하시는 것이면 가능하지 않습니다. 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; if PriceSlope > 0 Then Plot1(PriceSlope,"Slope of Price",RED); Else Plot1(PriceSlope,"Slope of Price",blue); PlotBaseLine1(0, "기준선1"); 즐거운 하루되세요 > 뚜벅뚜벅 님이 쓴 글입니다. > 제목 : 문의합니다 > 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"); 위 식을 직선으로 가능한지요? 기준선 돌파면 업 하향이면 다운 으로 색깔도 위는 빨강 아래는 파랑으로 같이 나올수있도록 구현 가능하면 부탁드립니다.