커뮤니티

수식 추가로 부탁드립니다

프로필 이미지
오이도인
2022-06-02 11:06:33
1417
글번호 159504
답변완료

첨부 이미지

수고하십니다. 아래 사용자 함수는 첨부와 같은 에러 내용이 나오고 안됩니다.. 재확인 부탁드립니다. 감사합니다.수고하세요.. //2.minhighPrice1의 사용자 함수 Input : ATRperiod1(Numeric),amplitude1(Numeric); var : trend1(0),nexttrend1(0),maxlowPrice1(0); var : up1(0),down1(0),atrHigh1(0),atrLow1(0),arrowup1(0),arrowdown1(0); var : atr21(0),dev1(0),highPrice1(0),lowPrice1(0),highma1(0),lowma1(0),midma1(0),HTM1(0); atr21 = atr(ATRperiod1) / 2 ; dev1 = atr21 * 5.5 ; highPrice1 = Highest(H,amplitude1*1.5); lowPrice1 = Lowest(L,amplitude1*1.5); highma1 = ma(high, amplitude1*1.25); lowma1 = ma(low, amplitude1*0.75); midma1 = (highma1+lowma1)/2 ; if nexttrend1 == 1 Then { maxlowPrice1 = max(lowPrice1, maxlowPrice1); if midma1 < maxlowPrice1 and close < iff(isnan(low[1])==true,low,Low[1]) Then { trend1 = 1; nexttrend1 = 0; minhighPrice1 = highPrice1; } } else { minhighPrice1 = min(highPrice1, minhighPrice1[1]); if midma1 > minhighPrice1 and close > iff(isnan(high[1])==true,high,high[1]) Then { trend1 = 0; nexttrend1 = 1; maxlowPrice1 = lowPrice1; } }
사용자 함수
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-06-02 16:58:45

안녕하세요 예스스탁입니다. 이전 답변드린 사용자함수 수식에 오류가 없습니다. 별도로 수정해 드릴부분이 없습니다. 사용자함수 편집창에서 작성하고 있으신지 확인하시기 바랍니다. 즐거운 하루되세요 > 오이도인 님이 쓴 글입니다. > 제목 : 수식 추가로 부탁드립니다 > 수고하십니다. 아래 사용자 함수는 첨부와 같은 에러 내용이 나오고 안됩니다.. 재확인 부탁드립니다. 감사합니다.수고하세요.. //2.minhighPrice1의 사용자 함수 Input : ATRperiod1(Numeric),amplitude1(Numeric); var : trend1(0),nexttrend1(0),maxlowPrice1(0); var : up1(0),down1(0),atrHigh1(0),atrLow1(0),arrowup1(0),arrowdown1(0); var : atr21(0),dev1(0),highPrice1(0),lowPrice1(0),highma1(0),lowma1(0),midma1(0),HTM1(0); atr21 = atr(ATRperiod1) / 2 ; dev1 = atr21 * 5.5 ; highPrice1 = Highest(H,amplitude1*1.5); lowPrice1 = Lowest(L,amplitude1*1.5); highma1 = ma(high, amplitude1*1.25); lowma1 = ma(low, amplitude1*0.75); midma1 = (highma1+lowma1)/2 ; if nexttrend1 == 1 Then { maxlowPrice1 = max(lowPrice1, maxlowPrice1); if midma1 < maxlowPrice1 and close < iff(isnan(low[1])==true,low,Low[1]) Then { trend1 = 1; nexttrend1 = 0; minhighPrice1 = highPrice1; } } else { minhighPrice1 = min(highPrice1, minhighPrice1[1]); if midma1 > minhighPrice1 and close > iff(isnan(high[1])==true,high,high[1]) Then { trend1 = 0; nexttrend1 = 1; maxlowPrice1 = lowPrice1; } }