커뮤니티

문의드립니다

프로필 이미지
싱글
2015-11-04 14:58:00
208
글번호 92041
답변완료
아래수식에서 현재가에서 n봉전 최고점 최저점을 비교 10틱이상 변화가 없으면 신호가 나오지 않게 필터링 했으면 합니다 input : short(9),Long(12),af(0.02),maxaf(0.2),P(3); var : MACDV(0),Sarv(0),mav(0); MACDV = MACD(short,long); Sarv = Sar(af,maxaf); mav = ma(c,P); if MarketPosition <= 0 and MACDV > 0 and C > Sarv Then{ if NextBarOpen >= mav-PriceScale Then buy("b",Atlimit,mav-PriceScale); } if MarketPosition >= 0 and MACDV < 0 and C < Sarv Then{ if NextBarOpen <= mav+PriceScale Then sell("s",Atlimit,mav+PriceScale); } SetStopProfittarget(PriceScale*10,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-11-05 09:56:27

안녕하세요 예스스탁입니다. input : short(9),Long(12),af(0.02),maxaf(0.2),P(3),n(10),T(10); var : MACDV(0),Sarv(0),mav(0); MACDV = MACD(short,long); Sarv = Sar(af,maxaf); mav = ma(c,P); var1 = highest(H,n); var2 = Lowest(L,n); if MarketPosition <= 0 and MACDV > 0 and C > Sarv and var1 >= var2+PriceScale*T Then{ if NextBarOpen >= mav-PriceScale Then buy("b",Atlimit,mav-PriceScale); } if MarketPosition >= 0 and MACDV < 0 and C < Sarv and var1 >= var2+PriceScale*T Then{ if NextBarOpen <= mav+PriceScale Then sell("s",Atlimit,mav+PriceScale); } SetStopProfittarget(PriceScale*10,PointStop); 즐거운 하루되세요 > 싱글 님이 쓴 글입니다. > 제목 : 문의드립니다 > 아래수식에서 현재가에서 n봉전 최고점 최저점을 비교 10틱이상 변화가 없으면 신호가 나오지 않게 필터링 했으면 합니다 input : short(9),Long(12),af(0.02),maxaf(0.2),P(3); var : MACDV(0),Sarv(0),mav(0); MACDV = MACD(short,long); Sarv = Sar(af,maxaf); mav = ma(c,P); if MarketPosition <= 0 and MACDV > 0 and C > Sarv Then{ if NextBarOpen >= mav-PriceScale Then buy("b",Atlimit,mav-PriceScale); } if MarketPosition >= 0 and MACDV < 0 and C < Sarv Then{ if NextBarOpen <= mav+PriceScale Then sell("s",Atlimit,mav+PriceScale); } SetStopProfittarget(PriceScale*10,PointStop);