커뮤니티

문의 드립니다.

프로필 이미지
푸른
2022-12-09 10:34:05
789
글번호 164463
답변완료
var : HH(0),LL(0),MM(0),t(0); HH = DayHigh; LL = DayLow; MM = (HH+LL)/2; if bdate != Bdate[1] Then T = 0; Else { if CrossUp(H,MM) Then T = 1; if CrossDown(L,MM) Then T = -1; if T == 1 and MarketPosition <= 0 Then buy("b1",AtStop,LL+(HH-LL)*0.632); if MarketPosition == 1 and MaxEntries == 1 Then buy("b2",AtStop,LL+(HH-LL)*0.764); if T == -1 and MarketPosition >= 0 Then Sell("s1",AtStop,LL+(HH-LL)*0.368); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s2",AtStop,LL+(HH-LL)*0.323); } 위 수식어에서 손실10틱에 반대 포지션 전환를 추가로 부탁드립니다.
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2022-12-09 14:51:37

안녕하세요 예스스탁입니다. var : HH(0),LL(0),MM(0),t(0); HH = DayHigh; LL = DayLow; MM = (HH+LL)/2; if bdate != Bdate[1] Then T = 0; Else { if CrossUp(H,MM) Then T = 1; if CrossDown(L,MM) Then T = -1; if T == 1 and MarketPosition <= 0 Then buy("b1",AtStop,LL+(HH-LL)*0.632); if MarketPosition == 1 and MaxEntries == 1 Then buy("b2",AtStop,LL+(HH-LL)*0.764); if T == -1 and MarketPosition >= 0 Then Sell("s1",AtStop,LL+(HH-LL)*0.368); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s2",AtStop,LL+(HH-LL)*0.323); if MarketPosition == 1 Then Sell("bs",AtStop,AvgEntryPrice-PriceScale*10); if MarketPosition == -1 Then Buy("sb",AtStop,AvgEntryPrice+PriceScale*10); } 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 문의 드립니다. > var : HH(0),LL(0),MM(0),t(0); HH = DayHigh; LL = DayLow; MM = (HH+LL)/2; if bdate != Bdate[1] Then T = 0; Else { if CrossUp(H,MM) Then T = 1; if CrossDown(L,MM) Then T = -1; if T == 1 and MarketPosition <= 0 Then buy("b1",AtStop,LL+(HH-LL)*0.632); if MarketPosition == 1 and MaxEntries == 1 Then buy("b2",AtStop,LL+(HH-LL)*0.764); if T == -1 and MarketPosition >= 0 Then Sell("s1",AtStop,LL+(HH-LL)*0.368); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s2",AtStop,LL+(HH-LL)*0.323); } 위 수식어에서 손실10틱에 반대 포지션 전환를 추가로 부탁드립니다.
프로필 이미지

푸른

2023-01-24 10:44:01

input : starttime(120000),endtime(60000),n(30); var : Tcond(false),hh(0),h1(0),ll(0),l1(0); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then { Tcond = false; } if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; hh = h; ll = l; h1 = hh[1]; l1 = ll[1]; IF Endtime <= starttime Then { SetStopEndofday(0); } } > 푸른 님이 쓴 글입니다. > 제목 : 문의 드립니다. > var : HH(0),LL(0),MM(0),t(0); HH = DayHigh; LL = DayLow; MM = (HH+LL)/2; if bdate != Bdate[1] Then T = 0; Else { if CrossUp(H,MM) Then T = 1; if CrossDown(L,MM) Then T = -1; if T == 1 and MarketPosition <= 0 Then buy("b1",AtStop,LL+(HH-LL)*0.632); if MarketPosition == 1 and MaxEntries == 1 Then buy("b2",AtStop,LL+(HH-LL)*0.764); if T == -1 and MarketPosition >= 0 Then Sell("s1",AtStop,LL+(HH-LL)*0.368); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s2",AtStop,LL+(HH-LL)*0.323); } 위 수식어에서 손실10틱에 반대 포지션 전환를 추가로 부탁드립니다.