커뮤니티

시스템식 문의

프로필 이미지
회원
2005-03-18 14:13:48
952
글번호 6859
답변완료
Input : Period(20), D(2); var : 볼밴업(0), 볼밴다운(0); 볼밴업 = BollBandUp(Period,D); 볼밴다운 = BollBandDown(Period,D); if crossup(C, 볼밴다운) then buy(); if crossdown(C, 볼밴업) then sell(); day용으로 진입후 손실이 1.50 이상(당일 누적 손실이 아님)이면 청산하고 당일 재진입을 금지하는 식을 작성해 주시기 바랍니다. 수고하십시요.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2005-03-18 17:12:54

안녕하세요 예스스탁입니다. 문의하신 식은 다음과 같습니다. Input : Period(20), D(2); var : 볼밴업(0), 볼밴다운(0),cnt(0); 볼밴업 = BollBandUp(Period,D); 볼밴다운 = BollBandDown(Period,D); if date != date[1] then{ cnt = 0; } if cnt < 1 and crossup(C, 볼밴다운) then buy("매수"); if cnt < 1 and crossdown(C, 볼밴업) then sell("매도"); if crossdown(C, 볼밴업) then exitlong("매수청산"); if crossdown(C, entryprice()-1.5) then{ exitlong("매수손절"); cnt = cnt + 1; } if crossup(C, 볼밴다운) then exitshort("매도청산"); if crossup(C, entryprice()+1.5) then{ exitshort("매도손절"); cnt = cnt +1; } 즐거운 하루되세요 > guest 님이 쓴 글입니다. > 제목 : 시스템식 문의 > Input : Period(20), D(2); var : 볼밴업(0), 볼밴다운(0); 볼밴업 = BollBandUp(Period,D); 볼밴다운 = BollBandDown(Period,D); if crossup(C, 볼밴다운) then buy(); if crossdown(C, 볼밴업) then sell(); day용으로 진입후 손실이 1.50 이상(당일 누적 손실이 아님)이면 청산하고 당일 재진입을 금지하는 식을 작성해 주시기 바랍니다. 수고하십시요.