커뮤니티

부탁드립니다------------

프로필 이미지
leekss1
2011-04-27 10:39:46
688
글번호 38014
답변완료

첨부 이미지

input:시간(6); var1 = ma(c,10); if stime >= 091000 and stime < 145000 then { if countif(time-stime <시간,5) == 5 and var1 > var1[1] Then buy(); if countif(time-stime <시간,5) == 5 and var1 < var1[1] Then Sell(); } SetStopLoss(PriceScale*4,PointStop); if MarketPosition == 1 Then{ value1 = highest(H,BarsSinceEntry); if value1 == EntryPrice+PriceScale*7 Then ExitLong("bx5",AtStop,EntryPrice+PriceScale*3); if value1 >= EntryPrice+PriceScale*8 Then ExitLong("bx6",AtStop,EntryPrice+PriceScale*4); } //시간청산-------------------- var11 = int(date/100)-int(date/10000)*100; //월 var22 = date - int(date/100)*100; //일 var33 = DayOfWeek(date); //요일 if var11%3 == 0 and var22 >= 8 and var22 <= 14 and var33 == 4 then { SetStopEndofday(144800); //만 } else { SetStopEndofday(150100); //평 } 7틱이상이익나면 최고이익에서 -3틱 8틱이상이익나면 최고이익에서 -4틱 에 청산 하는것 아닌가요? 그림보면 청산이 안된것 같네요
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-04-27 11:13:34

안녕하세요 예스스탁입니다. 7틱 수익일 경우 진입가+3틱까지 시세가 내려오면 매수청산 8틱 이상의 수익일 경우 진입가+4틱까지 시세가 내려오면 매수청산되게 작성되어 있습니다. 최고가에서 -3틱,-4틱으로 변경한 식입니다. input:시간(6); var1 = ma(c,10); if stime >= 091000 and stime < 145000 then { if countif(time-stime <시간,5) == 5 and var1 > var1[1] Then buy(); if countif(time-stime <시간,5) == 5 and var1 < var1[1] Then Sell(); } SetStopLoss(PriceScale*4,PointStop); if MarketPosition == 1 Then{ value1 = highest(H,BarsSinceEntry); if value1 == EntryPrice+PriceScale*7 Then ExitLong("bx5",AtStop,value1-PriceScale*3); if value1 >= EntryPrice+PriceScale*8 Then ExitLong("bx6",AtStop,value1-PriceScale*4); } //시간청산-------------------- var11 = int(date/100)-int(date/10000)*100; //월 var22 = date - int(date/100)*100; //일 var33 = DayOfWeek(date); //요일 if var11%3 == 0 and var22 >= 8 and var22 <= 14 and var33 == 4 then { SetStopEndofday(144800); //만 } else { SetStopEndofday(150100); //평 } 즐거운 하루되세요 > leekss1 님이 쓴 글입니다. > 제목 : 부탁드립니다------------ > input:시간(6); var1 = ma(c,10); if stime >= 091000 and stime < 145000 then { if countif(time-stime <시간,5) == 5 and var1 > var1[1] Then buy(); if countif(time-stime <시간,5) == 5 and var1 < var1[1] Then Sell(); } SetStopLoss(PriceScale*4,PointStop); if MarketPosition == 1 Then{ value1 = highest(H,BarsSinceEntry); if value1 == EntryPrice+PriceScale*7 Then ExitLong("bx5",AtStop,EntryPrice+PriceScale*3); if value1 >= EntryPrice+PriceScale*8 Then ExitLong("bx6",AtStop,EntryPrice+PriceScale*4); } //시간청산-------------------- var11 = int(date/100)-int(date/10000)*100; //월 var22 = date - int(date/100)*100; //일 var33 = DayOfWeek(date); //요일 if var11%3 == 0 and var22 >= 8 and var22 <= 14 and var33 == 4 then { SetStopEndofday(144800); //만 } else { SetStopEndofday(150100); //평 } 7틱이상이익나면 최고이익에서 -3틱 8틱이상이익나면 최고이익에서 -4틱 에 청산 하는것 아닌가요? 그림보면 청산이 안된것 같네요