커뮤니티
수식부탁드립니다------------
2011-03-21 15:02:47
650
글번호 36738
if crossup(daypl,c*익절폭) then{ #목표이익-------
exitlong("익절1");
ExitShort("익절2");
}
if MarketPosition == 1 Then{
ExitLong("15b절",AtStop,EntryPrice-PriceScale*절);
if C < O or ma(C,map) < ma(C,map)[1] Then
ExitLong("bx5",AtLimit,EntryPrice+PriceScale*25);
if Highest(H,BarsSinceEntry) > EntryPrice+PriceScale*25 Then
ExitLong("bx5.",AtLimit,EntryPrice+PriceScale*25);
}
if MarketPosition == -1 Then{
ExitShort("15s절",AtStop,EntryPrice+PriceScale*절);
if C > O or ma(C,map) > ma(C,map)[1] Then
ExitShort("sx5",AtLimit,EntryPrice-PriceScale*(25+1));
if Lowest(L,BarsSinceEntry) < EntryPrice-PriceScale*25 Then
ExitShort("sx5.",AtLimit,EntryPrice-PriceScale*(25+1));
}
에제 첫째부탁은 익절에 도달해도 바로 청산하지말고 이평이 반대방향으로 갈때
청산해야하는데 위식은 익절로 그냥청산하네요
답변 1
예스스탁 예스스탁 답변
2011-03-21 16:32:19
안녕하세요
예스스탁입니다.
if crossup(daypl,c*익절폭) then{ #목표이익-------
if ma(C,map) > ma(C,map)[1] Then
exitlong("익절1");
if ma(C,map) < ma(C,map)[1] Then
ExitShort("익절2");
}
bx5와 sx5를 익절로 생각했습니다.
기존의 내용을 지우시고
위식을 사용하시면 됩니다.
즐거운 하루되세요
> leekss1 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다------------
> if crossup(daypl,c*익절폭) then{ #목표이익-------
exitlong("익절1");
ExitShort("익절2");
}
if MarketPosition == 1 Then{
ExitLong("15b절",AtStop,EntryPrice-PriceScale*절);
if C < O or ma(C,map) < ma(C,map)[1] Then
ExitLong("bx5",AtLimit,EntryPrice+PriceScale*25);
if Highest(H,BarsSinceEntry) > EntryPrice+PriceScale*25 Then
ExitLong("bx5.",AtLimit,EntryPrice+PriceScale*25);
}
if MarketPosition == -1 Then{
ExitShort("15s절",AtStop,EntryPrice+PriceScale*절);
if C > O or ma(C,map) > ma(C,map)[1] Then
ExitShort("sx5",AtLimit,EntryPrice-PriceScale*(25+1));
if Lowest(L,BarsSinceEntry) < EntryPrice-PriceScale*25 Then
ExitShort("sx5.",AtLimit,EntryPrice-PriceScale*(25+1));
}
에제 첫째부탁은 익절에 도달해도 바로 청산하지말고 이평이 반대방향으로 갈때
청산해야하는데 위식은 익절로 그냥청산하네요