커뮤니티
익절/손절식 부탁드립니다.
2015-03-23 07:39:23
140
글번호 84276
행복한 한주 시작하시기 바랍니다.
직접 작성해보니 잘 안되어서 부탁드립니다.
매수포지션일때
30틱이상 수익이 나면 30틱 익절
20틱이상 30틱미만 수익이 발생하다가 떨어지면 15틱 익절
10틱이상 20틱미만 수익이 나다가 떨어지면 5틱 익절
10틱 미만 수익이 났다가 떨어지면 10틱 손절
매도포지션일때
위 매수일때와 동일.
감사합니다.
답변 1
예스스탁 예스스탁 답변
2015-03-23 16:28:21
안녕하세요
예스스탁입니다.
var : HH(0),LL(0);
if MarketPosition == 1 Then{
HH = highest(H,BarsSinceEntry);
if HH >= EntryPrice+PriceScale*30 Then
ExitLong("BP3",AtStop,EntryPrice+PriceScale*30);
if HH >= EntryPrice+PriceScale*20 and HH < EntryPrice+PriceScale*30 Then
ExitLong("BP2",AtStop,EntryPrice+PriceScale*15);
if HH >= EntryPrice+PriceScale*10 and HH < EntryPrice+PriceScale*20 Then
ExitLong("BP1",AtStop,EntryPrice+PriceScale*5);
if HH < EntryPrice+PriceScale*10 Then
ExitLong("BL",AtStop,EntryPrice-PriceScale*10);
}
if MarketPosition == -1 Then{
LL = Lowest(L,BarsSinceEntry);
if LL <= EntryPrice-PriceScale*30 Then
ExitShort("SP3",AtStop,EntryPrice-PriceScale*30);
if LL <= EntryPrice-PriceScale*20 and LL > EntryPrice-PriceScale*30 Then
ExitShort("SP2",AtStop,EntryPrice-PriceScale*15);
if LL <= EntryPrice-PriceScale*10 and LL > EntryPrice-PriceScale*20 Then
ExitShort("SP1",AtStop,EntryPrice-PriceScale*5);
if LL > EntryPrice-PriceScale*10 Then
ExitShort("SL",AtStop,EntryPrice+PriceScale*10);
}
즐거운 하루되세요
> HI_ma****** 님이 쓴 글입니다.
> 제목 : 익절/손절식 부탁드립니다.
> 행복한 한주 시작하시기 바랍니다.
직접 작성해보니 잘 안되어서 부탁드립니다.
매수포지션일때
30틱이상 수익이 나면 30틱 익절
20틱이상 30틱미만 수익이 발생하다가 떨어지면 15틱 익절
10틱이상 20틱미만 수익이 나다가 떨어지면 5틱 익절
10틱 미만 수익이 났다가 떨어지면 10틱 손절
매도포지션일때
위 매수일때와 동일.
감사합니다.
다음글
이전글