커뮤니티
수식 변환 문의 드립니다
2018-06-25 14:03:27
208
글번호 120011
안녕하세요.
키움수식 변환 가능할까요?
1번
A = avg(c, 40, 1) * 1.3 <= C
and avg(거래대금/C, 40, 1) * 6 <= avg(거래대금/C, 2)
and avg(((h-l)/((h+l)/2)), 40, 1) * 1.5 <= avg(((h-l)/((h+l)/2)), 2) and C(1) < C;
B = sum(A);
((B(1) - B(11) == 0 and A == 1) or
(B(4) - B(14) == 3 and A == 1))
2번
A = sum(avg(c, 40, 1) * 1.3 <= C
and avg(거래대금/C, 40, 1) * 6 <= avg(거래대금/C, 2)
and avg(((h-l)/((h+l)/2)), 40, 1) * 1.5 <= avg(((h-l)/((h+l)/2)), 2) and C(1) < C);
B = valuewhen(1, A(1) != A, C);
if(A(1) - A(11) >= 1, B(1) < C and A(1) != A, 0)
답변 1
예스스탁 예스스탁 답변
2018-06-25 14:43:31
안녕하세요
예스스탁입니다.
수식이 어떤 용도의 식인지 모르겠습니다.
조건만족시 매수하는 식으로 작성해 드립니다.
1.
var : AA(0),BB(0);
AA = iff(ma(c, 40)[1] * 1.3 <= C and ma(m/C, 40) * 6 <= ma(m/C, 2) and
ma(((h-l)/((h+l)/2)), 40) * 1.5 <= ma(((h-l)/((h+l)/2)), 2) and C[1] < C,1,0);
B = B + AA;
if ((B[1] - B[11] == 0 and Condition1 == true)
or (B[4] - B[14] == 3 and Condition1 == 1)) Then
buy();
2
var : AA(0),BB(0);
AA = iff(ma(c, 40)[1] * 1.3 <= C and ma(m/C, 40) * 6 <= ma(m/C, 2) and
ma(((h-l)/((h+l)/2)), 40) * 1.5 <= ma(((h-l)/((h+l)/2)), 2) and C[1] < C,1,0);
if AA[1] != AA Then
BB = C;
if AA[1] - AA[11] >= 1 and BB[1] < C and AA[1] != AA Then
buy();
즐거운 하루되세요
> 오토 님이 쓴 글입니다.
> 제목 : 수식 변환 문의 드립니다
> 안녕하세요.
키움수식 변환 가능할까요?
1번
A = avg(c, 40, 1) * 1.3 <= C
and avg(거래대금/C, 40, 1) * 6 <= avg(거래대금/C, 2)
and avg(((h-l)/((h+l)/2)), 40, 1) * 1.5 <= avg(((h-l)/((h+l)/2)), 2) and C(1) < C;
B = sum(A);
((B(1) - B(11) == 0 and A == 1) or
(B(4) - B(14) == 3 and A == 1))
2번
A = sum(avg(c, 40, 1) * 1.3 <= C
and avg(거래대금/C, 40, 1) * 6 <= avg(거래대금/C, 2)
and avg(((h-l)/((h+l)/2)), 40, 1) * 1.5 <= avg(((h-l)/((h+l)/2)), 2) and C(1) < C);
B = valuewhen(1, A(1) != A, C);
if(A(1) - A(11) >= 1, B(1) < C and A(1) != A, 0)
다음글
이전글