커뮤니티

문의드립니다.

프로필 이미지
웹피
2017-01-16 09:28:45
116
글번호 105927
답변완료
즐거운 월요일 입니다. 환경: 해외선물, 2계약 진입 1.진입조건: 매수진입: 20일선 우상향 하고 캔들이 5일선 아래에 있고 현재 봉의 저점이 1봉전 저점 보다 크면 매수진입 매도진입: 매수진입과 반대 2.청산조건: 매수청산: 10틱 수익도달시 1계약 청산 및 남은 1계약은 본절설정(손절가를 진입가+1틱 으로 이동)한 후 20틱 수익도달시 손절가를 +10틱 가격으로 이동후 20일선 우하향 하면 청산 매도청산: 매수청산과 반대 3.손절: 12틱 수고하세요^^
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-01-16 13:19:23

안녕하세요 예스스탁입니다. var1 = ma(c,5); var2 = ma(c,20); if var2 > var2[1] and C < var1 and L > L[1] Then buy("b",OnClose,def,2); if var2 < var2[1] and C > var1 and H < H[1] Then sell("s",OnClose,def,2); if MarketPosition == 1 then{ ExitLong("bp1",atlimit,EntryPrice+PriceScale*10,"",1,1); if highest(h,BarsSinceEntry) < EntryPrice+PriceScale*10 Then ExitLong("bl1",AtStop,EntryPrice-PriceScale*12); if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*10 and Highest(H,BarsSinceEntry) < EntryPrice+PriceScale*20 Then ExitLong("bl2",AtStop,EntryPrice+PriceScale*1); if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then ExitLong("bl3",AtStop,EntryPrice+PriceScale*10); } if MarketPosition == -1 then{ ExitShort("sp1",atlimit,EntryPrice-PriceScale*10,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*10 Then ExitShort("sl1",AtStop,EntryPrice+PriceScale*12); if Lowest(L,BarsSinceEntry) >= EntryPrice-PriceScale*10 and Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*20 Then ExitShort("sl2",AtStop,EntryPrice-PriceScale*1); if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then ExitShort("sl3",AtStop,EntryPrice-PriceScale*10); } 즐거운 하루되세요 > 웹피 님이 쓴 글입니다. > 제목 : 문의드립니다. > 즐거운 월요일 입니다. 환경: 해외선물, 2계약 진입 1.진입조건: 매수진입: 20일선 우상향 하고 캔들이 5일선 아래에 있고 현재 봉의 저점이 1봉전 저점 보다 크면 매수진입 매도진입: 매수진입과 반대 2.청산조건: 매수청산: 10틱 수익도달시 1계약 청산 및 남은 1계약은 본절설정(손절가를 진입가+1틱 으로 이동)한 후 20틱 수익도달시 손절가를 +10틱 가격으로 이동후 20일선 우하향 하면 청산 매도청산: 매수청산과 반대 3.손절: 12틱 수고하세요^^