커뮤니티
수식부탁드립니다.
2010-02-22 19:16:17
589
글번호 28287
if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) >= EntryPrice +2 Then
exitlong("bx",AtStop,Highest(H,BarsSinceEntry)-ATR(ATRP)*ATRS);
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice -2 Then
ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)+ATR(ATRP)*ATRS);
}
위 식에서 2p를 1%로 고쳐주세요.
감사합니다.
답변 1
예스스탁 예스스탁 답변
2010-02-23 09:06:49
안녕하세요
예스스탁입니다.
if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) >= EntryPrice*1.01 Then
exitlong("bx",AtStop,Highest(H,BarsSinceEntry)-ATR(ATRP)*ATRS);
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice*0.99 Then
ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)+ATR(ATRP)*ATRS);
}
즐거운 하루되세요
> 슬러거03 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다.
> if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) >= EntryPrice +2 Then
exitlong("bx",AtStop,Highest(H,BarsSinceEntry)-ATR(ATRP)*ATRS);
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice -2 Then
ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)+ATR(ATRP)*ATRS);
}
위 식에서 2p를 1%로 고쳐주세요.
감사합니다.
다음글