커뮤니티

수식부탁드립니다---------

프로필 이미지
leekss1
2012-02-17 16:30:53
353
글번호 47894
답변완료
input:봉수(8),시간(40); if time-stime[봉수] <시간 and stime >= 90400 then{ if (MarketPosition == 0 or highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*10) and C > C[30] then Sell(); if (MarketPosition == 0 or Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*10) and C < C[30] then buy(); } if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*4 Then exitlong("bx",AtStop,EntryPrice); if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*4 Then ExitShort("sx",AtStop,EntryPrice); SetStopLoss(PriceScale*10,PointStop); //시간청산------------------------------------------------------------ var91 = int(date/100)-int(date/10000)*100; //월 var92 = date - int(date/100)*100; //일 var93 = DayOfWeek(date); //요일 if var91%1 == 0 and var92 >= 8 and var92 <= 14 and var93 == 4 then { SetStopEndofday(144800); } else { SetStopEndofday(150100); } 청산을 추가해주세요 20틱이익후에 5틱밀리거나 40틱이익후에 7틱밀리거나 10 이평이 전봉보다 반대로 꺽이면 청산 수고하세요--------
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-02-17 17:52:33

안녕하세요 예스스탁입니다. input:봉수(8),시간(40); if time-stime[봉수] <시간 and stime >= 90400 then{ if (MarketPosition == 0 or highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*10) and C > C[30] then Sell(); if (MarketPosition == 0 or Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*10) and C < C[30] then buy(); } if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*4 Then exitlong("bx",AtStop,EntryPrice); if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*4 Then ExitShort("sx",AtStop,EntryPrice); SetStopLoss(PriceScale*10,PointStop); //시간청산------------------------------------------------------------ var91 = int(date/100)-int(date/10000)*100; //월 var92 = date - int(date/100)*100; //일 var93 = DayOfWeek(date); //요일 if var91%1 == 0 and var92 >= 8 and var92 <= 14 and var93 == 4 then { SetStopEndofday(144800); } else { SetStopEndofday(150100); } value1 = ma(c,5); if MarketPosition == 1 Then{ if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*20 and highest(H,BarsSinceEntry) < EntryPrice+PriceScale*40 Then exitlong("xl1",AtStop,highest(H,BarsSinceEntry)-PriceScale*5); if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*40 Then exitlong("xl2",AtStop,highest(H,BarsSinceEntry)-PriceScale*7); if value1 < value1[1] and value1[1] > value2[2] Then ExitLong(); } if MarketPosition == -1 Then{ if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*20 and Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*40 Then ExitShort("sl1",AtStop,Lowest(H,BarsSinceEntry)+PriceScale*5); if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*40 Then ExitShort("sl2",AtStop,Lowest(H,BarsSinceEntry)+PriceScale*7); if value1 > value1[1] and value1[1] < value2[2] Then ExitShort(); } 즐거운 하루되세요 > leekss1 님이 쓴 글입니다. > 제목 : 수식부탁드립니다--------- > input:봉수(8),시간(40); if time-stime[봉수] <시간 and stime >= 90400 then{ if (MarketPosition == 0 or highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*10) and C > C[30] then Sell(); if (MarketPosition == 0 or Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*10) and C < C[30] then buy(); } if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*4 Then exitlong("bx",AtStop,EntryPrice); if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*4 Then ExitShort("sx",AtStop,EntryPrice); SetStopLoss(PriceScale*10,PointStop); //시간청산------------------------------------------------------------ var91 = int(date/100)-int(date/10000)*100; //월 var92 = date - int(date/100)*100; //일 var93 = DayOfWeek(date); //요일 if var91%1 == 0 and var92 >= 8 and var92 <= 14 and var93 == 4 then { SetStopEndofday(144800); } else { SetStopEndofday(150100); } 청산을 추가해주세요 20틱이익후에 5틱밀리거나 40틱이익후에 7틱밀리거나 10 이평이 전봉보다 반대로 꺽이면 청산 수고하세요--------