커뮤니티

재질문드립니다

프로필 이미지
alswoxod
2011-03-14 20:26:05
760
글번호 36553
답변완료
친절한 답변 정말 감사드립니다. 알려주신 밑의 식에서요 atlimit이 다음봉에서만 유효하도록 하지 않고 그날 장이 끝날때까지만 언제라도 유효하도록 하려면 이 식을 어떻게 만들면 될까요? 답변 미리 감사드립니다. var : cnt(0),C1(0),xx(0); c1 = 0 ; for cnt = 0 to 10 { if sdate == EntryDate(cnt) Then c1 = c1+1; } XX = 0; If c1 < 1 and dayindex > 0 and MarketPosition == 0 Then { If 조건1 and XX == 0 Then{ Buy("매수1",atlimit,c-1); XX = 1; } If 조건2 and XX == 0 Then{ Buy("매수2",atlimit,c-1); XX = 1; } If 조건3 and XX == 0 Then{ Sell("매도2",atlimit,c+1); XX = 1; } if 조건4 and XX == 0 then{ buy("매수3",atlimit,c-1); XX = 1; } if 조건5 and XX == 0 then{ sell("매도3",atlimit,c+1); XX = 1; } } SetStopEndofday(1445);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-03-15 09:42:45

안녕하세요 예스스탁입니다. 수정한 식입니다. var : cnt(0),C1(0),xx(0); if date != date[1] Then XX = 0; c1 = 0 ; for cnt = 0 to 10 { if sdate == EntryDate(cnt) Then c1 = c1+1; } If c1 < 1 and dayindex > 0 and MarketPosition == 0 Then { If 조건1 and XX == 0 Then{ XX = 1; var1 = C; } If 조건2 and XX == 0 Then{ XX = 2; var1 = C; } If 조건3 and XX == 0 Then{ XX = 3; var1 = C; } if 조건4 and XX == 0 then{ XX = 4; var1 = C; } if 조건5 and XX == 0 then{ XX = 5; var1 = C; } } if XX == 1 and stime < 144500 Then Buy("매수1",atlimit,var1-1); if XX == 1 Then Buy("매수2",atlimit,var1-1); if XX == 1 Then Sell("매도2",atlimit,var1+1); if XX == 1 Then buy("매수3",atlimit,var1-1); if XX == 1 Then sell("매도3",atlimit,var1+1); SetStopEndofday(1445); 즐거운 하루되세요 > alswoxod 님이 쓴 글입니다. > 제목 : 재질문드립니다 > 친절한 답변 정말 감사드립니다. 알려주신 밑의 식에서요 atlimit이 다음봉에서만 유효하도록 하지 않고 그날 장이 끝날때까지만 언제라도 유효하도록 하려면 이 식을 어떻게 만들면 될까요? 답변 미리 감사드립니다. var : cnt(0),C1(0),xx(0); c1 = 0 ; for cnt = 0 to 10 { if sdate == EntryDate(cnt) Then c1 = c1+1; } XX = 0; If c1 < 1 and dayindex > 0 and MarketPosition == 0 Then { If 조건1 and XX == 0 Then{ Buy("매수1",atlimit,c-1); XX = 1; } If 조건2 and XX == 0 Then{ Buy("매수2",atlimit,c-1); XX = 1; } If 조건3 and XX == 0 Then{ Sell("매도2",atlimit,c+1); XX = 1; } if 조건4 and XX == 0 then{ buy("매수3",atlimit,c-1); XX = 1; } if 조건5 and XX == 0 then{ sell("매도3",atlimit,c+1); XX = 1; } } SetStopEndofday(1445);