커뮤니티

감사합니다.

프로필 이미지
huhboo99
2013-12-12 12:20:53
122
글번호 70388
답변완료
감사합니다. 현재의 수식을 10% 상승후 반락시에는 진입가 매도, 20% 상승후 반락시에는 진입가 대비 1.05상승한 가격에 매도하는 수식으로 수정 부탁드립니다. if MarketPosition == 1 and (Isentryname("bs")==true or Isentryname("d")==true or Isentryname("bi")==true) Then{ var6 = highest(H,BarsSinceEntry); if var6 < EntryPrice*1.3 Then{ SetStopTrailing(50,29,percentstop,0); } Else{ SetStopTrailing(0,0);#해제 if highest(H,BarsSinceEntry) >= EntryPrice*1.30 Then ExitLong("bx4",atstop,var2*0.97); } } Else SetStopTrailing(0,0);#해제
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-12-13 11:26:33

안녕하세요 예스스탁입니다. var : HH(0); if MarketPosition == 1 Then{ HH = highest(h,BarsSinceEntry); if HH >= EntryPrice*1.10 and HH < EntryPrice*1.20 Then ExitLong("bx1",AtStop,EntryPrice); if HH >= EntryPrice*1.20 Then ExitLong("bx2",AtStop,EntryPrice*1.05); } 즐거운 하루되세요 > huhboo99 님이 쓴 글입니다. > 제목 : 감사합니다. > 감사합니다. 현재의 수식을 10% 상승후 반락시에는 진입가 매도, 20% 상승후 반락시에는 진입가 대비 1.05상승한 가격에 매도하는 수식으로 수정 부탁드립니다. if MarketPosition == 1 and (Isentryname("bs")==true or Isentryname("d")==true or Isentryname("bi")==true) Then{ var6 = highest(H,BarsSinceEntry); if var6 < EntryPrice*1.3 Then{ SetStopTrailing(50,29,percentstop,0); } Else{ SetStopTrailing(0,0);#해제 if highest(H,BarsSinceEntry) >= EntryPrice*1.30 Then ExitLong("bx4",atstop,var2*0.97); } } Else SetStopTrailing(0,0);#해제