커뮤니티

수식이 맞나요 ?

프로필 이미지
노블레스
2011-10-09 15:23:23
554
글번호 43485
답변완료
if date != date[1] Then{ Condition1 = false; Condition2 = Condition1[1]; if CrossDown(c,ma(c,20)) Then Condition1 = true; } if date != date[1] Then{ Condition3 = false; Condition4 = Condition1[1]; if CrossDown(c,ma(c,60)) Then Condition3 = true; } if MarketPosition == 0 and count == 0 Then{ if Condition2 == true and crossup(c,ma(C,60)) Then sell("A"); if Condition4 == true and crossup(c,ma(C,120)) Then sell("B"); } if MarketPosition != 0 and count > 0 Then{ if isentryname("A")and BarsSinceEntry>=9 and crossdown(c, 235) then ExitShort("*"); } SetStopEndofday(150000); 이렇게 작성 했는데 결과가 좀 틀립니다. "A"부분은 전일에 20일 이동평균선을 하향돌파하고 당일에 60일 이동평균선을 하향돌파할때 매도 "B"부분은 전일에 60일 이동평균선을 하향돌파하고 당일에 120일 이동평균선을 하향돌파할때 매도
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2011-10-10 14:32:51

안녕하세요 예스스탁입니다. if date != date[1] Then{ Condition1 = false; Condition2 = Condition1[1]; if CrossDown(c,ma(c,20)) Then Condition1 = true; } if date != date[1] Then{ Condition3 = false; Condition4 = Condition1[1]; if CrossDown(c,ma(c,60)) Then Condition3 = true; } if MarketPosition == 0 and count == 0 Then{ if Condition2 == true and CrossDown(c,ma(C,60)) Then sell("A"); if Condition4 == true and CrossDown(c,ma(C,120)) Then sell("B"); } if MarketPosition != 0 and count > 0 Then{ if isentryname("A")and BarsSinceEntry>=9 and crossdown(c, 235) then ExitShort("*"); } SetStopEndofday(150000); 기존에 당일 60이평 상향돌파, 120이평 상향돌파로 되어 있었습니다. 모두 crossdown으로 수정했습니다. 즐거운 하루되세요 > 노블레스 님이 쓴 글입니다. > 제목 : 수식이 맞나요 ? > if date != date[1] Then{ Condition1 = false; Condition2 = Condition1[1]; if CrossDown(c,ma(c,20)) Then Condition1 = true; } if date != date[1] Then{ Condition3 = false; Condition4 = Condition1[1]; if CrossDown(c,ma(c,60)) Then Condition3 = true; } if MarketPosition == 0 and count == 0 Then{ if Condition2 == true and crossup(c,ma(C,60)) Then sell("A"); if Condition4 == true and crossup(c,ma(C,120)) Then sell("B"); } if MarketPosition != 0 and count > 0 Then{ if isentryname("A")and BarsSinceEntry>=9 and crossdown(c, 235) then ExitShort("*"); } SetStopEndofday(150000); 이렇게 작성 했는데 결과가 좀 틀립니다. "A"부분은 전일에 20일 이동평균선을 하향돌파하고 당일에 60일 이동평균선을 하향돌파할때 매도 "B"부분은 전일에 60일 이동평균선을 하향돌파하고 당일에 120일 이동평균선을 하향돌파할때 매도
프로필 이미지

예스스탁 예스스탁 답변

2011-10-20 15:22:08

if date != date[1] Then{ Condition1 = false; Condition2 = Condition1[1]; } if CrossDown(c,ma(c,20)) Then Condition1 = true; if date != date[1] Then{ Condition3 = false; Condition4 = Condition1[1]; } if CrossDown(c,ma(c,60)) Then Condition3 = true; if MarketPosition == 0 and count == 0 Then{ if Condition2 == true and CrossDown(c,ma(C,60)) Then sell("A"); if Condition4 == true and CrossDown(c,ma(C,120)) Then sell("B"); } if MarketPosition != 0 and count > 0 Then{ if isentryname("A")and BarsSinceEntry>=9 and crossdown(c, 235) then ExitShort("*"); } SetStopEndofday(150000); 즐거운 하루되세요 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식이 맞나요 ? > 안녕하세요 예스스탁입니다. if date != date[1] Then{ Condition1 = false; Condition2 = Condition1[1]; if CrossDown(c,ma(c,20)) Then Condition1 = true; } if date != date[1] Then{ Condition3 = false; Condition4 = Condition1[1]; if CrossDown(c,ma(c,60)) Then Condition3 = true; } if MarketPosition == 0 and count == 0 Then{ if Condition2 == true and CrossDown(c,ma(C,60)) Then sell("A"); if Condition4 == true and CrossDown(c,ma(C,120)) Then sell("B"); } if MarketPosition != 0 and count > 0 Then{ if isentryname("A")and BarsSinceEntry>=9 and crossdown(c, 235) then ExitShort("*"); } SetStopEndofday(150000); 기존에 당일 60이평 상향돌파, 120이평 상향돌파로 되어 있었습니다. 모두 crossdown으로 수정했습니다. 즐거운 하루되세요 > 노블레스 님이 쓴 글입니다. > 제목 : 수식이 맞나요 ? > if date != date[1] Then{ Condition1 = false; Condition2 = Condition1[1]; if CrossDown(c,ma(c,20)) Then Condition1 = true; } if date != date[1] Then{ Condition3 = false; Condition4 = Condition1[1]; if CrossDown(c,ma(c,60)) Then Condition3 = true; } if MarketPosition == 0 and count == 0 Then{ if Condition2 == true and crossup(c,ma(C,60)) Then sell("A"); if Condition4 == true and crossup(c,ma(C,120)) Then sell("B"); } if MarketPosition != 0 and count > 0 Then{ if isentryname("A")and BarsSinceEntry>=9 and crossdown(c, 235) then ExitShort("*"); } SetStopEndofday(150000); 이렇게 작성 했는데 결과가 좀 틀립니다. "A"부분은 전일에 20일 이동평균선을 하향돌파하고 당일에 60일 이동평균선을 하향돌파할때 매도 "B"부분은 전일에 60일 이동평균선을 하향돌파하고 당일에 120일 이동평균선을 하향돌파할때 매도