커뮤니티

여쭤봅니다.

프로필 이미지
aedsesss
2011-07-28 14:55:04
658
글번호 41416
답변완료
안녕하세요. 시스템식 여쭤봅니다. if A then buy(); if b then sell(); if C then exitlong(); if D then exitshort(); 라는 식이 있는데, A 라는 조건에 매수가 들어가면, A 가 청산되기 전까지는 B라는 신호가 나와도 매도가 들어가지 않고 , A 가 청산된 후에 A 또는 b 신호가 나오는 수식이 궁금합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-07-28 17:16:45

안녕하세요 예스스탁입니다. if MarketPosition == 0 and A조건 then buy(); if MarketPosition == 0 and b조건 then sell(); if MarketPosition == 1 and C조건 then exitlong(); if MarketPosition == -1 and D조건 then exitshort(); 즐거운 하루되세요 > aedsesss 님이 쓴 글입니다. > 제목 : 여쭤봅니다. > 안녕하세요. 시스템식 여쭤봅니다. if A then buy(); if b then sell(); if C then exitlong(); if D then exitshort(); 라는 식이 있는데, A 라는 조건에 매수가 들어가면, A 가 청산되기 전까지는 B라는 신호가 나와도 매도가 들어가지 않고 , A 가 청산된 후에 A 또는 b 신호가 나오는 수식이 궁금합니다.