커뮤니티

안녕하세요. 항상 도움주셔서 감사합니다.

프로필 이미지
쾌감
2023-09-18 15:28:26
1112
글번호 172544
답변완료
다름이 아니오라, [사용자 함수]에 있는 sar 또는 Csar의 어느 부분을 건드려야 "이동평균선"의 값을 기준으로 파라볼릭이 작동하는지 궁금해서요. _____________________ 예제로 60Ema를 대상으로 작동되는 파라볼릭의 [지표식]을 알려주신다면 그것을 바탕으로 공부 해 보겠습니다. 항상 도움 주셔서 감사합니다! (--) ( __) (--)
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-09-18 16:13:29

안녕하세요 예스스탁입니다. 수시에서 사용되는 H,L,C를 이동평균값으로 변경해 주시면 됩니다. 선언부는 최초값이므로 모두 종가로 지정하시면 됩니다. Input : Period(60),AF(0.02), AFMAX(0.2); Var : Direction(0), SAR_Value(c), AF_Value(.02), HighValue(C), LowValue(C), EP(0); var : emav(0),Sarv(0); Emav = Ema(C,Period); if EP != 0 Then { if Direction == 1 then { EP = HighValue; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if emav > HighValue then { HighValue = emav; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } if emav < SAR_Value then { Direction = -1; SAR_Value = EP; AF_Value = 0; EP = 0; LowValue = emav; } } else { EP = LowValue; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if emav < LowValue then { LowValue = emav; AF_Value = AF_Value + Af; if AF_Value >= AFMAX then AF_Value = AFMAX; } if emav > SAR_Value then { Direction = 1; SAR_Value = EP; AF_Value = 0; EP = 0; HighValue = emav; } } Sarv = SAR_Value; } else { if SAR_Value != 0 && EP == 0 then { if Direction == 1 then { EP = HighValue; AF_Value = AF; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if emav > HighValue then { HighValue = emav; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } } else { EP = LowValue; AF_Value = Af; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if emav < LowValue then { LowValue = emav; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } } Sarv = SAR_Value; } else { if Direction == 0 then { if emav > emav[1] then Direction = 1; else if emav < emav[1] then Direction = -1; } else { if Direction == 1 then { if emav < emav[1] then { Direction = -1; SAR_Value = HighValue; Sarv = SAR_Value; } } if Direction == -1 then { if emav > emav[1] then { Direction = 1; SAR_Value = LowValue; Sarv = SAR_Value; } } } LowValue = min(emav, LowValue); HighValue = max(emav, HighValue); } } Plot1(Sarv,"파라볼릭"); 즐거운 하루되세요 > 쾌감 님이 쓴 글입니다. > 제목 : 안녕하세요. 항상 도움주셔서 감사합니다. > 다름이 아니오라, [사용자 함수]에 있는 sar 또는 Csar의 어느 부분을 건드려야 "이동평균선"의 값을 기준으로 파라볼릭이 작동하는지 궁금해서요. _____________________ 예제로 60Ema를 대상으로 작동되는 파라볼릭의 [지표식]을 알려주신다면 그것을 바탕으로 공부 해 보겠습니다. 항상 도움 주셔서 감사합니다! (--) ( __) (--)