예스스탁
예스스탁 답변
2025-08-27 09:39:32
안녕하세요
예스스탁입니다.
Inputs : DDD(20150309), LEN(300), HL_ED(60), CC(Black);
Vars : DBN(0,Data1), KK(0,Data1), DD(0,Data1), KK2(0,Data1), DD2(0,Data1),T(0,Data1),mav(0,Data1),v1(0,Data1);
Vars : d2DBN(0,Data2), d2KK(0,Data2), d2DD(0,Data2), d2KK2(0,Data2), d2DD2(0,Data2),d2T(0,Data2),d2mav(0,Data2),d2v1(0,Data2);
If data1(STime >= 070000 And STime[1] < 070000) Then Begin
DBN = 0;
KK = 0;
DD = 0;
KK2 = 0;
DD2 = 0;
T = 0;
End;
DBN = DBN + 1;
If data1(STime >= 073000 And DD == 0) Then Begin
V1 = data1(O);
DD = 1;
KK = DBN;
End;
mav = data1(ma(C,10));
If data2(STime >= 070000 And STime[1] < 070000) Then Begin
d2DBN = 0;
d2KK = 0;
d2DD = 0;
d2KK2 = 0;
d2DD2 = 0;
d2T = 0;
End;
d2DBN = d2DBN + 1;
If data2(STime >= 073000 And d2DD == 0) Then Begin
d2V1 = data2(O);
d2DD = 1;
d2KK = d2DBN;
End;
d2mav = data2(ma(C,10));
if d2DD == 1 Then
{
if data2(CrossUp(C,d2v1)) Then
{
d2T = 1;
}
if data2(CrossDown(C,v1)) Then
{
d2T = -1;
}
}
if DD == 1 and d2dd == 1 Then
{
if data1(CrossUp(C,v1)) Then
{
T = 1;
}
if data1(CrossDown(C,v1)) Then
{
T = -1;
}
if T == 1 and CrossUp(C,mav) and d2t == 1 and Data2(c) > d2mav Then
{
T = 2;
Buy();
}
if T == -1 and CrossDown(C,mav) and d2t == -1 and Data2(c) < d2mav Then
{
T = -2;
Sell();
}
}
즐거운 하루되세요
> 아트정 님이 쓴 글입니다.
> 제목 : 수식 추가
> Inputs : DDD(20150309), LEN(300), HL_ED(60), CC(Black);
Vars : DBN(0), KK(0), DD(0), KK2(0), DD2(0),T(0),mav(0);
If STime >= 070000 And STime[1] < 070000 Then Begin
DBN = 0;
KK = 0;
DD = 0;
KK2 = 0;
DD2 = 0;
T = 0;
End;
DBN = DBN + 1;
If STime >= 073000 And DD == 0 Then Begin
Value2 = O;
DD = 1;
KK = DBN;
var1 = 0;
var2 = 0;
End;
mav = ma(C,10);
if DD == 1 Then
{
if CrossUp(C,value2) Then
{
T = 1;
}
if CrossDown(C,Value2) Then
{
T = -1;
}
if T == 1 and CrossUp(C,mav) Then
{
T = 2;
Buy();
}
if T == -1 and CrossDown(C,mav) Then
{
T = -2;
Sell();
}
}
안녕하세요
위식에 date 2추가 부탁드려요
분봉에 10분봉이 양봉일때 매수
10분봉이 음봉일때 매도
기존식에서 데이터 2조건이 일치할때 매수,도 방식입니다