커뮤니티

문의

프로필 이미지
구다이전설
2013-07-06 10:41:29
164
글번호 65074
답변완료
매수든 매도든 재진입은 한번만 (하루) 생기게 할 수있나요 / / 매수 재진입 if MarketPosition == 0 and stime < 150000 and MarketPosition(1) == 1 and MaxPositionProfit(1) >= 0.9 Then buy("bb",AtStop,ExitPrice(1)+MaxPositionProfit(1)/2.2); if MarketPosition == 1 and IsEntryName("bb") then exitlong("bbx",Atstop,highest(high,barsSinceEntry+1)-atr(20)*len); //매도 재진입 if MarketPosition == 0 and stime < 150100 and MarketPosition(1) == -1 and MaxPositionProfit(1) >= 0.8 Then sell("ss",AtStop,ExitPrice(1)-MaxPositionProfit(1)/3); if MarketPosition == -1 and IsEntryName("ss") then exitshort("ssx",Atstop,lowest(low,barsSinceEntry+1)+atr(20)*len);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-07-08 11:08:44

안녕하세요 예스스탁입니다. var : cnt(0),Recount(0); //당일 재진입(bb,ss) 카운트 Recount = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) and (IsEntryName("bb",cnt) == true or IsEntryName("ss",cnt) == true) Then Recount = Recount+1; } // 매수 재진입 if MarketPosition == 0 and Recount < 1 and stime < 150000 and MarketPosition(1) == 1 and MaxPositionProfit(1) >= 0.9 Then buy("bb",AtStop,ExitPrice(1)+MaxPositionProfit(1)/2.2); if MarketPosition == 1 and IsEntryName("bb") then exitlong("bbx",Atstop,highest(high,barsSinceEntry+1)-atr(20)*len); //매도 재진입 if MarketPosition == 0 and stime < 150100 and MarketPosition(1) == -1 and MaxPositionProfit(1) >= 0.8 Then sell("ss",AtStop,ExitPrice(1)-MaxPositionProfit(1)/3); if MarketPosition == -1 and IsEntryName("ss") then exitshort("ssx",Atstop,lowest(low,barsSinceEntry+1)+atr(20)*len); 즐거운 하루되세요 > 구다이전설 님이 쓴 글입니다. > 제목 : 문의 > 매수든 매도든 재진입은 한번만 (하루) 생기게 할 수있나요 / / 매수 재진입 if MarketPosition == 0 and stime < 150000 and MarketPosition(1) == 1 and MaxPositionProfit(1) >= 0.9 Then buy("bb",AtStop,ExitPrice(1)+MaxPositionProfit(1)/2.2); if MarketPosition == 1 and IsEntryName("bb") then exitlong("bbx",Atstop,highest(high,barsSinceEntry+1)-atr(20)*len); //매도 재진입 if MarketPosition == 0 and stime < 150100 and MarketPosition(1) == -1 and MaxPositionProfit(1) >= 0.8 Then sell("ss",AtStop,ExitPrice(1)-MaxPositionProfit(1)/3); if MarketPosition == -1 and IsEntryName("ss") then exitshort("ssx",Atstop,lowest(low,barsSinceEntry+1)+atr(20)*len);