커뮤니티

간단한 질문.

프로필 이미지
sjpapa
2011-01-10 13:47:44
605
글번호 34826
답변완료
Input : breakeven(1.0); if CrossUP(c, dayopen) Then Buy(); If CrossDown(c, dayopne) Then sell(); If CrossDown(c, dayhigh(1)) Then exitlong(); If CrossUP(c, daylow(1)) Then ExitShort(); if MarketPosition <> 0 then { if Highest(h,barssinceentry+1) > EntryPrice+breakeven Then exitlong("EL_손익분기",atstop,entryprice); if lowest(L,BarsSinceEntry+1) < EntryPrice-breakeven Then ExitShort("ES_손익분기",atstop,EntryPrice); } SetStopEndofday(150000); 위 식에서 af = 0.002 max af 0.2 값을 주어 파라볼릭 추적 청삭식을 더하고 싶습니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-01-10 15:00:09

안녕하세요 예스스탁입니다. Input : breakeven(1.0),af(0.002),maxaf(0.2); var1 = sar(af,maxaf); if CrossUP(c, dayopen) Then Buy(); If CrossDown(c, DayOpen) Then sell(); If CrossDown(c, dayhigh(1)) Then exitlong(); If CrossUP(c, daylow(1)) Then ExitShort(); if MarketPosition <> 0 then { if Highest(h,barssinceentry+1) > EntryPrice+breakeven Then exitlong("EL_손익분기",atstop,entryprice); if lowest(L,BarsSinceEntry+1) < EntryPrice-breakeven Then ExitShort("ES_손익분기",atstop,EntryPrice); } if MarketPosition == 1 Then exitlong("bx",AtStop,var1); if MarketPosition == -1 Then ExitShort("sx",AtStop,var1); SetStopEndofday(150000); 파라볼릭 추적청산이 어떤 내용을 의미하시는지 모르겠습니다. 매수일경우 파라볼록이하의 시세이면 청산 매도일경우 파라볼릭이상의 시세이면 청산하는 내용을 추가했습니다. 즐거운 하루되세요 > 휴식 님이 쓴 글입니다. > 제목 : 간단한 질문. > Input : breakeven(1.0); if CrossUP(c, dayopen) Then Buy(); If CrossDown(c, dayopne) Then sell(); If CrossDown(c, dayhigh(1)) Then exitlong(); If CrossUP(c, daylow(1)) Then ExitShort(); if MarketPosition <> 0 then { if Highest(h,barssinceentry+1) > EntryPrice+breakeven Then exitlong("EL_손익분기",atstop,entryprice); if lowest(L,BarsSinceEntry+1) < EntryPrice-breakeven Then ExitShort("ES_손익분기",atstop,EntryPrice); } SetStopEndofday(150000); 위 식에서 af = 0.002 max af 0.2 값을 주어 파라볼릭 추적 청삭식을 더하고 싶습니다.