커뮤니티

문의드립니다.

프로필 이미지
억수로
2020-11-28 23:16:17
750
글번호 144237
답변완료
매수진입: 40 이평 기울기가 양일 때 20 이평 아래에서 시작하는 캔들의 시가 +1틱에서 매수 진입 매도진입: 40 이평 기울기가 음일 때 20 이평 위에서 시작하는 캔들의 시가 -1 틱에서 매도 진입 청산은 40 틱, 손절은 - 20 틱 input : P1(20),P2(40),손절틱수(20),익절틱수(40); var : mav1(0),mav2(0); mav1 = ma(C,P1); mav2 = ma(C,P2); if Then Buy(); if Then Sell(); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); 항상 감사합니다^^
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-11-30 10:24:16

안녕하세요 예스스탁입니다. input : P1(20),P2(40),손절틱수(20),익절틱수(40); var : mav1(0),mav2(0); mav1 = ma(C,P1); mav2 = ma(C,P2); if mav2 > mav2[1] and NextBarOpen < mav1 Then Buy("b",AtStop,NextBarOpen+PriceScale*1); if mav2 < mav2[1] and NextBarOpen > mav1 Then Sell("s",AtStop,NextBarOpen-PriceScale*1); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); 즐거운 하루되세요 > 억수로 님이 쓴 글입니다. > 제목 : 문의드립니다. > 매수진입: 40 이평 기울기가 양일 때 20 이평 아래에서 시작하는 캔들의 시가 +1틱에서 매수 진입 매도진입: 40 이평 기울기가 음일 때 20 이평 위에서 시작하는 캔들의 시가 -1 틱에서 매도 진입 청산은 40 틱, 손절은 - 20 틱 input : P1(20),P2(40),손절틱수(20),익절틱수(40); var : mav1(0),mav2(0); mav1 = ma(C,P1); mav2 = ma(C,P2); if Then Buy(); if Then Sell(); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); 항상 감사합니다^^