커뮤니티

간단한식

프로필 이미지
종결자
2010-12-22 14:18:24
604
글번호 34505
답변완료
아래식을 적용해봤는데 조건이 만족했음에도 불구하고 exitlong 청산이 안됩니다 ( 당일시가 터치시 ( atstop 형태로 ) 청산되길 원함 ) 다시한번 살펴봐 주세요. 감사합니다 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 간단한 식 > 안녕하세요 예스스탁입니다. input : N(1.5); var : cnt(0),count(0); if dayindex == 0 Then Condition1 = false; if (DayHigh-DayLow) >= N and Condition1 == False Then{ Condition1 = true; } count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if Condition1 == true and count < 1 Then{ if L > dayhigh-(dayhigh-daylow)*0.3 Then sell("s",AtStop,dayhigh-(dayhigh-daylow)*0.3); if H < daylow+(dayhigh-daylow)*0.3 Then buy("b",AtStop,daylow+(dayhigh-daylow)*0.3); } if MarketPosition != 1 Then{ if crossup(c,dayopen) or CrossDown(c,dayopen) Then{ exitlong(); ExitShort(); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2010-12-22 14:33:31

안녕하세요 예스스탁입니다. 죄송합니다. 수식에 오타가 있었습니다. 아래는 수정한 식입니다. input : N(1.5); var : cnt(0),count(0); if dayindex == 0 Then Condition1 = false; if (DayHigh-DayLow) >= N and Condition1 == False Then{ Condition1 = true; } count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if Condition1 == true and count < 1 Then{ if L > dayhigh-(dayhigh-daylow)*0.3 Then sell("s",AtStop,dayhigh-(dayhigh-daylow)*0.3); if H < daylow+(dayhigh-daylow)*0.3 Then buy("b",AtStop,daylow+(dayhigh-daylow)*0.3); } if MarketPosition != 0 Then{ if crossup(c,dayopen) or CrossDown(c,dayopen) Then{ exitlong(); ExitShort(); } } 즐거운 하루되세요 > 종결자 님이 쓴 글입니다. > 제목 : 간단한식 > 아래식을 적용해봤는데 조건이 만족했음에도 불구하고 exitlong 청산이 안됩니다 ( 당일시가 터치시 ( atstop 형태로 ) 청산되길 원함 ) 다시한번 살펴봐 주세요. 감사합니다 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 간단한 식 > 안녕하세요 예스스탁입니다. input : N(1.5); var : cnt(0),count(0); if dayindex == 0 Then Condition1 = false; if (DayHigh-DayLow) >= N and Condition1 == False Then{ Condition1 = true; } count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if Condition1 == true and count < 1 Then{ if L > dayhigh-(dayhigh-daylow)*0.3 Then sell("s",AtStop,dayhigh-(dayhigh-daylow)*0.3); if H < daylow+(dayhigh-daylow)*0.3 Then buy("b",AtStop,daylow+(dayhigh-daylow)*0.3); } if MarketPosition != 1 Then{ if crossup(c,dayopen) or CrossDown(c,dayopen) Then{ exitlong(); ExitShort(); } }