커뮤니티

수식 수정 부탁드립니다

프로필 이미지
theogo66
2018-08-09 12:31:36
168
글번호 121243
답변완료

첨부 이미지

파라볼릭 (0.02, 0.2)을 적용하여, 파라볼릭이 상승추세에서만(그림에서 빨간점 위에서만) 적용 기본식 만족시 매수하는 식을 아래와 같이 만들었는데, 실제 적용해 보니 매수신호가 파라볼릭 상승 추세 신호와 무관하게 작동이 됩니다. 수정 부탁드립니다. 감사합니다. -아래- input: period(20),nsd(2.0),StopPer(5), Input: AccelFactor(0.02); vars: maV(0), bandup(0), banddn(0); Variables: ParabolicValue(0); maV = ma(close,period); bandup = BollBandUp(period,nsd); banddn = BollBandDown(period,nsd); ParabolicValue = SAR(AccelFactor, 0.2); if CrossuP(close , bandup) and High <= ParabolicValue then // 여기가 틀렸나요? ~~ Buy("B"); if marketposition > 0 then { exitlong("EX",AtStop,mav); SetStopLoss(StopPer,PercentStop); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-08-09 13:54:57

안녕하세요 예스스탁입니다. High <= ParabolicValue 봉이 파라볼릭보다 아래 있으면 파란색구간입니다. 그러므로 위 내용은 하락추세입니다. 반대로 지정하시면 됩니다. input: period(20),nsd(2.0),StopPer(5); Input: AccelFactor(0.02); vars: maV(0), bandup(0), banddn(0); Variables: ParabolicValue(0); maV = ma(close,period); bandup = BollBandUp(period,nsd); banddn = BollBandDown(period,nsd); ParabolicValue = SAR(AccelFactor, 0.2); if CrossuP(close , bandup) and L >= ParabolicValue then // 여기가 틀렸나요? ~~ Buy("B"); if marketposition > 0 then { exitlong("EX",AtStop,mav); SetStopLoss(StopPer,PercentStop); } 즐거운 하루되세요 > theogo66 님이 쓴 글입니다. > 제목 : 수식 수정 부탁드립니다 > 파라볼릭 (0.02, 0.2)을 적용하여, 파라볼릭이 상승추세에서만(그림에서 빨간점 위에서만) 적용 기본식 만족시 매수하는 식을 아래와 같이 만들었는데, 실제 적용해 보니 매수신호가 파라볼릭 상승 추세 신호와 무관하게 작동이 됩니다. 수정 부탁드립니다. 감사합니다. -아래- input: period(20),nsd(2.0),StopPer(5), Input: AccelFactor(0.02); vars: maV(0), bandup(0), banddn(0); Variables: ParabolicValue(0); maV = ma(close,period); bandup = BollBandUp(period,nsd); banddn = BollBandDown(period,nsd); ParabolicValue = SAR(AccelFactor, 0.2); if CrossuP(close , bandup) and High <= ParabolicValue then // 여기가 틀렸나요? ~~ Buy("B"); if marketposition > 0 then { exitlong("EX",AtStop,mav); SetStopLoss(StopPer,PercentStop); }