답변완료
문의드립니다.
안녕하세요. 운영자님
아래 지표는 예전에 요청드려 받은 결과인데 추가적으로 요청드릴 사항이 있어 부탁드립니다.
우선 캔들 하나하나에 대한 Cumulative Volume Delta (CVD) 을 체크하기 위해 지표를 캔들형태로 만들고 % 값을 캔들에 나타나도록 가능한지 문의드립니다. 글로는 제가 요청드릴 사항이 이해되지 않으실 수 있어서 관련 동영상 링크롤 보시면서 가능하신지 봐 주셨으면 합니다.
https://www.youtube.com/watch?v=BHYta_mQFuk&t=2209s
=======================================================================================
안녕하세요
예스스탁입니다.
input: cumulation_length(14);
var : upper_wick(0),lower_wick(0),spread(0),body_length(0);
var : percent_upper_wick(0),percent_lower_wick(0),percent_body_length(0);
var : buying_volume(0),selling_volume(0);
var : cumulative_buying_volume(0),cumulative_selling_volume(0);
var : volume_strength_wave(0),ema_volume_strength_wave(0),cumulative_volume_delta(0);
upper_wick = iff(close>open , high-close , high-open);
lower_wick = iff(close>open , open-low , close-low);
spread = high-low;
body_length = spread - (upper_wick + lower_wick);
percent_upper_wick = upper_wick/spread;
percent_lower_wick = lower_wick/spread;
percent_body_length = body_length/spread;
buying_volume = iff(close>open , (percent_body_length + (percent_upper_wick + percent_lower_wick)/2)*volume , ((percent_upper_wick + percent_lower_wick)/2) * volume);
selling_volume = iff(close<open , (percent_body_length + (percent_upper_wick + percent_lower_wick)/2)*volume , ((percent_upper_wick + percent_lower_wick)/2) * volume);
cumulative_buying_volume = ema(buying_volume,cumulation_length);
cumulative_selling_volume = ema(selling_volume,cumulation_length);
volume_strength_wave = iff(cumulative_buying_volume > cumulative_selling_volume , cumulative_buying_volume , cumulative_selling_volume);
ema_volume_strength_wave = ema(volume_strength_wave , cumulation_length);
cumulative_volume_delta = cumulative_buying_volume - cumulative_selling_volume;
plot1(cumulative_buying_volume,"cumulative_buying_volume",green);
plot2(cumulative_selling_volume,"cumulative_selling_volume",red);
plot3(ema_volume_strength_wave,"ema_volume_strength_wave",gray);
plot4(cumulative_volume_delta,"cumulative_volume_delta",iff(cumulative_volume_delta>0 ,green , red));
즐거운 하루되세요
> 고박사122 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 안녕하세요. 운영자님
이번에 문의드릴 사항은 Cumulative Volume Delta (CVD) 지표를 구현할 수 있는지 문의 드립니다.
Cumulative Volume Delta (CVD) = 시장가 매수 - 시장가 매도
수고하세요.
2025-08-14
348
글번호 193270
지표
답변완료
문의드립니다.
안녕하세요
항상 친절한 답변 감사드립니다.
아래의 서식에 추가 조건을 부탁드립니다.
1. 추가조건
가. MACD가 MACD signal선보다 위에 있을때(상향돌파하여 유지중) 매수만 진입
나. MACD가 MACD signal선보 아래에 있을때(하향이탈하여 유지중) 매도만 진입
MACD 값을 변경할 수 있게 INPUT으로 넣어주세요
# KOSPI 선물 10분봉
input: tt(150000),당일진입횟수(3);
Input: chkP(3), reChkP(20), stopChk(25);
var: HH(0), LL(0), BS(0), SS(0);
var: dayChk(0);
var : TotalCount(0),PreDay(0),DayEntry(0);
TotalCount = TotalTrades;
if Bdate != Bdate[1] Then
PreDay = TotalCount[1];
DayEntry = (TotalCount-PreDay)+IFF(MarketPosition != 0,1,0);
if BarIndex == 0 then ClearDebug();
if dayindex == chkP then
{
HH = Highest(Max(C,O), chkP+1);
LL = Lowest(Min(C,O), chkP+1);
#if date == 20240612 then messageLog("--HH %.2f, LL: %.2f", HH, LL);
}
#if High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then messageLog("HH %.2f, High: %.2f", HH, High);
if DayIndex >= chkP
# and Time < 95000
and sDate == NextBarSdate
and EntryDate(0) < Date
and EntryDate(1) < Date
and DayEntry < 당일진입횟수
Then {
Buy("B1", AtStop, HH);
Sell("S1", AtStop, LL);
}
//if dayChk == 0 and High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then {
// messageLog("HH %.2f, High: %.2f", HH, High);
// dayChk = 1;
//}
if ExitDate(1) == Date
and Time < 150000
// and LatestEntryName(1) != "B2"
// and LatestEntryName(1) != "S2"
// and LatestEntryName(0) != "B2"
// and LatestEntryName(0) != "S2"
Then
{
if DayIndex < reChkP Then
{
HH = Highest(Max(C,O), DayIndex+1);
LL = Lowest(Min(C,O), DayIndex+1);
}
Else
{
HH = Highest(Max(C,O), reChkP);
LL = Lowest(Min(C,O), reChkP);
}
if DayEntry < 당일진입횟수 Then
{
Buy("B2", AtStop, HH);
Sell("S2", AtStop, LL);
}
}
if (MarketPosition == 1) Then {
if DayIndex < stopChk Then {
BS = Lowest(Min(C,O), DayIndex+1);
}
Else {
BS = Lowest(Min(C,O), stopChk);
}
ExitLong("EL", AtStop, BS);
}
if (MarketPosition == -1) Then {
if DayIndex < stopChk Then {
SS = Highest(Max(C,O), DayIndex+1);
}
Else {
SS = Highest(Max(C,O), stopChk);
}
#messageLog(" SS %.2f", SS);
ExitShort("ES", AtStop, SS);
}
var : month(0),nday(0),week(0),X(False);
month = int(date/100)-int(date/10000)*100;
nday = date - int(date/100)*100;
Week = DayOfWeek(date);
#만기일
if (month%3 == 0 and nday >= 8 and nday <= 14 and week == 4) then
{
X = true;
SetStopEndofday(151500);
}
Else#만기일아닐때
{
X = False;
SetStopEndofday(152000);
}
2025-08-14
285
글번호 193263
지표
답변완료
종목검색 부탁드립니다.
안녕하세요?
다음의 수식을 검색식으로 부탁드립니다.
감사합니다..
aa=지수평균((highest(종가,20)+highest(종가,40))/2,40)+
if(종가<시가,1-((종가-시가)/highest((종가-
시가),40)),1)*0.5*stdev((저가+고가+종가)/3,40);
Crossup(C ,aa)
and
V > V(1) *2
and
Valuewhen(1,CrossUP(C,BbandsUP(30,1.8)),C)
and
bb=(H(1)+L(1)+C(1))/3+H(1)-L(1);
Crossup(C ,bb*1.02)
and
CrossUp(Trix(6),eavg(Trix(6),9))
2025-08-14
237
글번호 193260
종목검색
답변완료
추가식
Inputs : Period(20), Sence(1.5), CC_DN(Yellow);
Vars:
VLineUp(0),
VLineDn(0),
HHighest(0),
LLowest(0),
JustChanged(FALSE),
VLine(0), DBN(0);
Array:
Highs[35](0),
Lows[35](0),
RRange[35](0),
UpWave[1](FALSE),
DnWave[1](FALSE);
var : t(0);
If STime == 180000 Then
DBN = 0;
DBN = DBN + 1;
Var1 = Period;
Var2 = Var1 - 1;
Var3 = Var1 - 2;
Var5 = Sence;
Var6 = H-L;
JustChanged = FALSE;
if CurrentBar <= Var2 then begin
Highs[CurrentBar] = Close;
Lows[CurrentBar] = Close;
RRange[CurrentBar] = (H-L) /2;
end;
if CurrentBar == Var1 then begin
if Highs[Var2] >= Highs[Var3] then begin
UpWave[1] = TRUE;
HHighest = Highs[Var2];
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
#Plot1(VLineUp,"VLineUp");
end;
if Highs[Var2] < Highs[Var3] then begin
DnWave[1] = TRUE;
LLowest = Lows[Var2];
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
#Plot2(VLineDn,"VLineDn");
end;
end;
if CurrentBar > Var1 then begin
if DnWave[1] and Close > VLineDn then begin
DnWave[1] = FALSE;
UpWave[1] = TRUE;
JustChanged = TRUE;
HHighest = Close;
LLowest = 0;
end;
if UpWave[1] and Close < VLineUp and JustChanged == FALSE then begin
UpWave[1] = FALSE;
DnWave[1] = TRUE;
JustChanged = TRUE;
LLowest = Close;
HHighest = 0;
end;
if JustChanged == FALSE then begin
if Close > HHighest then
HHighest = Close;
else if Close < LLowest then
LLowest = Close;
end;
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
if UpWave[1] then t = 1;
else if DnWave[1] then t = -1;
end;
if t == 1 and t != t[1] and c > ma(c,170) Then
Buy();
if t == -1 and t != t[1] and c < ma(c,170) Then
Sell();
안녕하세요
위식에서 참조 추가식 부탁드립니다
date 2 참조
데이텅 2 일치할때
5분봉이 양선일때 매수
5분봉이 음선일때 매도
2025-08-14
213
글번호 193253
시스템