커뮤니티
수정해주세요------------
2012-02-28 14:15:09
429
글번호 48311
if MarketPosition == 0 and MarketPosition(1) == 1 and ExitDate(1) == sdate and IsExitName("b본",1) == true
Then{
if Lowest(L,BarsSinceExit(1)) <= ExitPrice(1)-PriceScale*7 Then
buy("rebuy",AtStop,ExitPrice(1));
}
if MarketPosition == 0 and MarketPosition(1) == -1 and ExitDate(1) == sdate and IsExitName("s본",1) == true
Then{
if Highest(H,BarsSinceExit(1)) >= ExitPrice(1)+PriceScale*7 Then
Sell("resell",AtStop,ExitPrice(1));
}
포지션이 없을때
직전 매수청산명 이 "b본" 인경우 청산후 5틱이상 내렸다가 다시 청산가격에 오면 청산가격에 재매수
포지션이 없을때
직전 매도청산명 이 "s본" 인경우 청산후 5틱이상 올랐다가 다시 청산가격에 오면 청산가격에 재매도
위와같이 해 주셨는데 좀전에 첨부와같이 이상한걸 발견했슴니다
시초가에서 이상한 가격대에서 rebuy 하네요
- 1. 리바이.xls (0.04 MB)
답변 1
예스스탁 예스스탁 답변
2012-02-28 15:51:52
안녕하세요
예스스탁입니다.
전일 마지막봉에 atstop조건이 걸려
다음날 첫봉에 신호가 발생한 것입니다.
아래식으로 적용하시면 됩니다.
if MarketPosition == 0 and MarketPosition(1) == 1 and ExitDate(1) == sdate and IsExitName("b본",1) == true
Then{
if Lowest(L,BarsSinceExit(1)) <= ExitPrice(1)-PriceScale*7 and stime < 150000 Then
buy("rebuy",AtStop,ExitPrice(1));
}
if MarketPosition == 0 and MarketPosition(1) == -1 and ExitDate(1) == sdate and IsExitName("s본",1) == true
Then{
if Highest(H,BarsSinceExit(1)) >= ExitPrice(1)+PriceScale*7 and stime < 150000 Then
Sell("resell",AtStop,ExitPrice(1));
}
즐거운 하루되세요
> leekss1 님이 쓴 글입니다.
> 제목 : 수정해주세요------------
> if MarketPosition == 0 and MarketPosition(1) == 1 and ExitDate(1) == sdate and IsExitName("b본",1) == true
Then{
if Lowest(L,BarsSinceExit(1)) <= ExitPrice(1)-PriceScale*7 Then
buy("rebuy",AtStop,ExitPrice(1));
}
if MarketPosition == 0 and MarketPosition(1) == -1 and ExitDate(1) == sdate and IsExitName("s본",1) == true
Then{
if Highest(H,BarsSinceExit(1)) >= ExitPrice(1)+PriceScale*7 Then
Sell("resell",AtStop,ExitPrice(1));
}
포지션이 없을때
직전 매수청산명 이 "b본" 인경우 청산후 5틱이상 내렸다가 다시 청산가격에 오면 청산가격에 재매수
포지션이 없을때
직전 매도청산명 이 "s본" 인경우 청산후 5틱이상 올랐다가 다시 청산가격에 오면 청산가격에 재매도
위와같이 해 주셨는데 좀전에 첨부와같이 이상한걸 발견했슴니다
시초가에서 이상한 가격대에서 rebuy 하네요