커뮤니티

부탁 드립니다.

프로필 이미지
yes
2016-08-08 00:26:14
132
글번호 100784
답변완료
질문1) data1에서 var1>var1[1] and var2>var2[1] 일때와 data2에서 var3>var3[1] and var4>var[1]면 매수 신호 그 반대면 매도 시스템 부탁 드립니다. 질문2) 예를 들어 매수 청산식을 매수식과 같이 condition2와 Condition2[1]을 사용하여 표현할수 있는지요? if Condition1 == true and Condition1[1] == false Then buy(); if MarketPosition == 1 and var1 <var1[1] and var2 <var2[1] Then exitlong(); 질문3) 다음수식이 아시아시작 시간에 condition1,2 가 작동 유럽시작 시간이 되면 condition1,2 가 멈추고 condition3,4가 작동 미국시작 시간이 되면 condition3,4 가 멈추고 condition5,6가 작동 되는 시스템식 부탁 드립니다. 항상 감사와 경배로 인사 드립니다. 수식) var : T1(0),T2(0),T3(0),T4(0); value1=ma(c,20); var1=ma(Value1,1); var2=ma(Value1,2); var3=ma(Value1,3); var4=ma(Value1,4); if var1>var1[1] then T1 = 1; else T1 = -1; if var2>var2[1] then T2 = 1; Else T2 = -1; if var3>var3[1] then T3 = 1; else T3 = -1; if var4>var4[1] then T4 = 1; else T4 = -1; Condition1 = T1 == 1 and T2 == 1 ; Condition2 = T1 == -1 and T2 == -1 ; Condition3 = T1 == 1 and T2 == 1 and T3 == 1 ; Condition4 = T1 == -1 and T2 == -1 and T3 == -1 ; Condition5 = T1 == 1 and T2 == 1 and T3 == 1 and T4 == 1 ; Condition6 = T1 == -1 and T2 == -1 and T3 == -1 and T4 == -1 ; if Condition1 == true and Condition1[1] == false Then buy(); if Condition2 == true and Condition2[1] == false Then sell(); 참고수식) var:아시아시작(0),유럽시작(0),미국시작(0); 아시아시작=070000; 유럽시작=143000; 미국시작=220000; if stime == 아시아시작 or (stime > 아시아시작 and stime[1] < 아시아시작) Then if stime == 유럽시작 or (stime > 유럽시작 and stime[1] < 유럽시작) Then if stime == 미국시작 or (stime > 미국시작 and stime[1] <미국시작) Then
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-08-08 09:21:13

