커뮤니티

문의드립니다

프로필 이미지
해피슈
2019-02-12 20:46:41
168
글번호 126103
답변완료
아래 3가지 전략과 지표좀 부탁드립니다 1. RCI(Rank Correlation Index) RCI 9선과 13선이 80이상이고 9선이 13선을 데드크로스 일때 매도 신호 RCI 9선과 13선이 -80이하이고 9선이 13선을 골든크로스 일때 매수 신호 이렇게 전략 부탁드립니다 2. RCI(Rank Correlation Index) RCI 9, 13, 18 선이 80이상이고 9선이 18선을 데드크로스 일때 매도 신호 RCI 9, 13, 18 선이 -80이하이고 9선이 13선을 골든크로스 일때 매수 신호 이렇게 전략 부탁드립니다 3. 1.2 합쳐서 전략 부탁드립니다 4. RSI 지표 30 70 수치 바꿀수 있게 외부 변수로해서 부탁드립니다 5. RCI 지표 에서 80선 -80선 가로선으로 추가 부탁드립니다 그리고 9선이 80선 위면 빨강색상 -80선 이하면 파란색상 나오게 하는 방법도 알려주세요 input : P1(9),P2(13),P3(18),P4(26); Var : cnt(0),Nth(0),tempmax(0), tempindex(0), X1(0),RCI1(0),X2(0),RCI2(0),X3(0),RCI3(0),X4(0),RCI4(0); Array : VALUE1[50](0),VALUE2[50](0),VALUE3[50](0),VALUE4[50](0),NTHVALUE[50](0); for cnt = 0 to 49{ VALUE1[cnt] = C[cnt]; VALUE2[cnt] = C[cnt]; VALUE3[cnt] = C[cnt]; VALUE4[cnt] = C[cnt]; } ############################################### For Nth = 0 to P1-1 { tempmax = -99999999; For cnt = 0 to P1-1{ if VALUE1[cnt] > tempmax then{ tempmax = VALUE1[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE1[tempIndex] = -99999999; } X1 = 0; for cnt = 0 to P1-1{ X1 = X1+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI1 = (1-(6*X1)/(P1*(P1^2-1)))*100; ############################################### For Nth = 0 to P2-1 { tempmax = -99999999; For cnt = 0 to P2-1{ if value2[cnt] > tempmax then{ tempmax = value2[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE2[tempIndex] = -99999999; } X2 = 0; for cnt = 0 to P2-1{ X2 = X2+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI2 = (1-(6*X2)/(P2*(P2^2-1)))*100; ############################################### For Nth = 0 to P3-1 { tempmax = -99999999; For cnt = 0 to P3-1{ if value3[cnt] > tempmax then{ tempmax = value3[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE3[tempIndex] = -99999999; } X3 = 0; for cnt = 0 to P3-1{ X3 = X3+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI3 = (1-(6*X3)/(P3*(P3^2-1)))*100; ############################################### For Nth = 0 to P4-1 { tempmax = -99999999; For cnt = 0 to P4-1{ if value4[cnt] > tempmax then{ tempmax = value4[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE4[tempIndex] = -99999999; } X4 = 0; for cnt = 0 to P4-1{ X4 = X4+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI4 = (1-(6*X4)/(P4*(P4^2-1)))*100; plot1(RCI1); plot2(RCI2); plot3(RCI3); plot4(RCI4);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-02-13 11:31:23

