커뮤니티
문의합니다
2013-11-04 12:19:00
167
글번호 69174
안녕하세요
늘 감사합니다
트레일스탑에서 진입과 동시에 스탑이 나오는 경우가 종종 발생합니다
원인을 잘모르겟어요
var : HH(0),LL(0);
#손절
if stime >= 090000 Then{
If IsEntryName("Bv1.1") == true or IsEntryName("Sv1.1R") == true Then
HH = highest(H,BarsSinceEntry);
if HH >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,HH-(HH-EntryPrice)*(DropPercent/100));
}
#손절
if stime >= 090000 Then{
if IsEntryName("Sv1.1") == true or IsEntryName("Bv1.1R") == true Then
LL = Lowest(L,BarsSinceEntry);
if LL <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,LL+(EntryPrice-LL)*(DropPercent/100));
}
손절선은 20틱 수익이후 70% 하락입니다
확인 부탁드립니다
감사합니다
답변 1
예스스탁 예스스탁 답변
2013-11-05 11:01:24
안녕하세요
예스스탁입니다.
현재 포지션 상태를 나타내는 내용을 추가해 주시기 바랍니다.
var : HH(0),LL(0);
#손절
if stime >= 090000 and MarketPosition == 1 Then{
If IsEntryName("Bv1.1") == true or IsEntryName("Sv1.1R") == true Then
HH = highest(H,BarsSinceEntry);
if HH >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,HH-(HH-EntryPrice)*(DropPercent/100));
}
#손절
if stime >= 090000 and MarketPosition == -1 Then{
if IsEntryName("Sv1.1") == true or IsEntryName("Bv1.1R") == true Then
LL = Lowest(L,BarsSinceEntry);
if LL <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,LL+(EntryPrice-LL)*(DropPercent/100));
}
즐거운 하루되세요
> 파티아 님이 쓴 글입니다.
> 제목 : 문의합니다
> 안녕하세요
늘 감사합니다
트레일스탑에서 진입과 동시에 스탑이 나오는 경우가 종종 발생합니다
원인을 잘모르겟어요
var : HH(0),LL(0);
#손절
if stime >= 090000 Then{
If IsEntryName("Bv1.1") == true or IsEntryName("Sv1.1R") == true Then
HH = highest(H,BarsSinceEntry);
if HH >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,HH-(HH-EntryPrice)*(DropPercent/100));
}
#손절
if stime >= 090000 Then{
if IsEntryName("Sv1.1") == true or IsEntryName("Bv1.1R") == true Then
LL = Lowest(L,BarsSinceEntry);
if LL <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,LL+(EntryPrice-LL)*(DropPercent/100));
}
손절선은 20틱 수익이후 70% 하락입니다
확인 부탁드립니다
감사합니다
다음글
이전글