답변완료
다시한번더 봐주세요
안녕하세요
Upvol-DownVol의 볼륨값 + 캔들의 몸통비률만큼 산출한 거래량
sum = 위 두 값을 합하여 시초가 거래량부터 종가 거래량까지 누적된 값으로 표기되게 부탁드립니다.
늘 좋은시간되시길 기원합니다.
======================================
var : v1(0),sc(0),v2(0),sum(0);
v1 = data1(Upvol-DownVol);
SC = (C-O)/(H-L); //캔들의 몸통비율 산출
v2 = SC*v; //실제 몸통비율만큼 볼륨 값 산출
sum = (v1+v2)/2; //결론적으로 산출 방법이 다른 두 개의 볼륨을 합산, /2 평균값을 표현하고자 합니다.
if CurrentDate == sDate Then
{
Plot1(sum);
Plot2(max(v1,v2));
plot3(max(v1,v2)-abs(v1-v2)*0.236);
plot4(max(v1,v2)-abs(v1-v2)*0.382);
plot5(max(v1,v2)-abs(v1-v2)*0.618);
plot6(max(v1,v2)-abs(v1-v2)*0.764);
plot7(min(v1,v2));
}
2025-07-04
288
글번호 192294
지표
답변완료
검색식 부탁드립니다
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
216
글번호 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
229
글번호 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
252
글번호 192278
지표