커뮤니티

부탁 드립니다

프로필 이미지
야할라
2023-06-17 06:18:44
1254
글번호 169837
답변완료
수고 하십니다 키움수식 변환 부탁 드립니다 if(eavg(c,6,0)>eavg(c,6,6), if((c+c(1))/2>(h(3)+h(4))/2,1,0),0) and c>(h(2)-l(2))/2 and c>h(3) and mfi(14)>40 ################################# period1 = 1 period2 = 15 a=ma(c,period1); b=ma(c,period2); x=(a-b); if(x>=x(1) and x>=0,x,if(x<x(1) and x>=0,x,0)) ################################### p= 20 m = 1 c<avg(c,p)-m*stdev(c,p) ######################################## 가격 = 종가 period = 3 highestsince(1,crossup(trix(period),0),가격); lowestsince(1,crossdown(trix(period),0),가격);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-06-19 10:01:32

안녕하세요 예스스탁입니다. 1,2,3번은 마지막에 조건식만 있는데 어떤값을 지표로 그리는지 알수 없습니다. 조건만족하면 1 아니면 0이 출력되게 작성해 드립니다. 1 var1 = Ema(C,6); if var1>var1[6] and (c+c[1])/2 > (h[3]+h[4])/2 and c>(h[2]-l[2])/2 and c>h[3] and mfi(14)>40 Then Plot1(1); else Plot1(0); 2 input : period1(1),period2(15); var : a(0),b(0),x(0); a=ma(c,period1); b=ma(c,period2); x=(a-b); var1 = iff(x>=x[1] and x>=0,x,iff(x<x[1] and x>=0,x,0)); Plot1(var1); 3 input : P(20),mv(1); if c < ma(c,p)-mv*std(c,p) Then Plot1(1); Else Plot1(0); 4 input : Period(3); var : hh(0),ll(0); var1 = TRIX(Period); if CrossUp(var1,0) Then hh = c; Else { if hh > 0 and c > hh Then hh = c; } if CrossDown(var1,0) Then ll = c; Else { if ll > 0 and c < ll Then ll = c; } if hh > 0 Then plot1(hh); if ll > 0 Then plot2(ll); 즐거운 하루되세요 > 야할라 님이 쓴 글입니다. > 제목 : 부탁 드립니다 > 수고 하십니다 키움수식 변환 부탁 드립니다 if(eavg(c,6,0)>eavg(c,6,6), if((c+c(1))/2>(h(3)+h(4))/2,1,0),0) and c>(h(2)-l(2))/2 and c>h(3) and mfi(14)>40 ################################# period1 = 1 period2 = 15 a=ma(c,period1); b=ma(c,period2); x=(a-b); if(x>=x(1) and x>=0,x,if(x<x(1) and x>=0,x,0)) ################################### p= 20 m = 1 c<avg(c,p)-m*stdev(c,p) ######################################## 가격 = 종가 period = 3 highestsince(1,crossup(trix(period),0),가격); lowestsince(1,crossdown(trix(period),0),가격);