커뮤니티

부탁드립니다

프로필 이미지
묘선낭자
2017-08-11 10:35:24
130
글번호 111953
답변완료
서로다른 신호에 대해 진입허용하는 경우, 1 b5와 b6이 둘다 매수에 포함되어 매수되어 있는 경우(b5가 먼저 매수됨) b5매수진입가에 전량 청산하고자 하는데, 시스템식을 부탁드립니다. 2 매수된 것중에 b3가 포함되어 있다면 b3매수진입가+1.00에 전량 청산코자 할 때의 시스템식도 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-08-11 11:02:46

안녕하세요 예스스탁입니다. 1 if MarketPosition == 1 then{ if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "b5" Then{ Condition5 = true; value5 = LatestEntryPrice(0); } if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "b6" Then{ Condition6 = true; value6 = LatestEntryPrice(0); } if Condition5 == true and Condition6 == true then{ if NextBarOpen < value5 Then exitlong("bx11",atlimit,value5); Else exitlong("bx12",AtStop,value5); } } Else{ Condition5 = false; Condition6 = false; } 2 if MarketPosition == 1 then{ if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "b3" Then{ Condition3 = true; value3 = LatestEntryPrice(0); } if Condition3 == true then{ exitlong("bx11",atlimit,value3+1); } } Else{ Condition3 = false; } 즐거운 하루되세요 > 묘선낭자 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 서로다른 신호에 대해 진입허용하는 경우, 1 b5와 b6이 둘다 매수에 포함되어 매수되어 있는 경우(b5가 먼저 매수됨) b5매수진입가에 전량 청산하고자 하는데, 시스템식을 부탁드립니다. 2 매수된 것중에 b3가 포함되어 있다면 b3매수진입가+1.00에 전량 청산코자 할 때의 시스템식도 부탁드립니다.