커뮤니티

수식문의

프로필 이미지
으쌰
2012-04-10 14:13:55
314
글번호 49908
답변완료
if c>o then buy(); if c<o then sell(); setstoploss(1,pointstop); 이런 식이 있을때. 손절 후 손절했던 방향으론 매수금지! 식 부탁드립니다 예를들어 매수 진입 후 손절 => 추후 매수금지 and 매도신호 출현시 매도진입... 감사드립니다~ ^^
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-04-10 15:49:20

안녕하세요 예스스탁입니다. Condition1 = ExitDate(1) == sdate and IsExitName("StopLoss",1) and MarketPosition(1) == 1; Condition2 = ExitDate(1) == sdate and IsExitName("StopLoss",1) and MarketPosition(1) == -1; if Condition1 == false and C > O then buy(); if Condition2 == false and C < O then sell(); setstoploss(1,pointstop); 즐거운 하루되세요 > 으&#49968; 님이 쓴 글입니다. > 제목 : 수식문의 > if c>o then buy(); if c<o then sell(); setstoploss(1,pointstop); 이런 식이 있을때. 손절 후 손절했던 방향으론 매수금지! 식 부탁드립니다 예를들어 매수 진입 후 손절 => 추후 매수금지 and 매도신호 출현시 매도진입... 감사드립니다~ ^^