커뮤니티

문의 드립니다.

프로필 이미지
lucky93
2019-05-16 17:55:55
222
글번호 128734
답변완료
안녕하세요 . 하기 수식은 예제 전략으로 나와있는 Volatility Percent 수식 입니다. Inputs: VtyPercent(0.75),ATRperiod(5); If MarketPosition() <> 1 Then Buy ("Vty_LE", AtStop, Close + (VtyPercent * ATR(ATRperiod))); If MarketPosition() <> -1 Then Sell ("Vty_SE)", AtStop, Close - (VtyPercent * ATR(ATRperiod))); 이런 경우 항상 Buy 가 먼저 실행 되도록 하려면 어떻게 해야 하는지 문의 드립니다. 감사합니다.
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2019-05-17 11:36:33

안녕하세요 예스스탁입니다. 차트 전체에서 매수가 먼저 나오게 하고자 하시면 아래식 이용하시면 됩니다. Inputs: VtyPercent(0.75),ATRperiod(5); If MarketPosition() <> 1 Then Buy ("Vty_LE", AtStop, Close + (VtyPercent * ATR(ATRperiod))); if MarketPosition == -1 Then Condition1 = true; If MarketPosition() <> -1 and Condition1 == true Then Sell ("Vty_SE)", AtStop, Close - (VtyPercent * ATR(ATRperiod))); 일간 기준이면 아래와 같습니다. 다만 일간기준일 경우 당일청산등이 같이 사용되어야 합니다. Inputs: VtyPercent(0.75),ATRperiod(5); if bdate != bdate[1] Then Condition1 = false; If MarketPosition() <> 1 Then Buy ("Vty_LE", AtStop, Close + (VtyPercent * ATR(ATRperiod))); if MarketPosition == -1 Then Condition1 = true; If MarketPosition() <> -1 and Condition1 == true Then Sell ("Vty_SE)", AtStop, Close - (VtyPercent * ATR(ATRperiod))); 즐거운 하루되세요 > lucky93 님이 쓴 글입니다. > 제목 : 문의 드립니다. > 안녕하세요 . 하기 수식은 예제 전략으로 나와있는 Volatility Percent 수식 입니다. Inputs: VtyPercent(0.75),ATRperiod(5); If MarketPosition() <> 1 Then Buy ("Vty_LE", AtStop, Close + (VtyPercent * ATR(ATRperiod))); If MarketPosition() <> -1 Then Sell ("Vty_SE)", AtStop, Close - (VtyPercent * ATR(ATRperiod))); 이런 경우 항상 Buy 가 먼저 실행 되도록 하려면 어떻게 해야 하는지 문의 드립니다. 감사합니다.
프로필 이미지

lucky93

2019-05-20 13:21:26

lucky93 님에 의해 삭제된 답변입니다.