커뮤니티

시스템 수식전환 부탁

프로필 이미지
이대표
2020-04-16 12:46:45
765
글번호 137971
답변완료
input:P1(10),P2(30); var1=ma(C,P1); var2=ema(C,P1); var3=ema(ema(ema(C,P2),P2),P2); Condition1=CrossUP(var1,var3) or CrossUp(var2,var3); Condition2=CrossDown(var1,var3) or CrossDown(var2,var3); if Condition1 ==true Then value1=c; if value1>0 and C>value1 Then value1=c; if Condition2==true Then value2=c; if value2>0 and C<value2 Then value2=c; if value1>0 and value2>0 Then value3=(value1+value2)/2; plot1(value1); plot2(value2); plot3(value3); <1>위 지표에서 PLOT3이 나타날 때(수평선이 그어질 때) 캔들이 PLOT3보다 위에있으면서 동시에 PLOT1에 캔들의 위꼬리나 캔들몸통(음봉)이 닿을 때 매도, <2>PLOT3이 나타날 때(수평선이 그어질 때) 캔들이 PLOT3보다 아래에 있으면서 동시에 PLOT2에 캔들의 아래꼬리나 캔들몸통(양봉)이 닿을때 매수. <3>일목균형표에서 전환선이 위 PLOT3처럼 나타날 때(수평선이 그어질 때) 캔들이 전환선보다 위에 있으면서 동시에 위 지표상 PLOT1에 캔들의 위꼬리나 캔들몸통(음봉)이 닿을 때 매도, <4>일목균형표에서 전환선이 위 PLOT3처럼 나타날 때(수평선이 그어질 때) 캔들이 전환선보다 아래에 있으면서 동시에 위 지표상 PLOT1에 캔들의 아래꼬리나 캔들몸통(양봉)이 닿을 때 매수시스템 수식전환 부탁드립니다.
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2020-04-16 16:51:34

안녕하세요 예스스탁입니다. input:P1(10),P2(30); var1=ma(C,P1); var2=ema(C,P1); var3=ema(ema(ema(C,P2),P2),P2); Condition1=CrossUP(var1,var3) or CrossUp(var2,var3); Condition2=CrossDown(var1,var3) or CrossDown(var2,var3); if Condition1 ==true Then value1=c; if value1>0 and C>value1 Then value1=c; if Condition2==true Then value2=c; if value2>0 and C<value2 Then value2=c; if value1>0 and value2>0 Then value3=(value1+value2)/2; if c > value3 and value3 == value3[1] then { if h >= value1 and value1 > max(c,O) Then sell(); if C < O and O >= value1 and value1 >= C Then sell(); } if c < value3 and value3 == value3[1] then { if L <= value2 and value2 < min(c,O) Then buy(); if C > O and O <= value2 and value2 <= C Then buy(); } var : 전환선(0); 전환선 = (highest(H,9)+lowest(L,9))/2; if c > 전환선 and 전환선 == 전환선[1] then { if h >= value1 and value1 > max(c,O) Then sell(); if C < O and O >= value1 and value1 >= C Then sell(); } if c < 전환선 and 전환선 == 전환선[1] then { if L <= value2 and value2 < min(c,O) Then buy(); if C > O and O <= value2 and value2 <= C Then buy(); } 즐거운 하루되세요 > 이대표 님이 쓴 글입니다. > 제목 : 시스템 수식전환 부탁 > input:P1(10),P2(30); var1=ma(C,P1); var2=ema(C,P1); var3=ema(ema(ema(C,P2),P2),P2); Condition1=CrossUP(var1,var3) or CrossUp(var2,var3); Condition2=CrossDown(var1,var3) or CrossDown(var2,var3); if Condition1 ==true Then value1=c; if value1>0 and C>value1 Then value1=c; if Condition2==true Then value2=c; if value2>0 and C<value2 Then value2=c; if value1>0 and value2>0 Then value3=(value1+value2)/2; plot1(value1); plot2(value2); plot3(value3); <1>위 지표에서 PLOT3이 나타날 때(수평선이 그어질 때) 캔들이 PLOT3보다 위에있으면서 동시에 PLOT1에 캔들의 위꼬리나 캔들몸통(음봉)이 닿을 때 매도, <2>PLOT3이 나타날 때(수평선이 그어질 때) 캔들이 PLOT3보다 아래에 있으면서 동시에 PLOT2에 캔들의 아래꼬리나 캔들몸통(양봉)이 닿을때 매수. <3>일목균형표에서 전환선이 위 PLOT3처럼 나타날 때(수평선이 그어질 때) 캔들이 전환선보다 위에 있으면서 동시에 위 지표상 PLOT1에 캔들의 위꼬리나 캔들몸통(음봉)이 닿을 때 매도, <4>일목균형표에서 전환선이 위 PLOT3처럼 나타날 때(수평선이 그어질 때) 캔들이 전환선보다 아래에 있으면서 동시에 위 지표상 PLOT1에 캔들의 아래꼬리나 캔들몸통(양봉)이 닿을 때 매수시스템 수식전환 부탁드립니다.
프로필 이미지

이대표

2020-04-16 17:42:47

<2>번 전환선 시스템을 구현하면 아무런 실행이 안됩니다. 그 이유가 무엇인지요?
프로필 이미지

예스스탁 예스스탁 답변

2020-04-17 10:32:07

안녕하세요 예스스탁입니다. 아래 식과 같이 신호에 이름부여하고 거래내역에서 확인하시면 해당 전환선관련 신호도 발생하고 있습니다. input:P1(10),P2(30); var1=ma(C,P1); var2=ema(C,P1); var3=ema(ema(ema(C,P2),P2),P2); Condition1=CrossUP(var1,var3) or CrossUp(var2,var3); Condition2=CrossDown(var1,var3) or CrossDown(var2,var3); if Condition1 ==true Then value1=c; if value1>0 and C>value1 Then value1=c; if Condition2==true Then value2=c; if value2>0 and C<value2 Then value2=c; if value1>0 and value2>0 Then value3=(value1+value2)/2; if c > value3 and value3 == value3[1] then { if h >= value1 and value1 > max(c,O) Then sell("s1"); if C < O and O >= value1 and value1 >= C Then sell("s2"); } if c < value3 and value3 == value3[1] then { if L <= value2 and value2 < min(c,O) Then buy("b1"); if C > O and O <= value2 and value2 <= C Then buy("b2"); } var : 전환선(0); 전환선 = (highest(H,9)+lowest(L,9))/2; if c > 전환선 and 전환선 == 전환선[1] then { if h >= value1 and value1 > max(c,O) Then sell("s3"); if C < O and O >= value1 and value1 >= C Then sell("s4"); } if c < 전환선 and 전환선 == 전환선[1] then { if L <= value2 and value2 < min(c,O) Then buy("b3"); if C > O and O <= value2 and value2 <= C Then buy("b4"); } 즐거운 하루되세요 > 이대표 님이 쓴 글입니다. > 제목 : 전환선 시스템 구현이 안되는 이유가 무엇인지요? > <2>번 전환선 시스템을 구현하면 아무런 실행이 안됩니다. 그 이유가 무엇인지요?