커뮤니티

문의 드립니다.

프로필 이미지
회원
2016-04-22 07:30:10
108
글번호 97365
답변완료
수고많으십니다. 1. 보유중인 수량을 0.5% , 1% , 신호시 모두청산 ,,각각 1/3 씩 청산하고 청산 신호시 잔량 모두 청산. 2.매매횟수 제한 _ 하루 4회까지 매매 만 허용 3.2시 30분 이후 신규 진입금지 하고 보유 중인 잔량만 2시 49분에 정리. 수고하십시요...^^
사용자 함수
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-04-22 12:41:47

안녕하세요 예스스탁입니다. var : TT(0),T1(0),entry(0); var : Bxcond1(false),Bxcond2(false),Sxcond1(false),Sxcond2(false); TT = TotalTrades; if Bdate != Bdate[1] Then T1 = TT; if MarketPosition == 0 Then entry = TT - T1; Else entry = TT - T1+1; if entry < 4 and 매수진입조건 and stime < 143000 Then buy("b"); if entry < 4 and 매도진입조건 and stime < 143000 Then sell("2"); if MarketPosition == 1 Then{ if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "bx1" Then BXcond1 = true; if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "bx2" Then BXcond1 = true; if Bxcond1 == false Then ExitLong("bx1",atlimit,AvgEntryPrice*1.005,"",floor(MaxContracts*(1/3)),1); if Bxcond2 == false Then ExitLong("bx2",atlimit,AvgEntryPrice*1.01,"",floor(MaxContracts*(1/3)),1); if 매수청산조건 Then ExitLong("bx3"); } Else{ BXcond1 = false; BXcond2 = false; } if MarketPosition == -1 Then{ if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "sx1" Then SXcond1 = true; if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "sx2" Then SXcond2 = true; ExitShort("sx1",atlimit,AvgEntryPrice*0.995,"",floor(MaxContracts*(1/3)),1); ExitShort("sx2",atlimit,AvgEntryPrice*0.99,"",floor(MaxContracts*(1/3)),1); if 매도청산조건 Then ExitShort("sx3"); } Else{ SXcond1 = false; SXcond2 = true; } SetStopEndofday(144900); 즐거운 하루되세요 > leezard 님이 쓴 글입니다. > 제목 : 문의 드립니다. > 수고많으십니다. 1. 보유중인 수량을 0.5% , 1% , 신호시 모두청산 ,,각각 1/3 씩 청산하고 청산 신호시 잔량 모두 청산. 2.매매횟수 제한 _ 하루 4회까지 매매 만 허용 3.2시 30분 이후 신규 진입금지 하고 보유 중인 잔량만 2시 49분에 정리. 수고하십시요...^^