커뮤니티

수식 부탁드립니다.

프로필 이미지
상중하
2017-01-06 13:22:39
109
글번호 105634
답변완료
안녕하세요? 수식 질문 드립니다. 1. 아래A는 분할청산인데요 ⓐ.현재는 13틱 수익후 진입가의 +1틱이면 청산식인데요 기존 +13틱수익후 진입가의 +1틱은 유지하면서 +35틱 수익후 진입가의 +20틱의 청산 이조건을 추가 할수 있나요? 가능하다면 부탁드리고요 불가능하면 패스해주세요. ⓑ 1차 20틱 청산후 2차청산은 전봉 종가기준 당일 진폭의 23.6% 조정시 청산. 가능하다면 두가지 식 부탁드립니다. 2. 아래B수식은 지난번에 알려주신건데요 저가 아무리 해봐도 안됨니다. A 수식에 추가해 주시면 감사하겠습니다. 조건은 현재 무포지션이고 직전거래는 손절이나 익절 청산되었고 청산이후 2개봉 이상 경과로 수정 부탁드립니다. (1번의 ⓑ수식에 2번 수식추가 부탁드립니다.) A. if 진입식 Then buy("매수",AtStop,NextBarOpen+PriceScale*1,2);} if MarketPosition == 1 Then{ ExitLong("익절1",AtLimit,EntryPrice+PriceScale*20,"",1,1); ExitLong("익절2",AtLimit,EntryPrice+PriceScale*40); ExitLong("손절",AtStop,EntryPrice-PriceScale*11); if CurrentContracts == MaxContracts and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*13 Then{ ExitLong("본청",AtStop,EntryPrice+PriceScale*1); B. #현재 무포지션이고 직전거래는 손절로 청산되었고 청산이후 2개봉 이상 경과 if MarketPosition ==0 and IsExitName("StopLoss",1) == true and BarsSinceExit(1) >= 2 then
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-01-06 14:33:39

안녕하세요 예스스탁입니다. 1. if 진입식 Then buy("매수",AtStop,NextBarOpen+PriceScale*1,2); if MarketPosition == 1 Then{ ExitLong("익절1",AtLimit,EntryPrice+PriceScale*20,"",1,1); ExitLong("익절2",AtLimit,EntryPrice+PriceScale*40); if CurrentContracts < MaxContracts Then{ ExitLong("매수조정청산",AtStop,C-(dayhigh-daylow)*0.236); } ExitLong("손절",AtStop,EntryPrice-PriceScale*11); if CurrentContracts == MaxContracts and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*13 and highest(H,BarsSinceEntry) < EntryPrice+PriceScale*35 Then ExitLong("본청1",AtStop,EntryPrice+PriceScale*1); if CurrentContracts == MaxContracts and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*35 Then ExitLong("본청2",AtStop,EntryPrice+PriceScale*20); } 2 var : Xcond(false); if TotalTrades > TotalTrades[1] and (IsExitName("익절1",1) == true or IsExitName("익절2",1) == true or IsExitName("손절",1) == true) Then Xcond = True; Else Xcond = false; if MarketPosition ==0 and (Xcond == false or (Xcond == true and BarsSinceExit(1) >= 2)) then { if 진입식 Then{ buy("매수",AtStop,NextBarOpen+PriceScale*1,2); } } if MarketPosition == 1 Then{ ExitLong("익절1",AtLimit,EntryPrice+PriceScale*20,"",1,1); ExitLong("익절2",AtLimit,EntryPrice+PriceScale*40); if CurrentContracts < MaxContracts Then{ ExitLong("매수조정청산",AtStop,C-(dayhigh-daylow)*0.236); } ExitLong("손절",AtStop,EntryPrice-PriceScale*11); if CurrentContracts == MaxContracts and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*13 and highest(H,BarsSinceEntry) < EntryPrice+PriceScale*35 Then ExitLong("본청1",AtStop,EntryPrice+PriceScale*1); if CurrentContracts == MaxContracts and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*35 Then ExitLong("본청2",AtStop,EntryPrice+PriceScale*20); } 즐거운 하루되세요 > 상중하 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다. > 안녕하세요? 수식 질문 드립니다. 1. 아래A는 분할청산인데요 ⓐ.현재는 13틱 수익후 진입가의 +1틱이면 청산식인데요 기존 +13틱수익후 진입가의 +1틱은 유지하면서 +35틱 수익후 진입가의 +20틱의 청산 이조건을 추가 할수 있나요? 가능하다면 부탁드리고요 불가능하면 패스해주세요. ⓑ 1차 20틱 청산후 2차청산은 전봉 종가기준 당일 진폭의 23.6% 조정시 청산. 가능하다면 두가지 식 부탁드립니다. 2. 아래B수식은 지난번에 알려주신건데요 저가 아무리 해봐도 안됨니다. A 수식에 추가해 주시면 감사하겠습니다. 조건은 현재 무포지션이고 직전거래는 손절이나 익절 청산되었고 청산이후 2개봉 이상 경과로 수정 부탁드립니다. (1번의 ⓑ수식에 2번 수식추가 부탁드립니다.) A. if 진입식 Then buy("매수",AtStop,NextBarOpen+PriceScale*1,2);} if MarketPosition == 1 Then{ ExitLong("익절1",AtLimit,EntryPrice+PriceScale*20,"",1,1); ExitLong("익절2",AtLimit,EntryPrice+PriceScale*40); ExitLong("손절",AtStop,EntryPrice-PriceScale*11); if CurrentContracts == MaxContracts and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*13 Then{ ExitLong("본청",AtStop,EntryPrice+PriceScale*1); B. #현재 무포지션이고 직전거래는 손절로 청산되었고 청산이후 2개봉 이상 경과 if MarketPosition ==0 and IsExitName("StopLoss",1) == true and BarsSinceExit(1) >= 2 then