커뮤니티

문의

프로필 이미지
쿠루드
2014-11-05 15:01:36
153
글번호 80124
답변완료
38833 에러메시지 때문에 재문의 드렸습니다.
지표
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2014-11-05 15:14:07

안녕하세요 예스스탁입니다. 죄송합니다. 다시올려드립니다. 1. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then { buy("b"); ExitLong("bx1",AtStop,C-loss); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then { sell("s"); ExitShort("sx1",AtStop,C+loss); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx11",AtStop,EntryPrice-loss); ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx11",AtStop,EntryPrice+loss); ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 2. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then { buy("b"); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then { sell("s"); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 즐거운 하루되세요 > 쿠루드 님이 쓴 글입니다. > 제목 : 문의 > 38833 에러메시지 때문에 재문의 드렸습니다.
프로필 이미지

쿠루드

2014-11-05 15:25:32

감사합니다. 하나 추가로 수정 부탁하자면.. 손절이나 익절한 해당봉에선 재차 진입을 안하게 수정 부탁드립니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 죄송합니다. 다시올려드립니다. 1. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then { buy("b"); ExitLong("bx1",AtStop,C-loss); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then { sell("s"); ExitShort("sx1",AtStop,C+loss); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx11",AtStop,EntryPrice-loss); ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx11",AtStop,EntryPrice+loss); ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 2. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then { buy("b"); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then { sell("s"); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 즐거운 하루되세요 > 쿠루드 님이 쓴 글입니다. > 제목 : 문의 > 38833 에러메시지 때문에 재문의 드렸습니다.
프로필 이미지

예스스탁 예스스탁 답변

2014-11-05 17:22:45

안녕하세요 예스스탁입니다. 청산된 봉에서는 진입이 되지 않게 했습니다. 현재 진입이 if조건이 만족하면 기존에 텍스트가 if조건이 input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N and (TotalTrades == 0 or (TotalTrades >= 1 and BarsSinceExit(1) != 0)) Then { buy("b"); ExitLong("bx1",AtStop,C-loss); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,2)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N and (TotalTrades == 0 or (TotalTrades >= 1 and BarsSinceExit(1) != 0)) Then { sell("s"); ExitShort("sx1",AtStop,C+loss); ExitShort("sx2",AtLimit,C-Profit); Text_New(sdate,stime,L-PriceScale*2,NumToStr(var1-N,2)); } } if MarketPosition == 1 Then{ ExitLong("bx11",AtStop,EntryPrice-loss); ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx11",AtStop,EntryPrice+loss); ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 즐거운 하루되세요 > 쿠루드 님이 쓴 글입니다. > 제목 : Re : Re : 문의 > 감사합니다. 하나 추가로 수정 부탁하자면.. 손절이나 익절한 해당봉에선 재차 진입을 안하게 수정 부탁드립니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 죄송합니다. 다시올려드립니다. 1. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then { buy("b"); ExitLong("bx1",AtStop,C-loss); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then { sell("s"); ExitShort("sx1",AtStop,C+loss); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx11",AtStop,EntryPrice-loss); ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx11",AtStop,EntryPrice+loss); ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 2. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then { buy("b"); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then { sell("s"); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 즐거운 하루되세요 > 쿠루드 님이 쓴 글입니다. > 제목 : 문의 > 38833 에러메시지 때문에 재문의 드렸습니다.