커뮤니티

감사합니다.

프로필 이미지
huhboo99
2013-10-04 10:38:33
123
글번호 68095
답변완료
항상 친절한 답변에 감사드립니다. 트레일링 스탑시 수익규모의 크기에 따른 반전크기를 조정하여 트레일링스탑 수식이 부탁드립니다. 감사합니다. 예를 들면, 10% 상승시 50% 트레일링 스탑 20% 상승시 40% 30% 상승시 30% 40% 상승시 20% 50% 상승시 10%
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-10-04 14:52:45

안녕하세요 예스스탁입니다. if MarketPosition == 1 Then{ var1 = highest(H,BarsSinceEntry); if var1 >= EntryPrice*1.10 and var1 < EntryPrice*1.20 Then exitlong("bx1",AtStop,var1-(var1-EntryPrice)*0.50); if var1 >= EntryPrice*1.20 and var1 < EntryPrice*1.30 Then exitlong("bx2",AtStop,var1-(var1-EntryPrice)*0.40); if var1 >= EntryPrice*1.30 and var1 < EntryPrice*1.40 Then exitlong("bx3",AtStop,var1-(var1-EntryPrice)*0.30); if var1 >= EntryPrice*1.40 and var1 < EntryPrice*1.50 Then exitlong("bx4",AtStop,var1-(var1-EntryPrice)*0.20); if var1 >= EntryPrice*1.50 Then exitlong("bx5",AtStop,var1-(var1-EntryPrice)*0.10); } if MarketPosition == -1 Then{ var2 = highest(H,BarsSinceEntry); if var2 <= EntryPrice*0.90 and var2 > EntryPrice*0.80 Then ExitShort("sx1",AtStop,var2+(EntryPrice-var2)*0.50); if var2 <= EntryPrice*0.80 and var2 > EntryPrice*0.70 Then ExitShort("sx2",AtStop,var2+(EntryPrice-var2)*0.40); if var2 <= EntryPrice*0.70 and var2 > EntryPrice*0.60 Then ExitShort("sx3",AtStop,var2+(EntryPrice-var2)*0.30); if var2 <= EntryPrice*0.60 and var2 > EntryPrice*0.50 Then ExitShort("sx4",AtStop,var2+(EntryPrice-var2)*0.20); if var2 <= EntryPrice*0.50 Then ExitShort("sx5",AtStop,var2+(EntryPrice-var2)*0.10); } 즐거운 하루되세요 > huhboo99 님이 쓴 글입니다. > 제목 : 감사합니다. > 항상 친절한 답변에 감사드립니다. 트레일링 스탑시 수익규모의 크기에 따른 반전크기를 조정하여 트레일링스탑 수식이 부탁드립니다. 감사합니다. 예를 들면, 10% 상승시 50% 트레일링 스탑 20% 상승시 40% 30% 상승시 30% 40% 상승시 20% 50% 상승시 10%