예스스탁
예스스탁 답변
2020-07-13 16:04:39
안녕하세요
예스스탁입니다.
어떤 방식의 합성인지 불분명합니다.
or 조건으로 각 조건만족시 진입하게 작성해 드립니다.
Input : af(0.02), maxAF(0.2) ;
Var : para(0);
Var : value(0);
value = 0;
# 매수 / 매도청산
If CCI(9) > 0 Then
value = 1;
If MACD(12,26) > 0 Then
value = value+1;
If DIPlus(14) > DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) > StochasticsD(12,5,5) Then
value = value+1;
# 매수/매도청산
If value >= 3 Then
{
Buy();
}
value = 0;
# 매도/매수청산
If CCI(9) < 0 Then
value = 1;
If MACD(12,26) < 0 Then
value = value+1;
If DIPlus(14) < DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) < StochasticsD(12,5,5) Then
value = value+1;
If value >= 3 Then
{
Sell();
}
para = csar(af,maxAF);
# 매수/매도청산
If C > para Then
{
Buy();
}
# 매도/매수청산
If C < para Then
{
Sell();
}
if H[1] == highest(H,5)[1] and
H[1] > max(C[1],O[1]) and
V[1] >= 2000 and
C[0] < C[1] Then
exitlong();
if L[1] == Lowest(L,5)[1] and
H[1] > max(C[1],O[1]) and
V[1] >= 2000 and
C[0] > C[1] Then
ExitShort();
if H[2] == highest(H,5)[1] and
H[2] > max(C[2],O[2]) and
V[2] >= 2000 and
C[0] < C[2] Then
exitlong();
if L[2] == Lowest(L,5)[1] and
H[1] > max(C[1],O[1]) and
V[1] >= 2000 and
C[0] > C[1] Then
ExitShort();
if L[1]==LOWEST(L,5) and
C[1]<O[1] and
C[1]>L[1] and
O[0]>L[0] and
C[1]==O[0] and
L[1]==L[0] and
C[0]>O[0] and
v>3500 Then
buy();
if H[1]==highest(H,5) and
C[1]>O[1] and
C[1]<H[1] and
O[0]<H[0] and
C[1]==O[0] and
H[1]==H[0] and
C[0]<O[0] and
v > 3500 Then
sell();
즐거운 하루되세요
> 시그너스 님이 쓴 글입니다.
> 제목 : 기본시스템
> 안녕하세요?
Var : value(0);
value = 0;
# 매수 / 매도청산
If CCI(9) > 0 Then
value = 1;
If MACD(12,26) > 0 Then
value = value+1;
If DIPlus(14) > DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) > StochasticsD(12,5,5) Then
value = value+1;
# 매수/매도청산
If value >= 3 Then
{
Buy();
}
value = 0;
# 매도/매수청산
If CCI(9) < 0 Then
value = 1;
If MACD(12,26) < 0 Then
value = value+1;
If DIPlus(14) < DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) < StochasticsD(12,5,5) Then
value = value+1;
If value >= 3 Then
{
Sell();
}
위 조건에 아래 조건을 합성 부탁 드립니다.
Input : af(0.02), maxAF(0.2) ;
Var : value(0);
value = csar(af,maxAF);
# 매수/매도청산
If C > value Then
{
Buy();
}
# 매도/매수청산
If C < value Then
{
Sell();
}
if H[1] == highest(H,5)[1] and
H[1] > max(C[1],O[1]) and
V[1] >= 2000 and
C[0] < C[1] Then
exitlong();
if L[1] == Lowest(L,5)[1] and
H[1] > max(C[1],O[1]) and
V[1] >= 2000 and
C[0] > C[1] Then
ExitShort();
if H[2] == highest(H,5)[1] and
H[2] > max(C[2],O[2]) and
V[2] >= 2000 and
C[0] < C[2] Then
exitlong();
if L[2] == Lowest(L,5)[1] and
H[1] > max(C[1],O[1]) and
V[1] >= 2000 and
C[0] > C[1] Then
ExitShort();
if L[1]==LOWEST(L,5) and
C[1]<O[1] and
C[1]>L[1] and
O[0]>L[0] and
C[1]==O[0] and
L[1]==L[0] and
C[0]>O[0] and
v>3500 Then
buy();
if H[1]==highest(H,5) and
C[1]>O[1] and
C[1]<H[1] and
O[0]<H[0] and
C[1]==O[0] and
H[1]==H[0] and
C[0]<O[0] and
v > 3500 Then
sell();