커뮤니티

수식 부탁드립니다.

프로필 이미지
신나는파파
2015-12-12 23:24:36
117
글번호 93355
답변완료
추가되는 재진입식 부탁드립니다. 감사합니다. 1차매수: 시가-30틱 (1차매수) 2차매수 : 시가-40틱 (2차매수) 손절 : 시가-70 틱에서(일괄손절) --1차매수분,2차매수분 익절(1차,2차분): 1차매수분은 1차매수가격의 +20틱가격에서 1개청산. 2차매수분은 2차매수가격의 +20틱가격에서 1개청산. ------>즉 1,2차 매수건은 20틱만 상승하면 익절.. 3차매수: 1차매수분의 +20틱가격에서 익절청산된경우만 재진입 (재진입가격 시가-30틱) 4차매수: 2차매수분의+20틱가격에서 익절청산된 경우만 재진입조건(재진입가격 시가 -40틱) 손절 : 시가-70 틱에서(일괄손절) --3차매수분,4차매수분 익절(3차,4차매수건): 시가에서 청(1개진입되어 있을경우 또는 2개진입되어있을경우) ------ 시가에서 일괄익절
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-12-14 14:27:23

안녕하세요 예스스탁입니다. var : T1(0),entry(0); if date != date[1] Then{ T1 = TotalTrades; Condition1 = false; Condition2 = false; } entry = TotalTrades-T1; if Entry == 0 then{ if MaxEntries < 2 and L > dayopen-PriceScale*30 and Condition1 == false and stime < 150000 Then buy("b1",atlimit,dayopen-PriceScale*30); if MaxEntries == 1 and L > dayopen-PriceScale*40 and Condition2 == false and stime < 150000 Then buy("b2",atlimit,dayopen-PriceScale*40); if MarketPosition == 1 Then{ ExitLong("BL",AtStop,dayopen-PriceScale*70); ExitLong("bx1",atlimit,EntryPrice+PriceScale*20,"b1"); ExitLong("bx2",atlimit,LatestEntryPrice+PriceScale*20,"b2"); if H >= EntryPrice+PriceScale*20 Then Condition1 = true; if MaxEntries ==2 and H >= LatestEntryPrice+PriceScale*20 Then Condition2 = true; } } if Entry == 1 then{ if MaxEntries < 2 and L > dayopen-PriceScale*30 and Condition1 == true and stime < 150000 Then buy("b3",atlimit,dayopen-PriceScale*30); if MaxEntries < 2 and L > dayopen-PriceScale*40 and Condition2 == true and stime < 150000 Then buy("b4",atlimit,dayopen-PriceScale*40); if MarketPosition == 1 Then{ ExitLong("BL2",AtStop,dayopen-PriceScale*70); ExitLong("BP2",AtLimit,dayopen); } } 즐거운 하루되세요 > 신나는파파 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다. > 추가되는 재진입식 부탁드립니다. 감사합니다. 1차매수: 시가-30틱 (1차매수) 2차매수 : 시가-40틱 (2차매수) 손절 : 시가-70 틱에서(일괄손절) --1차매수분,2차매수분 익절(1차,2차분): 1차매수분은 1차매수가격의 +20틱가격에서 1개청산. 2차매수분은 2차매수가격의 +20틱가격에서 1개청산. ------>즉 1,2차 매수건은 20틱만 상승하면 익절.. 3차매수: 1차매수분의 +20틱가격에서 익절청산된경우만 재진입 (재진입가격 시가-30틱) 4차매수: 2차매수분의+20틱가격에서 익절청산된 경우만 재진입조건(재진입가격 시가 -40틱) 손절 : 시가-70 틱에서(일괄손절) --3차매수분,4차매수분 익절(3차,4차매수건): 시가에서 청(1개진입되어 있을경우 또는 2개진입되어있을경우) ------ 시가에서 일괄익절