커뮤니티

안녕하세요

프로필 이미지
수원
2016-08-10 14:11:48
110
글번호 100904
답변완료
매수5이평이20이평 골드크로스 매도5이평이20 이평데드크로스 손절40틱 익절120 틱 강제청산 조건1 +40틱도달후에 +10틱으로다시내려오면 강제청산 조건2+50틱도달후에 +20틱으로 다시내려오면 강제청산 조건3+60틱도달후에 +30틱으로 다시내려오면 강제청산 조건4+70틱도달후에 +40틱으로 다시내려오면 강제청산 수식 부탁드립니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-08-10 17:27:33

안녕하세요 예스스탁입니다. input : P1(5),P2(20); var : mav1(0),mav2(0),HH(0),LL(0); mav1 = ma(C,P1); mav2 = ma(c,P2); if crossup(mav1,mav2) Then buy(); if CrossDown(mav1,mav2) Then sell(); if MarketPosition == 1 Then{ HH = highest(H,BarsSinceEntry); if HH >= EntryPrice+PriceScale*40 and HH < EntryPrice+PriceScale*50 Then Exitshort("bx1",AtStop,EntryPrice+PriceScale*10); if HH >= EntryPrice+PriceScale*50 and HH < EntryPrice+PriceScale*60 Then Exitshort("bx2",AtStop,EntryPrice+PriceScale*20); if HH >= EntryPrice+PriceScale*60 and HH < EntryPrice+PriceScale*70 Then Exitshort("bx3",AtStop,EntryPrice+PriceScale*30); if HH >= EntryPrice+PriceScale*70 Then Exitshort("bx4",AtStop,EntryPrice+PriceScale*40); } if MarketPosition == -1 Then{ LL = lowest(L,BarsSinceEntry); if LL <= EntryPrice-PriceScale*40 and LL > EntryPrice-PriceScale*50 Then Exitshort("sx1",AtStop,EntryPrice-PriceScale*10); if LL <= EntryPrice-PriceScale*50 and LL > EntryPrice-PriceScale*60 Then Exitshort("sx2",AtStop,EntryPrice-PriceScale*20); if LL <= EntryPrice-PriceScale*60 and LL > EntryPrice-PriceScale*70 Then Exitshort("sx3",AtStop,EntryPrice-PriceScale*30); if LL <= EntryPrice-PriceScale*70 Then Exitshort("sx4",AtStop,EntryPrice-PriceScale*40); } SetStopLoss(PriceScale*40,PointStop); SetStopProfittarget(PriceScale*120,PointStop); 즐거운 하루되세요 > 수원 님이 쓴 글입니다. > 제목 : 안녕하세요 > 매수5이평이20이평 골드크로스 매도5이평이20 이평데드크로스 손절40틱 익절120 틱 강제청산 조건1 +40틱도달후에 +10틱으로다시내려오면 강제청산 조건2+50틱도달후에 +20틱으로 다시내려오면 강제청산 조건3+60틱도달후에 +30틱으로 다시내려오면 강제청산 조건4+70틱도달후에 +40틱으로 다시내려오면 강제청산 수식 부탁드립니다