첨부 이미지
그림1
답변 수식으로 시뮬레이션 해보았습니다.
연속봉 1만 결과가 나오고
나머지 연속봉2 이상에서는 결과가 나오지 않습니다.
최초 요청수식은 각각의 연속봉에서 결과가 나온 수식입니다.
살펴주십시요.
*****************************************************************************
안녕하세요
예스스탁입니다.
input : ntime(084500);
input: 연속봉(2),연속small(0.00),연속large(1.00);
var : Tcond(False),ii(0);
if data2(Bdate != Bdate[1]) Then
Tcond = False;
if Data2((sdate != sdate[1] and stime >= ntime) or
(sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then
Tcond = true;
ii = 0;
if tcond == true Then
{
ii = ii +1;
if ii >= 연속봉 and data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then
buy();
}
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
> 답변 고맙습니다.
3분봉
입력시간 084500
연속봉 2개 조건으로 시뮬레이션을 해보니
전일 종가에 음봉이 있으면 그것을 포함하다 보니
당일 첫봉에 진입하는 경우가 발생합니다.
금일 발생봉 조건과 시간입력한 이후 봉부터 연속봉을 계산하는 수식이오니
수정 부탁드립니다.
항상 고맙습니다.
*********************************************************************************
안녕하세요
예스스탁입니다.
input : ntime(084800);
input: 연속봉(1),연속small(0.52),연속large(0.56);
var : Tcond(False);
if data2(Bdate != Bdate[1]) Then
Tcond = False;
if Data2((sdate != sdate[1] and stime >= ntime) or
(sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then
Tcond = true;
if Tcond == true and data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then
buy();
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
> 아래 수식에
입력시간부터 봉을 계산하는 수식을 추가하여 주십시요.
*****************************************************************************
input : ntime(084800);
input: 연속봉(1),연속small(0.52),연속large(0.56);
if data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then
buy();
답변 1
예스스탁
예스스탁 답변
2023-08-10 11:07:31
안녕하세요
예스스탁입니다.
수식에 중괄호가 빠져있었습니다.
수정한 식입니다.
input : ntime(084500);
input: 연속봉(2),연속small(0.00),연속large(1.00);
var : Tcond(False,Data2),ii(0,Data2);
if data2(Bdate != Bdate[1]) Then
Tcond = False;
if Data2((sdate != sdate[1] and stime >= ntime) or
(sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then
{
Tcond = true;
ii = 0;
}
if tcond == true Then
{
ii = ii +1;
if ii >= 연속봉 and data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then
buy();
}
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
> 답변 수식으로 시뮬레이션 해보았습니다.
연속봉 1만 결과가 나오고
나머지 연속봉2 이상에서는 결과가 나오지 않습니다.
최초 요청수식은 각각의 연속봉에서 결과가 나온 수식입니다.
살펴주십시요.
*****************************************************************************
안녕하세요
예스스탁입니다.
input : ntime(084500);
input: 연속봉(2),연속small(0.00),연속large(1.00);
var : Tcond(False),ii(0);
if data2(Bdate != Bdate[1]) Then
Tcond = False;
if Data2((sdate != sdate[1] and stime >= ntime) or
(sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then
Tcond = true;
ii = 0;
if tcond == true Then
{
ii = ii +1;
if ii >= 연속봉 and data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then
buy();
}
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
> 답변 고맙습니다.
3분봉
입력시간 084500
연속봉 2개 조건으로 시뮬레이션을 해보니
전일 종가에 음봉이 있으면 그것을 포함하다 보니
당일 첫봉에 진입하는 경우가 발생합니다.
금일 발생봉 조건과 시간입력한 이후 봉부터 연속봉을 계산하는 수식이오니
수정 부탁드립니다.
항상 고맙습니다.
*********************************************************************************
안녕하세요
예스스탁입니다.
input : ntime(084800);
input: 연속봉(1),연속small(0.52),연속large(0.56);
var : Tcond(False);
if data2(Bdate != Bdate[1]) Then
Tcond = False;
if Data2((sdate != sdate[1] and stime >= ntime) or
(sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then
Tcond = true;
if Tcond == true and data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then
buy();
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
> 아래 수식에
입력시간부터 봉을 계산하는 수식을 추가하여 주십시요.
*****************************************************************************
input : ntime(084800);
input: 연속봉(1),연속small(0.52),연속large(0.56);
if data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then
buy();