커뮤니티

같은조건 인데 SetStopProfittarget와 진입을 다르게 ...

프로필 이미지
saidas
2014-03-17 14:10:21
129
글번호 73542
답변완료
같은 조건 으로 - 조건만족시 (첫번째 진입) 익절 0.5 p 청산후 다시 첫번째 진입가격 도달시 두번째 진입 - 두번째 진입은 익절 1p 청산 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 조건만족시 (세번째 진입) 익절 0.5 p 청산후 다시 세번째 진입가격 도달시 네번째 진입 - 네번째 진입은 익절 1p 청산 모두 손절은 같이 1p 로 하는 수식좀 부탁 드립니다...어렵네요... input : aa(1),bb(1),횟수(4); var : count(0),cnt(0),oo(0),vix(0); count = 0; for cnt = 0 to 10 { if EntryDate(cnt) == sdate then count = count +1; } if ~ 조건 ~ and count < 횟수 Then sell(); if ~ 조건 ~ and count < 횟수 Then buy(); if stime >= 150000 then{ exitshort(); ExitLong();} SetStopLoss(aa, PointStop); SetStopProfittarget(bb, PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-03-17 16:21:22

안녕하세요 예스스탁입니다. 풀어서 작성하셔야 합니다. 아래와 같이 당일 진입횟수별로 따로 포인트를 주시면 됩니다. input : aa(1),bb(1),횟수(4); var : count(0),cnt(0),oo(0),vix(0); count = 0; for cnt = 0 to 10 { if EntryDate(cnt) == sdate then count = count +1; } if ~ 조건 ~ and count < 횟수 Then sell(); if ~ 조건 ~ and count < 횟수 Then buy(); if stime >= 150000 then{ exitshort(); ExitLong();} } if MarketPosition == 1 Then{ if count == 1 or count == 3 Then ExitLong("bP1",atlimit,EntryPrice+0.5); Else ExitLong("bPs",atlimit,EntryPrice+1.0); } if MarketPosition == -1 Then{ if count == 1 or count == 3 Then ExitShort("sP1",atlimit,EntryPrice-0.5); Else ExitShort("sP2",atlimit,EntryPrice-1.0); } SetStopLoss(aa, PointStop); 즐거운 하루되세요 > saidas 님이 쓴 글입니다. > 제목 : 같은조건 인데 SetStopProfittarget와 진입을 다르게 ... > 같은 조건 으로 - 조건만족시 (첫번째 진입) 익절 0.5 p 청산후 다시 첫번째 진입가격 도달시 두번째 진입 - 두번째 진입은 익절 1p 청산 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 조건만족시 (세번째 진입) 익절 0.5 p 청산후 다시 세번째 진입가격 도달시 네번째 진입 - 네번째 진입은 익절 1p 청산 모두 손절은 같이 1p 로 하는 수식좀 부탁 드립니다...어렵네요... input : aa(1),bb(1),횟수(4); var : count(0),cnt(0),oo(0),vix(0); count = 0; for cnt = 0 to 10 { if EntryDate(cnt) == sdate then count = count +1; } if ~ 조건 ~ and count < 횟수 Then sell(); if ~ 조건 ~ and count < 횟수 Then buy(); if stime >= 150000 then{ exitshort(); ExitLong();} SetStopLoss(aa, PointStop); SetStopProfittarget(bb, PointStop);