커뮤니티
질문 있습니다
2011-05-12 15:23:06
606
글번호 38536
만일 조건식을 만들때
if c>entryprice*1.05 and
marketposition==1 then
cond1=1;
위 조건식과
if crossup(c, entryprice*1.05) and
marketposition==1 then
cond1=1;
과는 어떤 차이가 있나요?
시뮬레이션하다 보니 결과에 차이가 나네요
설명 부탁드리겠습니다
답변 1
예스스탁 예스스탁 답변
2011-05-12 17:35:24
안녕하세요
예스스탁입니다.
해당 내용 다른 부분이 없습니다.
아래식으로 테스트를 해서 로그를 찍어 보았지만 다른 부분을 찾지 못했습니다.
수식상 다른부분에 영향을 받는것 같습니다.
해당 수식전체를 올려주시면 테스트를 하여
더 명확한 답변을 드릴수 있을것 같습니다
var : cond1(0),cond2(0);
if dayindex == 0 Then{
if C > O then
buy();
if C < O Then
sell();
}
if c>entryprice*1.05 and
marketposition==1 then
cond1=1;
if crossup(c, entryprice*1.05) and
marketposition==1 then
cond2=1;
if MarketPosition == 0 Then{
cond1 = 0;
cond2 = 0;
}
MessageLog("%.f %.f",cond1,cond2);
즐거운 하루되세요
> 공부중 님이 쓴 글입니다.
> 제목 : 질문 있습니다
> 만일 조건식을 만들때
if c>entryprice*1.05 and
marketposition==1 then
cond1=1;
위 조건식과
if crossup(c, entryprice*1.05) and
marketposition==1 then
cond1=1;
과는 어떤 차이가 있나요?
시뮬레이션하다 보니 결과에 차이가 나네요
설명 부탁드리겠습니다
이전글