커뮤니티
수식확인
2013-01-23 10:44:05
283
글번호 58538
아래수식이 수식표현에 문제가없는지 확인부탁드립니다.(제가 Condition 조건을 사용한경험이없어 요청드립니다.)
Condition1 = sTime==090000 and Data2(O)> Data2(C[1]) and Value1>Value2;
Condition2 = sTime==090000 and Data3(O)> Data3(C[1]) and Value2>Value1;
Condition3 = Value1<80 and Value3<140 and Value4<75;
Condition4 = Value2<80 and Value4<140 and Value3<75;
Condition5 = Condition1== false and Condition2== false;
#진입식
If MarketPosition==0 Then{
If Condition1== True then Sell("s");
If Condition2== True then Buy("b");
If ((Value3<Value4 and Value10<85) or Value10<70) Then {
If Condition1== True then Var1 = Index;
If CountIF( Condition3== True,Index-Var2)>1 and CrossUp(Parity2,125)
Then Sell("s1"); }
}
답변 1
예스스탁 예스스탁 답변
2013-01-23 13:48:33
안녕하세요
예스스탁입니다.
condition1~condition99는 논리형변수로
condition1 = 조건;
과 같이 작성하시면 조건이 만족하면 true가 저장되고
조건에 만족하지 않으면 false가 저정됩니다.
식 작성상에 특별한 문제는 없습니다
즐거운 하루되세요
> tao 님이 쓴 글입니다.
> 제목 : 수식확인
> 아래수식이 수식표현에 문제가없는지 확인부탁드립니다.(제가 Condition 조건을 사용한경험이없어 요청드립니다.)
Condition1 = sTime==090000 and Data2(O)> Data2(C[1]) and Value1>Value2;
Condition2 = sTime==090000 and Data3(O)> Data3(C[1]) and Value2>Value1;
Condition3 = Value1<80 and Value3<140 and Value4<75;
Condition4 = Value2<80 and Value4<140 and Value3<75;
Condition5 = Condition1== false and Condition2== false;
#진입식
If MarketPosition==0 Then{
If Condition1== True then Sell("s");
If Condition2== True then Buy("b");
If ((Value3<Value4 and Value10<85) or Value10<70) Then {
If Condition1== True then Var1 = Index;
If CountIF( Condition3== True,Index-Var2)>1 and CrossUp(Parity2,125)
Then Sell("s1"); }
}
다음글
이전글