커뮤니티

배열

프로필 이미지
하늘땅
2009-04-15 09:41:32
1037
글번호 21690
답변완료
t/s를 yesstock언어로 바꾸어 주셨으면 합니다.(***부분만) 아래 별표부분인 배열이 이해가 안됩니다. 자세한 설명 부탁드려요. Input: FastMA(9),SlowMA(26),MacdMA(4), NCOs(4), NBars(50), Trailbar(6); Vars: MVal(0), MAvg(0), MDif(0), Counter(0), TotalBars(0), HighestHi(0), LowestLo(0); Array: CO[2,50](0); MVal = MACD(Close,FastMA,SlowMA); MAvg = XAverage(MACD(Close,FastMA,SlowMA),MacdMA); MDif = MVal - MAvg; { Store the MACD Cross information in the CO array } *****If MDif Crosses Over 0 OR MDIF Crosses Under 0 Then Begin For counter = 0 to 49 Begin CO[ 0 , 50 - Counter ] = CO[ 0 , 49 - Counter ]; CO[ 1 , 50 - Counter ] = CO[ 1 , 49 - Counter ]; CO[ 2 , 50 - Counter ] = CO[ 2 , 49 - Counter ]; End; CO[ 0 , 0 ] = BarNumber; CO[ 1, 0 ] = High; CO[ 2, 0 ] = Low; End;******
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2009-04-15 15:42:15

안녕하세요 예스스탁입니다. Input: FastMA(9),SlowMA(26),MacdMA(4), NCOs(4), NBars(50), Trailbar(6); Vars: MVal(0), MAvg(0), MDif(0), Counter(0), TotalBars(0), HighestHi(0), LowestLo(0); Array: cov[2,50](0); MVal = MACD(FastMA,SlowMA); MAvg = ema(MACD(FastMA,SlowMA),MacdMA); MDif = MVal - MAvg; //{ Store the MACD Cross information in the cov array } if crossup(MDif, 0) OR CrossDown(MDIF, 0) Then Begin For counter = 0 to 49 Begin cov[ 0 , 50 - counter ] = cov[ 0 , 49 - counter ]; cov[ 1 , 50 - counter ] = cov[ 1 , 49 - counter ]; cov[ 2 , 50 - counter ] = cov[ 2 , 49 - counter ]; End; cov[ 0, 0] = CurrentBar; cov[ 1, 0] = High; cov[ 2, 0] = Low; End; 즐거운 하루되세요 > 하늘땅 님이 쓴 글입니다. > 제목 : 배열 > t/s를 yesstock언어로 바꾸어 주셨으면 합니다.(***부분만) 아래 별표부분인 배열이 이해가 안됩니다. 자세한 설명 부탁드려요. Input: FastMA(9),SlowMA(26),MacdMA(4), NCOs(4), NBars(50), Trailbar(6); Vars: MVal(0), MAvg(0), MDif(0), Counter(0), TotalBars(0), HighestHi(0), LowestLo(0); Array: CO[2,50](0); MVal = MACD(Close,FastMA,SlowMA); MAvg = XAverage(MACD(Close,FastMA,SlowMA),MacdMA); MDif = MVal - MAvg; { Store the MACD Cross information in the CO array } *****If MDif Crosses Over 0 OR MDIF Crosses Under 0 Then Begin For counter = 0 to 49 Begin CO[ 0 , 50 - Counter ] = CO[ 0 , 49 - Counter ]; CO[ 1 , 50 - Counter ] = CO[ 1 , 49 - Counter ]; CO[ 2 , 50 - Counter ] = CO[ 2 , 49 - Counter ]; End; CO[ 0 , 0 ] = BarNumber; CO[ 1, 0 ] = High; CO[ 2, 0 ] = Low; End;******