커뮤니티

추세파악 간단한 매매

프로필 이미지
이대규
2016-05-30 11:46:33
181
글번호 98592
답변완료
잘부탁드립니다. 간단한 시스템인데요 당일 고,저를 기준으로 현재봉 포함 과거 3개봉이 50% 피보나치값 아래에 있으면 매도추세, 위에 있으면 매수추세 매도 추세면서 현 보유포지션이 없을 경우 mid1에서 매도 매수 추세면서 현 보유포지션이 없을 경우 mid1에서 매수 익절청산 pricescale*20 손절청산 pricescale*10 추세를 판단하는 수식을 작성하는게 어렵습니다 ㅠㅠ 도와주세요 vars : top(100), mid1(50), bottom(0); vars : isStarted(False), isLong(False), profitGoal(10), stopLoss(10); top = DayHigh; bottom = DayLow; mid1 = ( top + bottom ) / 2; if !isStarted then { if H < mid1 then { isLong = False; isStarted = true; } if L > mid1 then { isLong = True; isStarted = true; } } else { if isLong then if L <= mid1 then buy(); else if H >= mid1 then sell(); } SetStopProfittarget(1, PointStop); SetStopLoss(1, PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-05-30 17:09:44

안녕하세요 예스스탁입니다. vars : top(100), mid1(50), bottom(0); vars : isStarted(False), isLong(False), profitGoal(10), stopLoss(10); top = DayHigh; bottom = DayLow; mid1 = ( top + bottom ) / 2; if !isStarted then { if H < mid1 then { isLong = False; isStarted = true; } if L > mid1 then { isLong = True; isStarted = true; } } else { if isLong then if L <= mid1 and countif(L > mid1,3)[1] == 3 then buy(); else if H >= mid1 and countif(H < mid1,3)[1] == 3 then sell(); } SetStopProfittarget(1, PointStop); SetStopLoss(1, PointStop); 즐거운 하루되세요 > 이대규 님이 쓴 글입니다. > 제목 : 추세파악 간단한 매매 > 잘부탁드립니다. 간단한 시스템인데요 당일 고,저를 기준으로 현재봉 포함 과거 3개봉이 50% 피보나치값 아래에 있으면 매도추세, 위에 있으면 매수추세 매도 추세면서 현 보유포지션이 없을 경우 mid1에서 매도 매수 추세면서 현 보유포지션이 없을 경우 mid1에서 매수 익절청산 pricescale*20 손절청산 pricescale*10 추세를 판단하는 수식을 작성하는게 어렵습니다 ㅠㅠ 도와주세요 vars : top(100), mid1(50), bottom(0); vars : isStarted(False), isLong(False), profitGoal(10), stopLoss(10); top = DayHigh; bottom = DayLow; mid1 = ( top + bottom ) / 2; if !isStarted then { if H < mid1 then { isLong = False; isStarted = true; } if L > mid1 then { isLong = True; isStarted = true; } } else { if isLong then if L <= mid1 then buy(); else if H >= mid1 then sell(); } SetStopProfittarget(1, PointStop); SetStopLoss(1, PointStop);