안녕하세요 예스스탁입니다. 1 input : P1(9),P2(13); Var : cnt(0),Nth(0),tempmax(0), tempindex(0), X1(0),RCI1(0),X2(0),RCI2(0); Array : VALUE1[50](0),VALUE2[50](0),NTHVALUE[50](0); for cnt = 0 to 49{ VALUE1[cnt] = C[cnt]; VALUE2[cnt] = C[cnt]; } ############################################### For Nth = 0 to P1-1 { tempmax = -99999999; For cnt = 0 to P1-1{ if VALUE1[cnt] > tempmax then{ tempmax = VALUE1[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE1[tempIndex] = -99999999; } X1 = 0; for cnt = 0 to P1-1{ X1 = X1+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI1 = (1-(6*X1)/(P1*(P1^2-1)))*100; ############################################### For Nth = 0 to P2-1 { tempmax = -99999999; For cnt = 0 to P2-1{ if value2[cnt] > tempmax then{ tempmax = value2[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE2[tempIndex] = -99999999; } X2 = 0; for cnt = 0 to P2-1{ X2 = X2+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI2 = (1-(6*X2)/(P2*(P2^2-1)))*100; if RCI1 > 80 and RCI2 > 80 and CrossDown(RCI1,RCI2) Then sell(); if RCI1 < -80 and RCI2 < -80 and CrossUp(RCI1,RCI2) Then buy(); 2 input : P1(9),P2(13),P3(18); Var : cnt(0),Nth(0),tempmax(0), tempindex(0), X1(0),RCI1(0),X2(0),RCI2(0),X3(0),RCI3(0); Array : VALUE1[50](0),VALUE2[50](0),VALUE3[50](0),NTHVALUE[50](0); for cnt = 0 to 49{ VALUE1[cnt] = C[cnt]; VALUE2[cnt] = C[cnt]; VALUE3[cnt] = C[cnt]; } ############################################### For Nth = 0 to P1-1 { tempmax = -99999999; For cnt = 0 to P1-1{ if VALUE1[cnt] > tempmax then{ tempmax = VALUE1[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE1[tempIndex] = -99999999; } X1 = 0; for cnt = 0 to P1-1{ X1 = X1+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI1 = (1-(6*X1)/(P1*(P1^2-1)))*100; ############################################### For Nth = 0 to P2-1 { tempmax = -99999999; For cnt = 0 to P2-1{ if value2[cnt] > tempmax then{ tempmax = value2[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE2[tempIndex] = -99999999; } X2 = 0; for cnt = 0 to P2-1{ X2 = X2+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI2 = (1-(6*X2)/(P2*(P2^2-1)))*100; ############################################### For Nth = 0 to P3-1 { tempmax = -99999999; For cnt = 0 to P3-1{ if value3[cnt] > tempmax then{ tempmax = value3[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE3[tempIndex] = -99999999; } X3 = 0; for cnt = 0 to P3-1{ X3 = X3+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI3 = (1-(6*X3)/(P3*(P3^2-1)))*100; if RCI1 > 80 and RCI2 > 80 and RCI3 > 80 and CrossDown(RCI1,RCI3) Then sell(); if RCI1 < -80 and RCI2 < -80 and RCI2 < -80 and CrossUp(RCI1,RCI3) Then buy(); 3 input : P1(9),P2(13),P3(18); Var : cnt(0),Nth(0),tempmax(0), tempindex(0), X1(0),RCI1(0),X2(0),RCI2(0),X3(0),RCI3(0); Array : VALUE1[50](0),VALUE2[50](0),VALUE3[50](0),NTHVALUE[50](0); for cnt = 0 to 49{ VALUE1[cnt] = C[cnt]; VALUE2[cnt] = C[cnt]; VALUE3[cnt] = C[cnt]; } ############################################### For Nth = 0 to P1-1 { tempmax = -99999999; For cnt = 0 to P1-1{ if VALUE1[cnt] > tempmax then{ tempmax = VALUE1[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE1[tempIndex] = -99999999; } X1 = 0; for cnt = 0 to P1-1{ X1 = X1+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI1 = (1-(6*X1)/(P1*(P1^2-1)))*100; ############################################### For Nth = 0 to P2-1 { tempmax = -99999999; For cnt = 0 to P2-1{ if value2[cnt] > tempmax then{ tempmax = value2[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE2[tempIndex] = -99999999; } X2 = 0; for cnt = 0 to P2-1{ X2 = X2+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI2 = (1-(6*X2)/(P2*(P2^2-1)))*100; ############################################### For Nth = 0 to P3-1 { tempmax = -99999999; For cnt = 0 to P3-1{ if value3[cnt] > tempmax then{ tempmax = value3[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE3[tempIndex] = -99999999; } X3 = 0; for cnt = 0 to P3-1{ X3 = X3+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI3 = (1-(6*X3)/(P3*(P3^2-1)))*100; if RCI1 > 80 and RCI2 > 80 and CrossDown(RCI1,RCI2) Then sell(); if RCI1 < -80 and RCI2 < -80 and CrossUp(RCI1,RCI2) Then buy(); if RCI1 > 80 and RCI2 > 80 and RCI3 > 80 and CrossDown(RCI1,RCI3) Then sell(); if RCI1 < -80 and RCI2 < -80 and RCI2 < -80 and CrossUp(RCI1,RCI3) Then buy(); 4 Input : Period(9),기준선1(30),기준선2(70); var : RSIV(0); RSIV = RSI(Period); Plot1(RSIV, "RSI"); PlotBaseLine1(기준선1, "기준선1"); PlotBaseLine2(기준선2, "기준선2"); 5 input : P1(9),P2(13),P3(18),P4(26); Var : cnt(0),Nth(0),tempmax(0), tempindex(0), X1(0),RCI1(0),X2(0),RCI2(0),X3(0),RCI3(0),X4(0),RCI4(0); Array : VALUE1[50](0),VALUE2[50](0),VALUE3[50](0),VALUE4[50](0),NTHVALUE[50](0); for cnt = 0 to 49{ VALUE1[cnt] = C[cnt]; VALUE2[cnt] = C[cnt]; VALUE3[cnt] = C[cnt]; VALUE4[cnt] = C[cnt]; } ############################################### For Nth = 0 to P1-1 { tempmax = -99999999; For cnt = 0 to P1-1{ if VALUE1[cnt] > tempmax then{ tempmax = VALUE1[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE1[tempIndex] = -99999999; } X1 = 0; for cnt = 0 to P1-1{ X1 = X1+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI1 = (1-(6*X1)/(P1*(P1^2-1)))*100; ############################################### For Nth = 0 to P2-1 { tempmax = -99999999; For cnt = 0 to P2-1{ if value2[cnt] > tempmax then{ tempmax = value2[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE2[tempIndex] = -99999999; } X2 = 0; for cnt = 0 to P2-1{ X2 = X2+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI2 = (1-(6*X2)/(P2*(P2^2-1)))*100; ############################################### For Nth = 0 to P3-1 { tempmax = -99999999; For cnt = 0 to P3-1{ if value3[cnt] > tempmax then{ tempmax = value3[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE3[tempIndex] = -99999999; } X3 = 0; for cnt = 0 to P3-1{ X3 = X3+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI3 = (1-(6*X3)/(P3*(P3^2-1)))*100; ############################################### For Nth = 0 to P4-1 { tempmax = -99999999; For cnt = 0 to P4-1{ if value4[cnt] > tempmax then{ tempmax = value4[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE4[tempIndex] = -99999999; } X4 = 0; for cnt = 0 to P4-1{ X4 = X4+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI4 = (1-(6*X4)/(P4*(P4^2-1)))*100; plot1(RCI1,"RCI1",iff(RCI1 > 80,red,iff(RCI1<-80,blue,BLACK))); plot2(RCI2); plot3(RCI3); plot4(RCI4); PlotBaseLine1(80); PlotBaseLine2(-80); 즐거운 하루되세요 > 해피슈 님이 쓴 글입니다. > 제목 : 문의드립니다 > 아래 3가지 전략과 지표좀 부탁드립니다 1. RCI(Rank Correlation Index) RCI 9선과 13선이 80이상이고 9선이 13선을 데드크로스 일때 매도 신호 RCI 9선과 13선이 -80이하이고 9선이 13선을 골든크로스 일때 매수 신호 이렇게 전략 부탁드립니다 2. RCI(Rank Correlation Index) RCI 9, 13, 18 선이 80이상이고 9선이 18선을 데드크로스 일때 매도 신호 RCI 9, 13, 18 선이 -80이하이고 9선이 13선을 골든크로스 일때 매수 신호 이렇게 전략 부탁드립니다 3. 1.2 합쳐서 전략 부탁드립니다 4. RSI 지표 30 70 수치 바꿀수 있게 외부 변수로해서 부탁드립니다 5. RCI 지표 에서 80선 -80선 가로선으로 추가 부탁드립니다 그리고 9선이 80선 위면 빨강색상 -80선 이하면 파란색상 나오게 하는 방법도 알려주세요 input : P1(9),P2(13),P3(18),P4(26); Var : cnt(0),Nth(0),tempmax(0), tempindex(0), X1(0),RCI1(0),X2(0),RCI2(0),X3(0),RCI3(0),X4(0),RCI4(0); Array : VALUE1[50](0),VALUE2[50](0),VALUE3[50](0),VALUE4[50](0),NTHVALUE[50](0); for cnt = 0 to 49{ VALUE1[cnt] = C[cnt]; VALUE2[cnt] = C[cnt]; VALUE3[cnt] = C[cnt]; VALUE4[cnt] = C[cnt]; } ############################################### For Nth = 0 to P1-1 { tempmax = -99999999; For cnt = 0 to P1-1{ if VALUE1[cnt] > tempmax then{ tempmax = VALUE1[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE1[tempIndex] = -99999999; } X1 = 0; for cnt = 0 to P1-1{ X1 = X1+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI1 = (1-(6*X1)/(P1*(P1^2-1)))*100; ############################################### For Nth = 0 to P2-1 { tempmax = -99999999; For cnt = 0 to P2-1{ if value2[cnt] > tempmax then{ tempmax = value2[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE2[tempIndex] = -99999999; } X2 = 0; for cnt = 0 to P2-1{ X2 = X2+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI2 = (1-(6*X2)/(P2*(P2^2-1)))*100; ############################################### For Nth = 0 to P3-1 { tempmax = -99999999; For cnt = 0 to P3-1{ if value3[cnt] > tempmax then{ tempmax = value3[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE3[tempIndex] = -99999999; } X3 = 0; for cnt = 0 to P3-1{ X3 = X3+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI3 = (1-(6*X3)/(P3*(P3^2-1)))*100; ############################################### For Nth = 0 to P4-1 { tempmax = -99999999; For cnt = 0 to P4-1{ if value4[cnt] > tempmax then{ tempmax = value4[cnt]; tempIndex = cnt; NTHVALUE[cnt] = Nth+1; } } VALUE4[tempIndex] = -99999999; } X4 = 0; for cnt = 0 to P4-1{ X4 = X4+ABS((cnt+1)-NTHVALUE[cnt])^2; } RCI4 = (1-(6*X4)/(P4*(P4^2-1)))*100; plot1(RCI1); plot2(RCI2); plot3(RCI3); plot4(RCI4);