커뮤니티

문의드립니다.

프로필 이미지
난나야남
2013-01-10 11:17:34
254
글번호 57989
답변완료
1. 진입후 0.4pt 수익후 수익의 55%가 감소했을때, 청산 진입후 0.6pt 수익후 수익의 45%가 감소했을때, 청산 진입후 1pt 수익후 수익의 35%가 감소했을때, 청산 * 매도진입 매수진입 모두 적용 2. bids-asks가 3000에 도달한 이후 4000을 거쳐 5000을 상향돌파하면 매수 bids-asks가 -3000에 도달한 이후 -4000을 거쳐 -5000을 하향돌파하면 매도 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-01-10 15:06:03

안녕하세요 예스스탁입니다. 1. if MarketPosition == 1 Then{ var1 = highest(H,BarsSinceEntry); if var1 >= EntryPrice+0.4 and var1 < EntryPrice+0.6 Then exitlong("bx1",AtStop,var1-(var1-EntryPrice)*0.55); if var1 >= EntryPrice+0.6 and var1 < EntryPrice+1.0 Then exitlong("bx2",AtStop,var1-(var1-EntryPrice)*0.45); if var1 >= EntryPrice+1.0 Then exitlong("bx3",AtStop,var1-(var1-EntryPrice)*0.35); } if MarketPosition == -1 Then{ var2 = lowest(L,BarsSinceEntry); if var2 <= EntryPrice-0.4 and var2 > EntryPrice-0.6 Then ExitShort("sx1",AtStop,var2+(EntryPrice-var2)*0.55); if var2 <= EntryPrice-0.6 and var2 > EntryPrice-1.0 Then ExitShort("sx2",AtStop,var2+(EntryPrice-var2)*0.45); if var2 <= EntryPrice-1.0 Then ExitShort("sx3",AtStop,var2+(EntryPrice-var2)*0.35); } 2. var1 = bids-asks; if TotalTrades == 0 and MarketPosition == 0 then{ if countif(var1>3000,index) >= 1 and countif(var1>4000,index) >= 1 and crossup(var1,5000) Then buy(); if countif(var1<-3000,index) >= 1 and countif(var1<-4000,index) >= 1 and CrossDown(var1,-5000) Then Sell(); } if TotalTrades > 0 and MarketPosition == 0 then{ if countif(var1>3000,BarsSinceExit(1)) >= 1 and countif(var1>4000,BarsSinceExit(1)) >= 1 and crossup(var1,5000) Then buy(); if countif(var1<-3000,BarsSinceExit(1)) >= 1 and countif(var1<-4000,BarsSinceExit(1)) >= 1 and CrossDown(var1,-5000) Then Sell(); } if MarketPosition == -1 and countif(var1>3000,BarsSinceEntry) >= 1 and countif(var1>4000,BarsSinceEntry) >= 1 and crossup(var1,5000) Then buy(); if MarketPosition == 1 and countif(var1<-3000,BarsSinceEntry) >= 1 and countif(var1<-4000,BarsSinceEntry) >= 1 and CrossDown(var1,-5000) Then Sell(); 즐거운 하루되세요 > 난나야남 님이 쓴 글입니다. > 제목 : 문의드립니다. > 1. 진입후 0.4pt 수익후 수익의 55%가 감소했을때, 청산 진입후 0.6pt 수익후 수익의 45%가 감소했을때, 청산 진입후 1pt 수익후 수익의 35%가 감소했을때, 청산 * 매도진입 매수진입 모두 적용 2. bids-asks가 3000에 도달한 이후 4000을 거쳐 5000을 상향돌파하면 매수 bids-asks가 -3000에 도달한 이후 -4000을 거쳐 -5000을 하향돌파하면 매도 감사합니다.