커뮤니티
시스템 수식부탁합니다.
2018-12-17 07:54:28
137
글번호 124481
Input : shortPeriod(5), longPeriod(20);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
# 매수/매도청산
If CrossUP(value1, value2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(value1, value2) Then
{
Sell();
}
위수식에서
매수후 50개봉중의 고가를 돌파후 and 20% 달성시(두조건동시만족시)
보유분의 30%을 정리한다.
매도는반대
감사합니다.
답변 1
예스스탁 예스스탁 답변
2018-12-17 11:15:20
안녕하세요
예스스탁입니다.
Input : shortPeriod(5), longPeriod(20);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
# 매수/매도청산
If CrossUP(value1, value2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(value1, value2) Then
{
Sell();
}
if MarketPosition == 1 and
C > highest(H,50)[1] and C >= EntryPrice*1.20 Then
ExitLong("bx",OnClose,def,"",Floor(max(1,MaxContracts*0.3)),1);
if MarketPosition == -1 and
C < Lowest(H,50)[1] and C <= EntryPrice*0.80 Then
ExitShort("sx",OnClose,def,"",Floor(max(1,MaxContracts*0.3)),1);
즐거운 하루되세요
> 큰바위얼굴 님이 쓴 글입니다.
> 제목 : 시스템 수식부탁합니다.
> Input : shortPeriod(5), longPeriod(20);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
# 매수/매도청산
If CrossUP(value1, value2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(value1, value2) Then
{
Sell();
}
위수식에서
매수후 50개봉중의 고가를 돌파후 and 20% 달성시(두조건동시만족시)
보유분의 30%을 정리한다.
매도는반대
감사합니다.