커뮤니티

문의드립니다.

프로필 이미지
호시우보
2017-03-31 13:44:03
190
글번호 108395
답변완료
물타기식 부탁드립니다. 아래 진입식에 다음 조건을 추가해 주시면 감사하겠습니다. 1- 진입되었으면 컷이나 익절되기 전에는 다음 신호가 발생치 않도록 바랍니다. 2- 진입후 -0.5에 2계약 추가 진입(물타기) 3- 또 추가하락시 진입가 대비 -1.0에 4계약 추가 진입 4- 추가 계약 주문이후 컷은 진입가 대비 -0.7에 전부 청산 5- 익절은 항상 0.7에다 둡니다. if stime >= 090000 and stime < 153000 and T == 1 Then{ if L >= var2+PriceScale*2 Then Bcond = true; if Bcond == true and C > value3 then buy("b",atlimit,var1); } if stime >= 090000 and stime < 153000 and T == -1 Then{ if H <= var2-PriceScale*2 Then Scond = true; if Scond == true and C < value3 then sell("s",atlimit,var1); } 감사합니다......
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-04-03 18:16:39

안녕하세요 예스스탁입니다. var : T(0),Bcond(false),Scond(False); if stime >= 090000 and stime < 153000 and T == 1 Then{ if L >= var2+PriceScale*2 Then Bcond = true; if MarketPosition == 0 and Bcond == true and C > value3 then buy("b1",atlimit,var1); if MarketPosition == 1 Then{ ExitLong("bp",AtLimit,AvgEntryPrice+0.7); ExitLong("bl",AtStop,AvgEntryPrice-0.7); if MaxEntries == 1 Then buy("b2",AtStop,EntryPrice-0.5,2); if MaxEntries == 2 Then buy("b3",AtStop,EntryPrice-1.0,4); } } if stime >= 090000 and stime < 153000 and T == -1 Then{ if H <= var2-PriceScale*2 Then Scond = true; if MarketPosition == 0 and Scond == true and C < value3 then sell("s1",atlimit,var1); if MarketPosition == -1 Then{ ExitShort("sp",AtLimit,AvgEntryPrice-0.7); ExitShort("sl",AtStop,AvgEntryPrice+0.7); if MaxEntries == 1 Then sell("s2",AtStop,EntryPrice-0.5,2); if MaxEntries == 2 Then sell("s3",AtStop,EntryPrice-1.0,4); } } 즐거운 하루되세요 > 호시우보 님이 쓴 글입니다. > 제목 : 문의드립니다. > 물타기식 부탁드립니다. 아래 진입식에 다음 조건을 추가해 주시면 감사하겠습니다. 1- 진입되었으면 컷이나 익절되기 전에는 다음 신호가 발생치 않도록 바랍니다. 2- 진입후 -0.5에 2계약 추가 진입(물타기) 3- 또 추가하락시 진입가 대비 -1.0에 4계약 추가 진입 4- 추가 계약 주문이후 컷은 진입가 대비 -0.7에 전부 청산 5- 익절은 항상 0.7에다 둡니다. if stime >= 090000 and stime < 153000 and T == 1 Then{ if L >= var2+PriceScale*2 Then Bcond = true; if Bcond == true and C > value3 then buy("b",atlimit,var1); } if stime >= 090000 and stime < 153000 and T == -1 Then{ if H <= var2-PriceScale*2 Then Scond = true; if Scond == true and C < value3 then sell("s",atlimit,var1); } 감사합니다......