커뮤니티

한번더 부탁드립니다

프로필 이미지
성공일지
2014-03-14 10:09:55
130
글번호 73472
답변완료
다음 수식으로 신호가 처음 한번만 발생하게끔 해주세요 첫신호 한번만발생하고 다음은 발생안하는걸로요.. 1.전봉고가 돌파시 매수 --> 진입봉+진입전봉의 저가중 작은 값 하향시 청산 if MarketPosition != 1 and stime < 150000 Then buy("b",AtStop,H+PriceScale); ExitLong("bx",AtStop,Lowest(L,2)[BarsSinceEntry]); 2.전봉고가 돌파시 매수 --> 직전봉의 저가 하향시 청산 if MarketPosition != 1 and stime < 150000 Then buy("b",AtStop,H+PriceScale); ExitLong("bx",AtStop,L); 3.전봉저가 돌파시 매도 --> 진입봉+진입전봉의 고가중 큰 값 상향시 청산 if MarketPosition != -1 and stime < 150000 Then sell("s",AtStop,L-PriceScale); ExitShort("sx",AtStop,Highest(H,2)[BarsSinceEntry]); 4.전봉저가 돌파시 매도 --> 직전봉의 고가 상향시 청산 if MarketPosition != -1 and stime < 150000 Then sell("s",AtStop,L-PriceScale); ExitShort("sx",AtStop,H);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-03-14 14:49:15

안녕하세요 예스스탁입니다. 하루에 한번만 진입신호가 나오게 작성했습니다. 1. var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition != 1 and stime < 150000 Then buy("b",AtStop,H+PriceScale); ExitLong("bx",AtStop,Lowest(L,2)[BarsSinceEntry]); 2. var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition != -1 and stime < 150000 Then sell("s",AtStop,L-PriceScale); ExitShort("sx",AtStop,Highest(H,2)[BarsSinceEntry]); 3. var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition != -1 and stime < 150000 Then sell("s",AtStop,L-PriceScale); ExitShort("sx",AtStop,Highest(H,2)[BarsSinceEntry]); 4. var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition != -1 and stime < 150000 Then sell("s",AtStop,L-PriceScale); ExitShort("sx",AtStop,H); 즐거운 하루되세요 > 성공일지 님이 쓴 글입니다. > 제목 : 한번더 부탁드립니다 > 다음 수식으로 신호가 처음 한번만 발생하게끔 해주세요 첫신호 한번만발생하고 다음은 발생안하는걸로요.. 1.전봉고가 돌파시 매수 --> 진입봉+진입전봉의 저가중 작은 값 하향시 청산 if MarketPosition != 1 and stime < 150000 Then buy("b",AtStop,H+PriceScale); ExitLong("bx",AtStop,Lowest(L,2)[BarsSinceEntry]); 2.전봉고가 돌파시 매수 --> 직전봉의 저가 하향시 청산 if MarketPosition != 1 and stime < 150000 Then buy("b",AtStop,H+PriceScale); ExitLong("bx",AtStop,L); 3.전봉저가 돌파시 매도 --> 진입봉+진입전봉의 고가중 큰 값 상향시 청산 if MarketPosition != -1 and stime < 150000 Then sell("s",AtStop,L-PriceScale); ExitShort("sx",AtStop,Highest(H,2)[BarsSinceEntry]); 4.전봉저가 돌파시 매도 --> 직전봉의 고가 상향시 청산 if MarketPosition != -1 and stime < 150000 Then sell("s",AtStop,L-PriceScale); ExitShort("sx",AtStop,H);