커뮤니티

글번호 39007 의 추가 질문 입니다.

프로필 이미지
회원
2014-11-19 11:58:07
143
글번호 80537
답변완료
글번호 39007의 1)번과 관련된 추가 질문입니다. 만약, 손절(0.5P) 되었을 경우에도, 목표실현(강제청산)과 동일하게 신호나오게 하려면 어떻게 해야 하나요? 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-11-19 17:08:43

안녕하세요 예스스탁입니다. 1. Condition1 = MarketPosition == 0 and ExitDate(1) == sdate and MarketPosition(1) == 1 and (IsExitName("StopProfittarget",1) == true or IsExitName("StopLoss",1) == true) ; Condition2 = MarketPosition == 0 and ExitDate(1) == sdate and MarketPosition(1) == -1 and (IsExitName("StopProfittarget",1) == true or IsExitName("StopLoss",1) == true) ; if 매수조건 and Condition1 == false Then buy(); if 매도조건 and Condition2 == false Then sell(); SetStopProfittarget(0.5,PointStop); 2. Condition1 = MarketPosition == 0 and ExitDate(1) == sdate and BarsSinceExit(1) != 0 and (IsExitName("StopProfittarget",1) == true or IsExitName("StopLoss",1) == true) ; if 매수조건 and Condition1 == false Then buy(); if 매도조건 and Condition1 == false Then sell(); SetStopProfittarget(0.5,PointStop); 즐거운 하루되세요 > WT_wr****** 님이 쓴 글입니다. > 제목 : 글번호 39007 의 추가 질문 입니다. > 글번호 39007의 1)번과 관련된 추가 질문입니다. 만약, 손절(0.5P) 되었을 경우에도, 목표실현(강제청산)과 동일하게 신호나오게 하려면 어떻게 해야 하나요? 감사합니다.