커뮤니티

미청산 손익..

프로필 이미지
파문일기
2011-01-24 21:16:14
791
글번호 35258
답변완료
현재거래의 미청산 손익이 이전거래나, 그전거래의 고점중 높은고점을 하회할때 청산하는 수식 검토해주세요. If MarketPosition == 1 and Highest(OpenPositionProfit,BarsSinceEntry) > 5 and Highest(H,BarsSinceEntry) > DayLow(1) Then { If CurrentEntries >= 3 Then{ var10 = Highest(MaxPositionProfit(2)+ PositionProfit(3),MaxPositionProfit() + PositionProfit(2)); var11 = OpenPositionProfit + NetProfit(); If CrossDown(var11,var10) Then ExitLong("마디청산10"); } } 감사합니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-01-25 13:51:43

안녕하세요 예스스탁입니다. 현재거래의 미청산 손익은 OpenPositionProfit 혹은 PositionProfit(0)입니다. 이전거래의 최고 수익은 PositionProfit(1),PositionProfit(2)순으로 표시하시면 됩니다. 이전거래나, 그전거래의 고점중 높은고점을 하회할때 청산하는 수식은 아래와 같이 작성하시면 됩니다. If MarketPosition == 1 and Highest(OpenPositionProfit,BarsSinceEntry) > 5 and Highest(H,BarsSinceEntry) > DayLow(1) Then { If CurrentEntries >= 3 Then{ var10 = Max(MaxPositionProfit(1)+ MaxPositionProfit(2)); var11 = PositionProfit; If CrossDown(var11,var10) Then ExitLong("마디청산10"); } } 즐거운 하루되세요 > 파문일기 님이 쓴 글입니다. > 제목 : 미청산 손익.. > 현재거래의 미청산 손익이 이전거래나, 그전거래의 고점중 높은고점을 하회할때 청산하는 수식 검토해주세요. If MarketPosition == 1 and Highest(OpenPositionProfit,BarsSinceEntry) > 5 and Highest(H,BarsSinceEntry) > DayLow(1) Then { If CurrentEntries >= 3 Then{ var10 = Highest(MaxPositionProfit(2)+ PositionProfit(3),MaxPositionProfit() + PositionProfit(2)); var11 = OpenPositionProfit + NetProfit(); If CrossDown(var11,var10) Then ExitLong("마디청산10"); } } 감사합니다