커뮤니티

부탁드립니다.

프로필 이미지
묘선낭자
2015-02-27 17:21:05
91
글번호 83502
답변완료
1. If 매수조건 Then Buy("b1"); If Marketposition==1 Then Buy("b2",Entryprice-1); If Marketposition==1 and Currentcontracts==2 Then Exitlong("bx",atlimit,Entryprice,1계약만); b2로 물타기해서 b1의 진입가에 1계약은 청산시키고 1계약을 남기고자 할 때 어떻게 표현해야 하는지요. 부탁드립니다 2. 만일 위의 것을 1개씩 진입하지 않고 2개씩 진입하여 합이 4개가 되었을 때 2계약을 청산코자 하는 경우의 표현도 함께 부탁드립니다. 3. If 매수조건 Then Buy("b1"); If Marketposition==1 Then Buy("b2",Entryprice-1,2); 처음엔 1계약 매수 물타기는 2계약 추가매수 If Marketposition==1 and Currentcontracts>=2 Then Exitlong("bx",atlimit,Entryprice,currentcontracts-1); 현재포지션이 2계약 이상일 때 1계약만 남기고 청산코자 하는 경우 위의 표현이 맞는지요. 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-02-27 17:06:58

안녕하세요 예스스탁입니다. 1. If 매수조건 Then Buy("b1"); If Marketposition==1 and MaxEntries == 1 Then Buy("b2",atlimit,Entryprice-1); If Marketposition==1 and MaxContracts == 2 and CurrentContracts == 2 Then Exitlong("bx",atlimit,Entryprice,"",1,1); 2. If 매수조건 Then Buy("b1"); If Marketposition==1 and MaxEntries == 1 Then Buy("b2",atlimit,Entryprice-1); If Marketposition==1 and MaxContracts == 2 and CurrentContracts == 2 Then Exitlong("bx",atlimit,Entryprice,"",int(CurrentContracts*2),1); 3. 예 맞습니다. 즐거운 하루되세요 > 묘선낭자 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 1. If 매수조건 Then Buy("b1"); If Marketposition==1 Then Buy("b2",Entryprice-1); If Marketposition==1 and Currentcontracts==2 Then Exitlong("bx",atlimit,Entryprice,1계약만); b2로 물타기해서 b1의 진입가에 1계약은 청산시키고 1계약을 남기고자 할 때 어떻게 표현해야 하는지요. 부탁드립니다 2. 만일 위의 것을 1개씩 진입하지 않고 2개씩 진입하여 합이 4개가 되었을 때 2계약을 청산코자 하는 경우의 표현도 함께 부탁드립니다. 3. If Marketposition==1 and Currentcontracts>=2 Then Exitlong("bx",atlimit,Entryprice,currentcontracts-1); 현재포지션이 2계약 이상일 때 1계약만 남기고 청산코자 하는 경우 위의 표현이 맞는지요. 부탁드립니다.