커뮤니티

67421 재문의 드립니다.

프로필 이미지
물고기
2020-05-20 16:13:15
1466
글번호 139034
답변완료
67421 답변 주셔서 감사드립니다. 원본 수식에 plot이 1. volt as "Vmeter" 2. t as "Threshold level"로 2개 있습니다만 답변 주신 수식에 1개의 plot만 있습니다. volt와 t의 plot도 부탁드릴수 있을까요 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-05-20 17:22:10

input : Viscosity(7),Sedimentation(50),Thresholdlevel(1.1),lagsupressor(true); var : lagsK(0),s1(0),s3(0),TYPICALPRICE(0); var : sa(0),vol(0),indc(0),MA1(0),d1(0),sum1(0),anti(0),ma2(0),d2(0),sum2(0),Sedi(0); var : x1(0),x2(0),antithres(0),t(0),volt(0); TYPICALPRICE = (H+l+c)/3; if barindex > Sedimentation then { lagsK=0.5; sa = ATR(Viscosity); s1 = indc[1]; s3 = indc[3]; if lagsupressor then vol=sa/atr(Sedimentation)+lagsK*(s1-s3); else vol=sa/atr(Sedimentation); MA1=wma(typicalprice,Viscosity); D1=0; Sum1=0; for x1=0 to Viscosity-1 { D1=square(typicalprice[x1]-MA1); Sum1=Sum1+D1; anti=sqrt(Sum1/(x1+1)); } MA2=wma(typicalprice,Sedimentation); D2=0; Sum2=0; for x2=0 to Sedimentation-1 { D2=square(typicalprice[x2]-MA2); Sum2=Sum2+D2; Sedi=sqrt(Sum2/(x2+1)); } antithres=anti/Sedi; t = Thresholdlevel; t = t-antithres; if(vol>t) then volt=vol; else volt=vol; indc=vol; plot1(volt,"vmeter",rgb(0,200,0)); plot2(t,"threshold leve",red); } > 물고기 님이 쓴 글입니다. > 제목 : 67421 재문의 드립니다. > 67421 답변 주셔서 감사드립니다. 원본 수식에 plot이 1. volt as "Vmeter" 2. t as "Threshold level"로 2개 있습니다만 답변 주신 수식에 1개의 plot만 있습니다. volt와 t의 plot도 부탁드릴수 있을까요 감사합니다.