답변완료
문의드립니다.
키움 수식인데 변환 좀 부탁드립니다.
제가 하기에는 어려워서요 부탁드립니다.
분봉 일봉 모두 사용 가능용으로 부탁드립니다.
a=adx(11);
b=sum(v*((Pow((C-L),2) - Pow((H-C),2))/(H-L)));
bb=BBandsUp(10,2);
en=EnvelopeUp(10,2);
s=(highest(high,26)+lowest(low,26))/2;
대금=v*(h+l+c+o)/4;
x=sum(v);
y=valuewhen(1,date(1)!=date,x(1));
z=x-y;
전거래량=valuewhen(1,date(1)!=date,z(1));
highest(h,3,1)<=c and ma(c,5)>ma(c,20) and
ma(c,20)>ma(c,60) and bb>en and c>bb and c>en and
a>a(1) and c>s and b>=b(1) and v>v(1)*1.1 and
(대금>2000000000 or sum(v)>전거래량)
2024-08-08
838
글번호 182354
종목검색
답변완료
변환 부탁드립니다.
//@version=4
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © colinmck
study("QQE signals", overlay=true)
RSI_Period = input(14, title='RSI Length')
SF = input(5, title='RSI Smoothing')
QQE = input(4.238, title='Fast QQE Factor')
ThreshHold = input(10, title="Thresh-hold")
src = close
Wilders_Period = RSI_Period * 2 - 1
Rsi = rsi(src, RSI_Period)
RsiMa = ema(Rsi, SF)
AtrRsi = abs(RsiMa[1] - RsiMa)
MaAtrRsi = ema(AtrRsi, Wilders_Period)
dar = ema(MaAtrRsi, Wilders_Period) * QQE
longband = 0.0
shortband = 0.0
trend = 0
DeltaFastAtrRsi = dar
RSIndex = RsiMa
newshortband = RSIndex + DeltaFastAtrRsi
newlongband = RSIndex - DeltaFastAtrRsi
longband := RSIndex[1] > longband[1] and RSIndex > longband[1] ? max(longband[1], newlongband) : newlongband
shortband := RSIndex[1] < shortband[1] and RSIndex < shortband[1] ? min(shortband[1], newshortband) : newshortband
cross_1 = cross(longband[1], RSIndex)
trend := cross(RSIndex, shortband[1]) ? 1 : cross_1 ? -1 : nz(trend[1], 1)
FastAtrRsiTL = trend == 1 ? longband : shortband
// Find all the QQE Crosses
QQExlong = 0
QQExlong := nz(QQExlong[1])
QQExshort = 0
QQExshort := nz(QQExshort[1])
QQExlong := FastAtrRsiTL < RSIndex ? QQExlong + 1 : 0
QQExshort := FastAtrRsiTL > RSIndex ? QQExshort + 1 : 0
//Conditions
qqeLong = QQExlong == 1 ? FastAtrRsiTL[1] - 50 : na
qqeShort = QQExshort == 1 ? FastAtrRsiTL[1] - 50 : na
// Plotting
plotshape(qqeLong, title="QQE long", text="Long", textcolor=color.white, style=shape.labelup, location=location.belowbar, color=color.green, transp=0, size=size.tiny)
plotshape(qqeShort, title="QQE short", text="Short", textcolor=color.white, style=shape.labeldown, location=location.abovebar, color=color.red, transp=0, size=size.tiny)
// Alerts
alertcondition(qqeLong, title="Long", message="Long")
alertcondition(qqeShort, title="Short", message="Short")
2024-08-08
997
글번호 182346
지표
답변완료
거래량 수식 수정
늘 감사합니다
1. 아래 수식에 굵기를 추가해 주세요.
2. 지정시간 까지만 나오게 해 주세요
15시 까지인데 다음날로 이어서 연결되어 나옵니다
당일 분은 당일 분으로 마감하게 해주세요
--------------------
if Bdate != Bdate[1] Then
{
count = 0;
}
if data1(V >= 거래량 and stime >= 090500 and stime < 153000) Then
{
count = count+1;
v1[count] = data1(O);
v2[count] = data1(H);
v3[count] = data1(L);
v4[count] = data1(C);
TL1[count] = TL_New_Self(sDate,sTime,V1[count],sDate,sTime,V1[count]);
TL2[count] = TL_New_Self(sDate,sTime,V2[count],sDate,sTime,V2[count]);
TL3[count] = TL_New_Self(sDate,sTime,V3[count],sDate,sTime,V3[count]);
TL4[count] = TL_New_Self(sDate,sTime,V4[count],sDate,sTime,V4[count]);
TL_SetColor(TL1[count],Green);
TL_SetColor(TL2[count],Red);
TL_SetColor(TL3[count],Blue);
TL_SetColor(TL4[count],Black);
}
Else
{
For cnt = 1 to count
{
TL_SetEnd(TL1[cnt],sDate,sTime,V1[cnt]);
TL_SetEnd(TL2[cnt],sDate,sTime,V2[cnt]);
TL_SetEnd(TL3[cnt],sDate,sTime,V3[cnt]);
TL_SetEnd(TL4[cnt],sDate,sTime,V4[cnt]);
}
}
-----------------------------
너무 잘 쓰고 있습니다.
감사합니다.
2024-08-08
690
글번호 182344
지표