커뮤니티

예스식으로 변환부탁드립니다

프로필 이미지
jdavid
2020-03-27 06:08:00
523
글번호 137265
답변완료
감사합니다 함수명 SMA Inputs : Price(NumericSeries), Length(NumericSimple) Variables: Sum(0), Counter(0) Sum = 0 For counter = 0 To Length-1 Sum = Sum + Price[counter] Next IF Length > 0 Then SMA = Sum / Length Else SMA = 0 End IF // 함수명 NETPOWER Input : Length(NumericSimple) Variables : BPower(0), SPower(0) BPower = (((Close-Close[1])*3+High-Close[1])*100)/Close[1] SPower = (((Close[1]-Close)*3+Close[1]-Low)*100)/Close[1] NetPower = Sma(BPower-SPower, Length)
사용자 함수
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-03-30 09:36:52

안녕하세요 예스스탁입니다. 1 함수명 SMA 반환값형 : 숫자형 Inputs : Price(NumericSeries), Length(NumericSimple); Variables: Sum(0), Counter(0); Sum = 0; For counter = 0 To Length-1 { Sum = Sum + Price[counter]; } IF Length > 0 Then SMA = Sum / Length; Else SMA = 0; 2 함수명 NETPOWER 반환값형 : 숫자형 Input : Length(NumericSimple); Variables : BPower(0), SPower(0); BPower = (((Close-Close[1])*3+High-Close[1])*100)/Close[1]; SPower = (((Close[1]-Close)*3+Close[1]-Low)*100)/Close[1]; NetPower = Sma(BPower-SPower, Length); 즐거운 하루되세요 > jdavid 님이 쓴 글입니다. > 제목 : 예스식으로 변환부탁드립니다 > 감사합니다 함수명 SMA Inputs : Price(NumericSeries), Length(NumericSimple) Variables: Sum(0), Counter(0) Sum = 0 For counter = 0 To Length-1 Sum = Sum + Price[counter] Next IF Length > 0 Then SMA = Sum / Length Else SMA = 0 End IF // 함수명 NETPOWER Input : Length(NumericSimple) Variables : BPower(0), SPower(0) BPower = (((Close-Close[1])*3+High-Close[1])*100)/Close[1] SPower = (((Close[1]-Close)*3+Close[1]-Low)*100)/Close[1] NetPower = Sma(BPower-SPower, Length)