답변완료
검색식 부탁드립니다
Input : 상승률 (1.15);
var : cnt(-1) ;
if c>(c[1]*상승률) && (ma(v,20)*2.5)< v Then
var1= 1;
if var1 == 1 and (max(c[1],o[1]) <= max(c,o)) and (min(c[1],o[1]) <= min(c,o)) then
cnt = 0;
if cnt == 0 then
{
cnt = cnt+1;
if cnt == 1 or cnt == 2 Then
Find(c>1000 && v>100000);
}
조건을 만족하는 1,2번째 종목검색 입니다. 어디가 틀렸을까요?
부탁드립니다.
2025-07-04
192
글번호 192285
종목검색
답변완료
검색식 변환 가능할까요?
키움에서 사용중인 신호인데 검색식으로 변환 될까요?
M1=Ttsf(c,기간1,종류);
M2=ma(c, 기간2,종류);
HH=Valuewhen(1, CrossUp(M1,M2), H);
CrossUp (C, HH) && highest(C(1), 20) < C
지표변수
기간1 20
기간2 20
종류 가중
함수명 Ttsf(가격, 기간)
수식
LinearRegressionvalue(가격,기간,0) + LinearRegressionSlope(가격,기간)
2025-07-03
203
글번호 192283
검색
답변완료
오류 수정 좀 부탁드립니다.
제가 나름 gpt로 코드를 수정해보려 했는데
초보라서 계속 오류만 발생하네요.ㅠㅠ
아래 코드가 무엇이 문제인지 수정 좀 부탁드립니다.
input : atrLen(20), mode(1); # 1: Trending, 2: Scalping
input : smoothingLen(10);
input : showMA(true);
var : priorATR(0), currentATR(0), factor(0);
var : supertrend(0), direction(0), stopPrice(0);
var : hl2(0), atrVal(0);
hl2 = (h + l) / 2;
# 현재 ATR 계산
currentATR = atr(atrLen);
# 전일 ATR 계산
priorATR = atr(atrLen)[1];
# 적응형 배수 설정
if currentATR <= priorATR * 0.25 then
factor = iff(mode = 2, 5.0, 1.0);
else if currentATR <= priorATR * 0.5 then
factor = iff(mode = 2, 3.0, 3.0);
else if currentATR <= priorATR * 0.75 then
factor = iff(mode = 2, 1.5, 4.0);
else
factor = iff(mode = 2, 1.0, 5.0);
# Supertrend 계산 (기초선)
supertrend = hl2 - factor * currentATR;
direction = iff(close > supertrend, 1, -1);
# Stop라인 조정: 슈퍼트렌드와 종가의 중간값을 이동 평균으로 부드럽게 처리
stopPrice = ma((close + supertrend)/2, smoothingLen);
# 최종 슈퍼트렌드 라인 출력
plot1(stopPrice, "Adaptive SuperTrend", iff(direction > 0, red, blue));
# 사용자가 원하는 경우 MA 출력
if showMA then
begin
plot2(ma(close, atrLen), "Base MA", gray);
end
else
begin
NoPlot(2);
end
# Fill Zone 라인 (위/아래 경계선)
var : uptrendStop(0), downtrendStop(0);
uptrendStop = ma((high + supertrend) / 2, atrLen/ 2);
downtrendStop = ma((low + supertrend) / 2, atrLen/ 2);
plot3(iff(direction= 1, uptrendStop, na), "Buy Stop Line", darkgreen);
plot4(iff(direction= -1, downtrendStop, na), "Sell Stop Line", darkred);
2025-07-03
214
글번호 192278
지표
답변완료
부탁드립니다.
8시 45분 굵기2 시가 세로선도 넣어주시면 감사하겠습니다. 굵기2
input : ntime(90000);
var : TL(0);
if (sDate != sDate[1] and sTime >= ntime) or
(sDate == sDate[1] and sTime >= ntime and sTime[1] < ntime) Then
{
#수직선
TL = TL_New(sDate,sTime,0,sDate,sTime,99999999);
TL_SetColor(TL,Gray);
TL_SetSize(TL,1);
var1 = O;
}
2025-07-03
184
글번호 192274
지표