커뮤니티
손절시 반대신호에 진입
2016-07-18 17:50:49
122
글번호 100169
손절시 연속적으로 손절이발생하여 손절발생시 반대신호가 나올때까지 진입하지 않도록 하고 싶읍니다.
Input : Period(14), LPercent(30), SPercent(70);
Var : value(0);
value = RSI(Period);
# 매수/매도청산
If CrossUP(value, LPercent) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(value, SPercent) Then
{
Sell();
}
손절 0.5point
답변 1
예스스탁 예스스탁 답변
2016-07-18 19:10:44
안녕하세요
예스스탁입니다.
Input : Period(14), LPercent(30), SPercent(70),손절(0.5);
Var : value(0);
value = RSI(Period);
If CrossUP(value, LPercent) Then
Buy();
If CrossDown(value, SPercent) Then
Sell();
if MarketPosition == 1 Then
sell("bs",AtStop,EntryPrice-손절);
if MarketPosition == -1 Then
Buy("sb",AtStop,EntryPrice+손절);
즐거운 하루되세요
> 호테 님이 쓴 글입니다.
> 제목 : 손절시 반대신호에 진입
> 손절시 연속적으로 손절이발생하여 손절발생시 반대신호가 나올때까지 진입하지 않도록 하고 싶읍니다.
Input : Period(14), LPercent(30), SPercent(70);
Var : value(0);
value = RSI(Period);
# 매수/매도청산
If CrossUP(value, LPercent) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(value, SPercent) Then
{
Sell();
}
손절 0.5point
다음글
이전글