커뮤니티

수식 부탁 드립니다

프로필 이미지
크라켄
2024-12-25 14:06:10
630
글번호 186593
답변완료
$,안녕하세요 아래 수식에 ATR 적용을부탁드립니다 Input:비율(0); var : aa(0),lc(0),hc(0),t1(0),t2(0); aa = ema(ema(ema(c,9),9),9); if aa[2]<=aa[1] and aa[1] > aa Then { lc = c; PlaySound("C:예스트레이더dataSound1point.wav"); } Else { if lc > 0 and C < lc Then lc = C; } if aa[2]>=aa[1] and aa[1] < aa Then { hc = c; PlaySound("C:예스트레이더dataSound1point.wav"); } Else { if hc > 0 and C > hc Then hc = C; } if lc > 0 Then { var1 = lc+(lc*비율/100); Plot1(var1); } if hc > 0 Then { var2 = hc-(hc*비율/100); plot2(Var2); } plot3(DayClose,"C"); Text_Delete(t1); Text_Delete(t2); t1 = Text_New(sdate,stime,lc+(lc*비율/100)," S:"+NumToStr(lc+(lc*비율/100),2)); t2 = Text_New(sdate,stime,hc-(hc*비율/100)," B:"+NumToStr(hc-(hc*비율/100),2)); Text_SetStyle(t1,5,2); Text_SetStyle(t2,5,2); Text_SetColor(t1,Blue); Text_SetColor(t2,Magenta) $$,언제나 늘 고맙습니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-12-26 11:14:37

안녕하세요 예스스탁입니다. Input: ATRPeriod(20),배수(2); var : aa(0),lc(0),hc(0),t1(0),t2(0); var : A(0); aa = ema(ema(ema(c,9),9),9); A = ATR(ATRPeriod); if aa[2]<=aa[1] and aa[1] > aa Then { lc = c; PlaySound("C:예스트레이더dataSound1point.wav"); } Else { if lc > 0 and C < lc Then lc = C; } if aa[2]>=aa[1] and aa[1] < aa Then { hc = c; PlaySound("C:예스트레이더dataSound1point.wav"); } Else { if hc > 0 and C > hc Then hc = C; } if lc > 0 Then { var1 = lc+A*배수; Plot1(var1); } if hc > 0 Then { var2 = hc-A*배수; plot2(Var2); } plot3(DayClose,"C"); Text_Delete(t1); Text_Delete(t2); t1 = Text_New(sdate,stime,lc+A*배수," S:"+NumToStr(lc+A*배수,2)); t2 = Text_New(sdate,stime,hc-A*배수," B:"+NumToStr(hc-A*배수,2)); Text_SetStyle(t1,5,2); Text_SetStyle(t2,5,2); Text_SetColor(t1,Blue); Text_SetColor(t2,Magenta); 즐거운 하루되세요 > 크라켄 님이 쓴 글입니다. > 제목 : 수식 부탁 드립니다 > $,안녕하세요 아래 수식에 ATR 적용을부탁드립니다 Input:비율(0); var : aa(0),lc(0),hc(0),t1(0),t2(0); aa = ema(ema(ema(c,9),9),9); if aa[2]<=aa[1] and aa[1] > aa Then { lc = c; PlaySound("C:예스트레이더dataSound1point.wav"); } Else { if lc > 0 and C < lc Then lc = C; } if aa[2]>=aa[1] and aa[1] < aa Then { hc = c; PlaySound("C:예스트레이더dataSound1point.wav"); } Else { if hc > 0 and C > hc Then hc = C; } if lc > 0 Then { var1 = lc+(lc*비율/100); Plot1(var1); } if hc > 0 Then { var2 = hc-(hc*비율/100); plot2(Var2); } plot3(DayClose,"C"); Text_Delete(t1); Text_Delete(t2); t1 = Text_New(sdate,stime,lc+(lc*비율/100)," S:"+NumToStr(lc+(lc*비율/100),2)); t2 = Text_New(sdate,stime,hc-(hc*비율/100)," B:"+NumToStr(hc-(hc*비율/100),2)); Text_SetStyle(t1,5,2); Text_SetStyle(t2,5,2); Text_SetColor(t1,Blue); Text_SetColor(t2,Magenta) $$,언제나 늘 고맙습니다