커뮤니티
수식 문의 드립니다.
2016-12-08 09:50:51
97
글번호 104757
매수또는 매도시 수익틱 25틱시 청산 조건으로
진입후 10틱이상 갔다가 하락시 5틱 수익일때 청산
진입후 10틱이상 안가고 하락시 -15틱 손절
이렇게되 될까요?
답변 1
예스스탁 예스스탁 답변
2016-12-08 13:46:26
안녕하세요
예스스탁입니다.
if MarketPosition == 1 Then{
ExitLong("bx1",atlimit,EntryPrice+PriceScale*25);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*10 Then
ExitLong("bx2",AtStop,EntryPrice+PriceScale*5);
Else
ExitLong("bx3",AtStop,EntryPrice-PriceScale*15);
}
if MarketPosition == -1 Then{
ExitShort("sx1",atlimit,EntryPrice-PriceScale*25);
if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*10 Then
ExitShort("sx2",AtStop,EntryPrice-PriceScale*5);
Else
ExitShort("sx3",AtStop,EntryPrice+PriceScale*15);
}
즐거운 하루되세요
> 디얼디어 님이 쓴 글입니다.
> 제목 : 수식 문의 드립니다.
> 매수또는 매도시 수익틱 25틱시 청산 조건으로
진입후 10틱이상 갔다가 하락시 5틱 수익일때 청산
진입후 10틱이상 안가고 하락시 -15틱 손절
이렇게되 될까요?