커뮤니티

수식문의

프로필 이미지
푸른물결
2021-11-18 16:43:38
659
글번호 153706
답변완료
수식작성 부탁드립니다 매수:5일 이평과20이평이 골든크로스 2계약 매수 1.매수청산경우:스톡캐스틱 데드크로스시 1차매도1개,5/20이평 데드크로스2차청산1개 단,5/20이평데드시는 2계약전부청산 2.매수청산경우:50틱수익일때 1차매도1개,5/20이평 데드크로스2차청산1개 단,5/20이평데드시는 2계약전부청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-11-19 09:36:13

안녕하세요 예스스탁입니다. 1 input : P1(5),P2(20),sto1(10),sto2(5),sto3(0); var : mav1(0),mav2(0),stok(0),stod(0); mav1 = ma(C,P1); mav2 = ma(C,P2); stok = StochasticsK(sto1,sto2); stod = Stochasticsd(sto1,sto2,sto3); if MarketPosition <= 0 and CrossUp(mav1,mav2) Then Buy("b",OnClose,DEF,2); if MarketPosition == 1 Then { if CrossDown(stok,stod) Then ExitLong("bx1",OnClose,DEf,"",1,1); if CrossDown(mav1,mav2) Then ExitLong("bx2"); } 2 input : P1(5),P2(20),sto1(10),sto2(5),sto3(0); var : mav1(0),mav2(0),stok(0),stod(0); mav1 = ma(C,P1); mav2 = ma(C,P2); stok = StochasticsK(sto1,sto2); stod = Stochasticsd(sto1,sto2,sto3); if MarketPosition <= 0 and CrossUp(mav1,mav2) Then Buy("b",OnClose,DEF,2); if MarketPosition == 1 Then { ExitLong("bp",AtLimit,EntryPrice+PriceScale*50,"",1,1); if CrossDown(mav1,mav2) Then ExitLong("bx"); } 즐거운 하루되세요 > 푸른물결 님이 쓴 글입니다. > 제목 : 수식문의 > 수식작성 부탁드립니다 매수:5일 이평과20이평이 골든크로스 2계약 매수 1.매수청산경우:스톡캐스틱 데드크로스시 1차매도1개,5/20이평 데드크로스2차청산1개 단,5/20이평데드시는 2계약전부청산 2.매수청산경우:50틱수익일때 1차매도1개,5/20이평 데드크로스2차청산1개 단,5/20이평데드시는 2계약전부청산