커뮤니티
간단한 질문.
2010-12-22 21:33:10
699
글번호 34513
input : point1(0.2),point2(0.5);
if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) >= EntryPrice+point1 Then
ExitLong("bx1",AtStop,highest(H,BarsSinceEntry)-point2);
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice-point1 Then
ExitShort("sx1",AtStop,Lowest(L,BarsSinceEntry)+point2);
}
이수식과
setstoptrailling(0.5,0.2.point)랑 틀린건가요?
틀리다면 알기쉬운 설명도 부탁드려요.
성실한 답변에 늘 감사드립니다.
답변 1
예스스탁 예스스탁 답변
2010-12-23 10:47:39
안녕하세요
예스스탁입니다.
동일하게 0.2이상 수익후에 0.5하락하면 청산하는 개념의 식입니다.
다만 setstoptrailling를 사용하시면 하나의 봉에서 0.2수익후 0.5하락하는 움직임을
파악하지만 풀어서 작성한 식은 하나의 봉에서의 움직임은 파악할 수 없습니다.
진입이후에 최고가와 최저가를 기준으로 수익을 판단한 후에
수익조건이 만족하면 다음봉부터 0.5하락을 감시합니다.
즐거운 하루되세요
> 휴식 님이 쓴 글입니다.
> 제목 : 간단한 질문.
> input : point1(0.2),point2(0.5);
if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) >= EntryPrice+point1 Then
ExitLong("bx1",AtStop,highest(H,BarsSinceEntry)-point2);
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice-point1 Then
ExitShort("sx1",AtStop,Lowest(L,BarsSinceEntry)+point2);
}
이수식과
setstoptrailling(0.5,0.2.point)랑 틀린건가요?
틀리다면 알기쉬운 설명도 부탁드려요.
성실한 답변에 늘 감사드립니다.
다음글
이전글