커뮤니티

수식 문의합니다.

프로필 이미지
우와우와
2017-08-03 14:25:51
86
글번호 111779
답변완료
1.아래 수식에서 특정 이름의 진입만 따로 정해서 손절 할수 있도록 해주세요.. 불가능 하다면.. 2계약 이상에서 총손실을 이용한 손절 방법을 알려주세요.. input : 손절(50); SetStopLoss(PriceScale*손절,PointStop); // 손절 2. 매수(매도) 진입중 음봉(양봉) 캔들의 크기가 양봉(음봉) 캔들 3개 크기의 합보다 크면 청산하는 수식 부탁드립니다. 3. 2계약 이상 본절청산 수식 부탁드립니다. 2계약 합이 60틱 상승후 하락시 본절
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2017-08-03 15:16:53

안녕하세요 예스스탁입니다. 1 특정진입명 지정하실 때는 아래와 같이 작성하셔야 합니다. 이름이 여러개변 나열해서 추가로 작성하시면 됩니다. input : 손절(50); var : BE1(0),BEcond1(false); var : BE2(0),BEcond2(false); var : SE1(0),SEcond1(false); var : SE2(0),SEcond2(false); if MarketPosition == 1 Then{ if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "매수특정이름1" Then{ BE1 = LatestEntryPrice(0); BECond1 = true; } if BECond1 == true then ExitLong("bx1",AtStop,BE1-PriceScale*손절,"매수특정이름1"); if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "매수특정이름2" Then{ BE2 = LatestEntryPrice(0); BECond2 = true; } if BECond2 == true then ExitLong("bx2",AtStop,BE1-PriceScale*손절,"매수특정이름2"); } else{ BEcond1 = false; BEcond2 = false; } if MarketPosition == -1 Then{ if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "매도특정이름1" Then{ SE1 = LatestEntryPrice(0); SECond1 = true; } if SECond1 == true then ExitLong("sx1",AtStop,SE1+PriceScale*손절,"매도특정이름1"); if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "매도특정이름2" Then{ SE2 = LatestEntryPrice(0); SECond2 = true; } if SECond2 == true then ExitLong("sx2",AtStop,SE1+PriceScale*손절,"매도특정이름2"); } else{ SEcond1 = false; SEcond2 = false; } 2 if MarketPosition == 1 Then{ if C > O Then{ var1 = abs(C-O); var2 = var1[1]; var3 = var2[1]; } if countif(C>O,BarsSinceEntry) >= 3 and C < O and abs(C-O) > var1+var2+var3 Then exitlong(); } if MarketPosition == -1 Then{ if C > O Then{ var4 = abs(C-O); var5 = var4[1]; var6 = var5[1]; } if countif(C<O,BarsSinceEntry) >= 3 and C > O and abs(C-O) > var4+var5+var6 Then ExitShort(); } 3 var : HH(0),LL(0); if MarketPosition == 1 Then{ if CurrentContracts > CurrentContracts[1] Then HH = H; if H > HH Then HH = H; if CurrentContracts >= 2 and HH >= AvgEntryPrice+PriceScale*60 then ExitLong("bx",AtStop,AvgEntryPrice); } if MarketPosition == -1 Then{ if CurrentContracts < CurrentContracts[1] Then LL = L; if L < LL Then LL = L; if CurrentContracts >= 2 and LL <= AvgEntryPrice-PriceScale*60 then ExitShort("sx",AtStop,AvgEntryPrice); } 즐거운 하루되세요 > 우와우와 님이 쓴 글입니다. > 제목 : 수식 문의합니다. > 1.아래 수식에서 특정 이름의 진입만 따로 정해서 손절 할수 있도록 해주세요.. 불가능 하다면.. 2계약 이상에서 총손실을 이용한 손절 방법을 알려주세요.. input : 손절(50); SetStopLoss(PriceScale*손절,PointStop); // 손절 2. 매수(매도) 진입중 음봉(양봉) 캔들의 크기가 양봉(음봉) 캔들 3개 크기의 합보다 크면 청산하는 수식 부탁드립니다. 3. 2계약 이상 본절청산 수식 부탁드립니다. 2계약 합이 60틱 상승후 하락시 본절
프로필 이미지

우와우와

2017-08-03 16:35:10

우와우와 님에 의해 삭제된 답변입니다.