커뮤니티

이평분할매도

프로필 이미지
쫄리면캇
2016-07-07 16:59:21
115
글번호 99865
답변완료
----매수 -------- 이평 골드(5,20) 시 3개 매수 10틱 이익시 1차매도 20틱 이익시 2차매도 마지막은 트레일링스탑 최고수익대비 20틱 손실시 3차매도 매수가보다 30틱 손실 전량매도 -------매도------ 이평 데드(5,20) 시 3개 매도 10틱 이익시 1차매수 20틱 이익시 2차매수 마지막은 트레일링스탑 최고수익대비 20틱 손실시 3차매도 매도가보다 30틱 손실 전량매도
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-07-08 09:57:25

안녕하세요 예스스탁입니다. input : P1(5),P2(20); var : mav1(0),mav2(0); mav1 = ma(C,P1); mav2 = ma(C,P2); if crossup(mav1,mav2) Then buy("b",OnClose,def,3); if CrossDown(mav1,mav2) Then sell("s",OnClose,def,3); if MarketPosition == 1 Then{ ExitLong("bl",AtStop,EntryPrice-PriceScale*30); ExitLong("bp1",atlimit,EntryPrice+PriceScale*10,"",1,1); ExitLong("bp2",atlimit,EntryPrice+PriceScale*20,"",1,1); if CurrentContracts == 1 Then ExitLong("btr",AtStop,highest(H,BarsSinceEntry)-PriceScale*20); } if MarketPosition == -1 Then{ ExitShort("sl",AtStop,EntryPrice+PriceScale*30); ExitShort("sp1",atlimit,EntryPrice-PriceScale*10,"",1,1); ExitShort("sp2",atlimit,EntryPrice-PriceScale*20,"",1,1); if CurrentContracts == 1 Then ExitShort("str",AtStop,lowest(L,BarsSinceEntry)+PriceScale*20); } 즐거운 하루되세요 > 쫄리면캇 님이 쓴 글입니다. > 제목 : 이평분할매도 > ----매수 -------- 이평 골드(5,20) 시 3개 매수 10틱 이익시 1차매도 20틱 이익시 2차매도 마지막은 트레일링스탑 최고수익대비 20틱 손실시 3차매도 매수가보다 30틱 손실 전량매도 -------매도------ 이평 데드(5,20) 시 3개 매도 10틱 이익시 1차매수 20틱 이익시 2차매수 마지막은 트레일링스탑 최고수익대비 20틱 손실시 3차매도 매도가보다 30틱 손실 전량매도