답변완료
여쭤 봅니다
안녕하세요
늘 도움주셔서 감사합니다.
여쭤볼 내용은 시스템 수식을 검색,지표로 바꿔야만 할 거 같습니다.
예를 들면 매도 신호가 나왔을 때 처음부터 확정적이지 않고 화살표내에 색이
채워지지 않은 신호가 나오다가 조건에 맞지 않으면 신호가 다시 사라집니다.
그래서 시스템 신호를 바꿔서 지표나 검색으로 하였을경우 시스템 신호와 똑같이
나올 수 있는지 여쭤보고 싶습니다.
아래 시스템수식을 우선 지표, 검색으로 부탁드립니다.
Input : Length1(4),Length2(18),Length3(60);
Var : TLen1(0),TLen2(0),TLen3(0),Tma1(0),Tma2(0),Tma3(0),T(0);
TLen1 = Ceiling((Length1 + 1) * .5);
TLen2 = Ceiling((Length2 + 1) * .5);
TLen3 = Ceiling((Length3 + 1) * .5);
Tma1 = ma(ma(C, TLen1), TLen1);
Tma2 = ma(ma(C, TLen2), TLen2);
Tma3 = ma(ma(C, TLen3), TLen3);
if Tma1 > Tma1[1] Then
T = 1;
if Tma1< Tma1[1] Then
T = -1;
if T == 1 and T[1] != 1 Then
var1 = 0;
// if T == 1 and C > O and (C+O)/2 >= Tma1 and Tma2 > Tma2[1] and Tma3>Tma3 [1] Then{ 60이평포함
if T == 1 and C > O and (C+O)/2 >= Tma1 and Tma2 >Tma2[1] and Tma1>Tma2 Then{
var1 = var1+1;
if var1 == 1 Then
buy("5매수");
}
if T == -1 and T[1] != -1 Then
var2 = 0;
// if T == -1 and C < O and (C+O)/2 <= Tma1 and Tma2 < Tma2[1] and Tma3 < Tma3[1] Then{ 60이평포함
if T == -1 and C < O and (C+O)/2 <= Tma1 and Tma2 < Tma2[1] and Tma1 < Tma2 Then
{
var2 = var2+1;
if var2 == 1 Then
sell("5매도");
}
2025-02-07
382
글번호 187942
시스템
답변완료
종목검색식 부탁드려요
1. 하단의 수식을 참고하여,
수식1) 이 수식2) 를 돌파할때 종목 검색식 부탁 드립니다.(일봉)
2. 하단의 수식을 참고하여,
수식1) 이, 수식2) 대비(보다) 120% 이상일때(많을때) 종목검색식 부탁드립니다.(일봉)
(단, 몇 % 이상 은 변수처리부탁드려요)
-------
수식1) if( (high==low), 0, volume*(close-low)/(high-low))
수식2) if( (high==low), 0, volume*(high-close)/(high-low))
------------------------------------------------------------------------------------
3. 수식1)이 수식2)를 돌파할때 종목 검색식 부탁드려요(분봉에서 사용)
수식1)
대금=(H+O+L+C)/4*V/100000000;
A=IF(C>O,대금,0);
B=SUM(A);
D=ValueWhen(1,Date(1)!=Date,B(1));
B-D;
수식2)
대금=(H+O+L+C)/4*V/100000000;
A=IF(C<O,대금,0);
B=SUM(A);
D=ValueWhen(1,Date(1)!=Date,B(1));
B-D;
2025-02-10
408
글번호 187939
종목검색
답변완료
문의드립니다.
선생님~
아래의 기존 수식이 일반캔들 -> 지수이동평균 --> 하이킨아시 --> 하이킨아시 지수이평이
라고 하셨잖아요~
일반캔들-> 하이킨아시-> 지수이동평균-> 하이킨아시 -> 하이킨아시 지수이평으로 된 수식
좀 알려주세요~ 기간값은 36으로 해서요. 죄송하고 늘 감사드립니다~
input : len(36),len2(36);
var : oo(0),cc(0),hh(0),ll(0),col(0);
var : haclose(0),haopen(0),hahigh(0),halow(0);
var : o2(0),h2(0),l2(0),c2(0);
oo=ema(open,len);
cc=ema(close,len);
hh=ema(high,len);
ll=ema(low,len);
haclose = (oo+hh+ll+cc)/4;
haopen = iff(IsNaN(haopen[1]) == true, (oo + cc)/2 , (haopen[1] + haclose[1]) / 2);
hahigh = max (hh, max(haopen,haclose));
halow = min (ll, min(haopen,haclose));
o2=ema(haopen, len2);
c2=ema(haclose, len2);
h2=ema(hahigh, len2);
l2=ema(halow, len2);
col=iff(o2>c2 , red , lime);
PlotPaintBar(h2, l2,o2,c2, "heikin smoothed", col);
2025-02-07
480
글번호 187935
강조
답변완료
문의드립니다
A = sum(V);
B = ValueWhen(1, date(1)!=date, A(1) );
D = A - B;
E = ValueWhen(1, date(1)!=date, D(1));
F = E * 30/100;
ValueWhen(1, Crossup(D,F) OR (BarsSince(Date(1)!= Date) == 0 and D>= F), C)
이 지표를 돌파하거나 근접할때 종목검색 부탁드립니다
2025-02-07
487
글번호 187927
종목검색