커뮤니티

수식 부탁드립니다.

프로필 이미지
바바큰
2017-02-02 06:49:08
86
글번호 106452
답변완료
아래식에서 CrossUp하고 c < mav 의 매수조건에서 전봉의 저가 대비 B틱이상 하락되어 있으면 매수조건 제외 CrossDown하고 c > mav 의 매도조건에서 전봉의 고가 대비 B틱이상 상승되어 있으면 매도조건 제외 하고 싶습니다. 매번 감사합니다. if mav3 > mav3[1] and CrossUp(macdv,macds) Then{ T = 1; ii = index; } if mav3 < mav3[1] and CrossDown(macdv,macds) Then{ T = -1; ii = index; } if Tcond == true and Xcond == false then{ if MarketPosition == 0 and T == 1 and index <= ii+10 and c < mav Then buy("매수"); if MarketPosition == 0 and T == -1 and index <= ii+10 and c > mav Then sell("매도");
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-02-02 13:09:53

안녕하세요 예스스탁입니다. input : N(5); if mav3 > mav3[1] and CrossUp(macdv,macds) Then{ T = 1; ii = index; } if mav3 < mav3[1] and CrossDown(macdv,macds) Then{ T = -1; ii = index; } if Tcond == true and Xcond == false then{ if MarketPosition == 0 and T == 1 and index <= ii+10 and c < mav and C > L[1]-PriceScale*B Then buy("매수"); if MarketPosition == 0 and T == -1 and index <= ii+10 and c > mav and C < H[1]+PriceScale*B Then sell("매도"); } 즐거운 하루되세요 > 바바큰 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다. > 아래식에서 CrossUp하고 c < mav 의 매수조건에서 전봉의 저가 대비 B틱이상 하락되어 있으면 매수조건 제외 CrossDown하고 c > mav 의 매도조건에서 전봉의 고가 대비 B틱이상 상승되어 있으면 매도조건 제외 하고 싶습니다. 매번 감사합니다. if mav3 > mav3[1] and CrossUp(macdv,macds) Then{ T = 1; ii = index; } if mav3 < mav3[1] and CrossDown(macdv,macds) Then{ T = -1; ii = index; } if Tcond == true and Xcond == false then{ if MarketPosition == 0 and T == 1 and index <= ii+10 and c < mav Then buy("매수"); if MarketPosition == 0 and T == -1 and index <= ii+10 and c > mav Then sell("매도");