커뮤니티
부탁드립니다
2014-07-24 02:09:29
145
글번호 77043
늘 감사합니다.
1. = 과 == 중 어느 것이 맞는지요.
If A조건 and B조건 then
condition1=true;
condition1==true; 둘중 어느 것이 맞는지요.
2. 매수포지션을 가지고 있고 그 매수포지션의 진입명이 b1인 경우
condition2 = Marketposition==1 and IsEntryname("b1")==true;
condition2 = Marketposition==1 and IsEntryname("b1",1)==true;
condition2 = Marketposition==1 and IsEntryname("b1")=true;
condition2 = Marketposition==1 and IsEntryname("b1",1)=true;
위의 네 가지중 어느 것이 맞는지요.
답변 1
예스스탁 예스스탁 답변
2014-07-24 16:02:31
안녕하세요
예스스탁입니다.
1.
값을 저장하실 때는 =
비교해서 같다라는 것을 표현하실때는 ==입니다.
If A조건 and B조건 then
condition1=true; //true을 저장
}
if C == O then//종가와 시가가 같을때
var1 = C; //var1에 종가 저장
2
condition2 = Marketposition==1 and IsEntryname("b1")==true;
위 내용이 맞습니다.
IsEntryname("b1",1)은 현재 포지션의 진입명이 아니고
직전거래의 진입명입니다.
즐거운 하루되세요
> 묘선낭자 님이 쓴 글입니다.
> 제목 : 부탁드립니다
> 늘 감사합니다.
1. = 과 == 중 어느 것이 맞는지요.
If A조건 and B조건 then
condition1=true;
condition1==true; 둘중 어느 것이 맞는지요.
2. 매수포지션을 가지고 있고 그 매수포지션의 진입명이 b1인 경우
condition2 = Marketposition==1 and IsEntryname("b1")==true;
condition2 = Marketposition==1 and IsEntryname("b1",1)==true;
condition2 = Marketposition==1 and IsEntryname("b1")=true;
condition2 = Marketposition==1 and IsEntryname("b1",1)=true;
위의 네 가지중 어느 것이 맞는지요.