안녕하세요 예스스탁입니다. 1 var : T1(0),T2(0),T3(0),T4(0); var : Bcond(false,data1),Scond(false,data1); var : val1(0,data2),V11(0,data2),V12(0,data2),V13(0,data2),V14(0,data2); var : T11(0,data2),T12(0,data2),T13(0,data2),T14(0,data2); var : val2(0,data2),V21(0,data2),V22(0,data2),V23(0,data2),V24(0,data2); var : T21(0,data2),T22(0,data2),T23(0,data2),T24(0,data2); val1= data1(ma(c,20)); v11 = data1(ma(Val2,1)); v12 = data1(ma(Val2,2)); v13 = data1(ma(Val2,3)); v14 = data1(ma(Val2,4)); if v11 > v11[1] then T11 = 1; else T11 = -1; if v12 > v12[1] then T12 = 1; Else T12 = -1; if v13 > v13[1] then T13 = 1; else T13 = -1; if v14 > v14[1] then T14 = 1; else T14 = -1; val2= data2(ma(c,20)); v21 = data2(ma(Val2,1)); v22 = data2(ma(Val2,2)); v23 = data2(ma(Val2,3)); v24 = data2(ma(Val2,4)); if v21 > v21[1] then T21 = 1; else T21 = -1; if v22 > v22[1] then T22 = 1; Else T22 = -1; if v23 > v23[1] then T23 = 1; else T23 = -1; if v24 > v24[1] then T24 = 1; else T24 = -1; Bcond = T11 == 1 and T12 == 1 and T23 == 1 and T24 == 1 ; Scond = T11 == -1 and T12 == -1 and T23 == -1 and T24 == -1 ; if Bcond == true and Bcond[1] == false Then buy(); if Scond == true and Scond[1] == false Then sell(); 2 Condition2 = var1 <var1[1] and var2 <var2[1]; if MarketPosition == 1 and Condition2 == true and Condition2[1] == false Then exitlong(); 3. var : T1(0),T2(0),T3(0),T4(0); value1=ma(c,20); var1=ma(Value1,1); var2=ma(Value1,2); var3=ma(Value1,3); var4=ma(Value1,4); if var1>var1[1] then T1 = 1; else T1 = -1; if var2>var2[1] then T2 = 1; Else T2 = -1; if var3>var3[1] then T3 = 1; else T3 = -1; if var4>var4[1] then T4 = 1; else T4 = -1; Condition1 = T1 == 1 and T2 == 1 ; Condition2 = T1 == -1 and T2 == -1 ; Condition3 = T1 == 1 and T2 == 1 and T3 == 1 ; Condition4 = T1 == -1 and T2 == -1 and T3 == -1 ; Condition5 = T1 == 1 and T2 == 1 and T3 == 1 and T4 == 1 ; Condition6 = T1 == -1 and T2 == -1 and T3 == -1 and T4 == -1 ; var:아시아시작(0),유럽시작(0),미국시작(0); 아시아시작=070000; 유럽시작=143000; 미국시작=220000; if stime == 아시아시작 or (stime > 아시아시작 and stime[1] < 아시아시작) Then{ if Condition1 == true and Condition1[1] == false Then buy(); if Condition2 == true and Condition2[1] == false Then sell(); } if stime == 유럽시작 or (stime > 유럽시작 and stime[1] < 유럽시작) Then{ if Condition3 == true and Condition3[1] == false Then buy(); if Condition4 == true and Condition4[1] == false Then sell(); } if stime == 미국시작 or (stime > 미국시작 and stime[1] <미국시작) Then{ if Condition5 == true and Condition5[1] == false Then buy(); if Condition6 == true and Condition6[1] == false Then sell(); } 즐거운 하루되세요 > yes 님이 쓴 글입니다. > 제목 : 부탁 드립니다. > 질문1) data1에서 var1>var1[1] and var2>var2[1] 일때와 data2에서 var3>var3[1] and var4>var[1]면 매수 신호 그 반대면 매도 시스템 부탁 드립니다. 질문2) 예를 들어 매수 청산식을 매수식과 같이 condition2와 Condition2[1]을 사용하여 표현할수 있는지요? if Condition1 == true and Condition1[1] == false Then buy(); if MarketPosition == 1 and var1 <var1[1] and var2 <var2[1] Then exitlong(); 질문3) 다음수식이 아시아시작 시간에 condition1,2 가 작동 유럽시작 시간이 되면 condition1,2 가 멈추고 condition3,4가 작동 미국시작 시간이 되면 condition3,4 가 멈추고 condition5,6가 작동 되는 시스템식 부탁 드립니다. 항상 감사와 경배로 인사 드립니다. 수식) var : T1(0),T2(0),T3(0),T4(0); value1=ma(c,20); var1=ma(Value1,1); var2=ma(Value1,2); var3=ma(Value1,3); var4=ma(Value1,4); if var1>var1[1] then T1 = 1; else T1 = -1; if var2>var2[1] then T2 = 1; Else T2 = -1; if var3>var3[1] then T3 = 1; else T3 = -1; if var4>var4[1] then T4 = 1; else T4 = -1; Condition1 = T1 == 1 and T2 == 1 ; Condition2 = T1 == -1 and T2 == -1 ; Condition3 = T1 == 1 and T2 == 1 and T3 == 1 ; Condition4 = T1 == -1 and T2 == -1 and T3 == -1 ; Condition5 = T1 == 1 and T2 == 1 and T3 == 1 and T4 == 1 ; Condition6 = T1 == -1 and T2 == -1 and T3 == -1 and T4 == -1 ; if Condition1 == true and Condition1[1] == false Then buy(); if Condition2 == true and Condition2[1] == false Then sell(); 참고수식) var:아시아시작(0),유럽시작(0),미국시작(0); 아시아시작=070000; 유럽시작=143000; 미국시작=220000; if stime == 아시아시작 or (stime > 아시아시작 and stime[1] < 아시아시작) Then if stime == 유럽시작 or (stime > 유럽시작 and stime[1] < 유럽시작) Then if stime == 미국시작 or (stime > 미국시작 and stime[1] <미국시작) Then