커뮤니티
손절과 재진입
2018-12-11 16:20:20
181
글번호 124338
아래 문의내용입니다
Input : Period(9), LPercent(30), SPercent(70);
Var : value(0);
value = RSI(Period);
# 매수/매도청산
If CrossUP(value, LPercent) Then
{
Buy();
}
문의 :
1. 매수진입 후 SPercent에 도달못하고 LPercent를 하향돌파할 때 손절
2. 손절 후 포지션 없이 있다가 다시 LPercent를 상향돌파시 진입
# 매도/매수청산
If CrossDown(value, SPercent) Then
{
Sell();
}
문의 :
1. 매도진입 후 LPercent에 도달못하고 SPercent를 상향돌파할 때 손절
2. 손절 후 포지션 없이 있다가 다시 SPercent를 하향돌파시 진입
답변 1
예스스탁 예스스탁 답변
2018-12-12 10:23:03
안녕하세요
예스스탁입니다.
Input : Period(9), LPercent(30), SPercent(70);
Var : value(0);
value = RSI(Period);
If CrossUP(value, LPercent) Then
Buy();
If CrossDown(value, LPercent) Then
ExitLong();
If CrossDown(value, SPercent) Then
Sell();
If CrossUP(value, SPercent) Then
ExitShort();
즐거운 하루되세요
> 아이리스 님이 쓴 글입니다.
> 제목 : 손절과 재진입
> 아래 문의내용입니다
Input : Period(9), LPercent(30), SPercent(70);
Var : value(0);
value = RSI(Period);
# 매수/매도청산
If CrossUP(value, LPercent) Then
{
Buy();
}
문의 :
1. 매수진입 후 SPercent에 도달못하고 LPercent를 하향돌파할 때 손절
2. 손절 후 포지션 없이 있다가 다시 LPercent를 상향돌파시 진입
# 매도/매수청산
If CrossDown(value, SPercent) Then
{
Sell();
}
문의 :
1. 매도진입 후 LPercent에 도달못하고 SPercent를 상향돌파할 때 손절
2. 손절 후 포지션 없이 있다가 다시 SPercent를 하향돌파시 진입
이전글