커뮤니티

수고하십니다

프로필 이미지
수원
2019-08-18 17:02:43
242
글번호 131233
답변완료
매매시간 오전10시15분부터 오후17시 매수조건 Williams'R 지표(14)가 -20 이면 매수 매도조건 Williams'R 지표(14)가 -80 이면 매도 지표수치를 input 으로 부탁합니다 매매횟수 3회로제한 당일 목표수익70틱이면 강제청산 당일 손실70틱이면 강제청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-08-19 17:14:42

안녕하세요 예스스탁입니다. input : starttime(101500),endtime(170000); input : 진입횟수(3),익절틱수(70),손절틱수(70); Input : Period(14); var : Tcond(false),entry(0); var : WR(0); WR = WILLR(Period); if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; entry = 0; } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then { Tcond = false; if MarketPosition == 1 Then ExitLong("bx"); if MarketPosition == -1 Then ExitShort("sx"); } if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if entry < 진입횟수 then { if CrossDown(WR,-20) Then buy(); if CrossUp(WR,-80) Then sell(); } SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); 즐거운 하루되세요 > 수원 님이 쓴 글입니다. > 제목 : 수고하십니다 > 매매시간 오전10시15분부터 오후17시 매수조건 Williams'R 지표(14)가 -20 이면 매수 매도조건 Williams'R 지표(14)가 -80 이면 매도 지표수치를 input 으로 부탁합니다 매매횟수 3회로제한 당일 목표수익70틱이면 강제청산 당일 손실70틱이면 강제청산