커뮤니티
수식을 알려주세요~~
2019-06-25 13:03:05
302
글번호 129726
아래식을 보면 30틱을 상승후에 매수가+3틱에서 청산하는 식으로 되어 있습니다.
그런데 제가 하고 싶은 식은
30틱넘으면 그 시점에서 -27하락할때 청산하는식으로
40틱이 넘으면 40-27 = 진입가+13틱에서 청산하고 싶어요...
그식와
그 반대로 될때의 식(매도진입) 을 알려주세요..
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*30 Then
ExitLong("상승후하락본전청산1",AtStop,EntryPrice+PriceScale*3);
if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*저점틱수1 Then
ExitLong("반등본전청산1",atlimit,lowest(l,BarsSinceEntry)+PriceScale*(저점틱수1-반등틱수1));
답변 1
예스스탁 예스스탁 답변
2019-06-25 15:07:56
안녕하세요
예스스탁입니다.
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*30 Then
ExitLong("상승후하락본전청산1",AtStop,highest(H,BarsSinceEntry)-PriceScale*27);
if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*30 Then
ExitShort("하락후상승본전청산1",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*27);
즐거운 하루되세요
> 영태통닭 님이 쓴 글입니다.
> 제목 : 수식을 알려주세요~~
> 아래식을 보면 30틱을 상승후에 매수가+3틱에서 청산하는 식으로 되어 있습니다.
그런데 제가 하고 싶은 식은
30틱넘으면 그 시점에서 -27하락할때 청산하는식으로
40틱이 넘으면 40-27 = 진입가+13틱에서 청산하고 싶어요...
그식와
그 반대로 될때의 식(매도진입) 을 알려주세요..
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*30 Then
ExitLong("상승후하락본전청산1",AtStop,EntryPrice+PriceScale*3);
if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*저점틱수1 Then
ExitLong("반등본전청산1",atlimit,lowest(l,BarsSinceEntry)+PriceScale*(저점틱수1-반등틱수1));
다음글
이전글