커뮤니티

문의드립니다.

프로필 이미지
소드노
2025-08-10 20:36:16
143
글번호 193115
답변완료
안녕하세요 아래 TS에서 사용하는 함수를 예스에서 적용가능하게 부탁드립니다 . $ATRChander라는 함수입니다 . Inputs: Multi(numeric), period(numeric); Var: loss(0), trail(0); loss = AvgTrueRange(Period) * Multi; Value1 = $ATRChandelier(Multi,period)[1]; if C > Value1 then trail = Close[0] - loss; if C < Value1 then trail = Close[0] + loss; if C > Value1 AND C[1] > Value1 then trail = MaxList(Value1,Close[0] - loss); if C < Value1 AND C[1] < Value1 then trail = MinList(Value1, Close[0] + loss); $ATRChandelier=trail;
사용자 함수
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-08-11 13:54:50

안녕하세요 예스스탁입니다. 함수명 : ATRChandelier 반환값형 : 숫자형 Inputs: Multi(numeric), period(numeric); Var: loss(0), trail(0); loss = ATR(Period) * Multi; Value1 = trail[1]; if C > Value1 then trail = Close[0] - loss; if C < Value1 then trail = Close[0] + loss; if C > Value1 AND C[1] > Value1 then trail = MaxList(Value1,Close[0] - loss); if C < Value1 AND C[1] < Value1 then trail = MinList(Value1, Close[0] + loss); ATRChandeier=trail; 즐거운 하루되세요 > 소드노 님이 쓴 글입니다. > 제목 : 문의드립니다. > 안녕하세요 아래 TS에서 사용하는 함수를 예스에서 적용가능하게 부탁드립니다 . $ATRChander라는 함수입니다 . Inputs: Multi(numeric), period(numeric); Var: loss(0), trail(0); loss = AvgTrueRange(Period) * Multi; Value1 = $ATRChandelier(Multi,period)[1]; if C > Value1 then trail = Close[0] - loss; if C < Value1 then trail = Close[0] + loss; if C > Value1 AND C[1] > Value1 then trail = MaxList(Value1,Close[0] - loss); if C < Value1 AND C[1] < Value1 then trail = MinList(Value1, Close[0] + loss); $ATRChandelier=trail;