답변완료
다른 보조지표에도 세로선 추가
Input : shortPeriod(60), longPeriod(130), Period(30),val(-0.075),Value2(0.00);
Var : MACDv(0), MACDsig(0),T(0),tl1(0),tl2(0),굵기(1);
var : count(0);
MACDv = MACD(shortPeriod, longPeriod);
MACDsig = ma(MACDv,Period);
if macdsig > macdsig [1] Then
T = 1;
if macdsig <macdsig [1] Then
T = -1;
Plot1(macdsig ,"macdsig ",IFF(T == 1,Red,Blue));
Plot2(-0.075);
plot3(-0.1);
PlotBaseLine1(0, "기준선1");
if CrossDown(MACDsig, val) Then
{
Condition1 = False;
count = 0;
}
if T == 1 and T != T[1] and MACDsig <= val Then
{
Condition1 = true;
TL1 = TL_New_Self(sDate,sTime,-999,sDate,sTime,99999);
TL_SetColor(TL1,Magenta);
TL_SetSize(TL1,6);
TL1 = TL_New(sDate,sTime,-999,sDate,sTime,99999);
TL_SetColor(TL1,Lime);
TL_SetSize(TL1,1);
}
if T == -1 and T != T[1] and macdsig > Value2 Then
{
count = count+1;
if count == 1 Then
{
TL2 = TL_New_Self(sDate,sTime,-999,sDate,sTime,99999);
TL_SetColor(TL2,Blue);
TL_SetSize(TL2,0.5);
TL2 = TL_New(sDate,sTime,-999,sDate,sTime,99999);
TL_SetColor(TL2,Blue);
TL_SetSize(TL2,0.5);
}
}
현재는 본 지표와 차트에 별도 설정으로 세로선이 그어지는데,여기에 다른 지표를 추가했을때, 추가한 다른 모든 지표에도 별도로 세로선.별도 설정 안되면 전체 단일 세로선. 감사합니다.
2022-09-28
1084
글번호 162583
지표
답변완료
문의 드립니다.
아래는 트레이딩 뷰 지표입니다. 이 지표를 전환할 수 있을까요?
항상 답변 감사드립니다.
study("QQE MT4 Glaz-modified by JustUncleL")
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")
//
sQQEx = input(false,title="Show Smooth RSI, QQE Signal crosses")
sQQEz = input(false,title="Show Smooth RSI Zero crosses")
sQQEc = input(false,title="Show Smooth RSI Thresh Hold Channel Exits")
src = input(close,title="RSI Source")
//
//
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
trend := cross(RSIndex, shortband[1])?1:cross(longband[1], RSIndex)?-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 := sQQEx and FastAtrRsiTL< RSIndex ? QQExlong+1 : 0
QQExshort := sQQEx and FastAtrRsiTL> RSIndex ? QQExshort+1 : 0
// Zero cross
QQEzlong = 0, QQEzlong := nz(QQEzlong[1])
QQEzshort = 0, QQEzshort := nz(QQEzshort[1])
QQEzlong := sQQEz and RSIndex>=50 ? QQEzlong+1 : 0
QQEzshort := sQQEz and RSIndex<50 ? QQEzshort+1 : 0
//
// Thresh Hold channel Crosses give the BUY/SELL alerts.
QQEclong = 0, QQEclong := nz(QQEclong[1])
QQEcshort = 0, QQEcshort := nz(QQEcshort[1])
QQEclong := sQQEc and RSIndex>(50+ThreshHold) ? QQEclong+1 : 0
QQEcshort := sQQEc and RSIndex<(50-ThreshHold) ? QQEcshort+1 : 0
// QQE exit from Thresh Hold Channel
plotshape(sQQEc and QQEclong==1 ? RsiMa-50:na , title="QQE XC Over Channel", style=shape.diamond, location=location.absolute, color=olive, transp=0, size=size.small, offset=0)
plotshape(sQQEc and QQEcshort==1 ? RsiMa-50:na , title="QQE XC Under Channel", style=shape.diamond, location=location.absolute, color=red, transp=0, size=size.small, offset=0)
// QQE crosses
plotshape(sQQEx and QQExlong==1 ? FastAtrRsiTL[1]-50:na , title="QQE XQ Cross Over", style=shape.circle, location=location.absolute, color=lime, transp=0, size=size.small,offset=-1)
plotshape(sQQEx and QQExshort==1 ? FastAtrRsiTL[1]-50 : na , title="QQE XQ Cross Under", style=shape.circle, location=location.absolute, color=blue, transp=0, size=size.small,offset=-1)
// Signal crosses zero line
plotshape(sQQEz and QQEzlong==1? RsiMa-50:na, title="QQE XZ Zero Cross Over", style=shape.square, location=location.absolute, color=aqua, transp=0, size=size.small,offset=0)
plotshape(sQQEz and QQEzshort==1? RsiMa-50:na, title="QQE XZ Zero Cross Under", style=shape.square, location=location.absolute, color=fuchsia, transp=0, size=size.small,offset=0)
hcolor = (RsiMa-50)>ThreshHold? green : (RsiMa-50)<0-ThreshHold ? red : orange
plot(FastAtrRsiTL-50,color=blue,transp=0,linewidth=2)
p1=plot(RsiMa-50,color=orange,transp=0,linewidth=2)
plot(RsiMa-50,color=hcolor,transp=50,style=columns)
hZero = hline(0,color=black,linestyle=dashed,linewidth=1)
hUpper= hline(ThreshHold,color=green,linestyle=dashed,linewidth=2)
hLower= hline(0-ThreshHold,color=red,linestyle=dashed,linewidth=2)
fill(hUpper,hLower,color=gray,transp=80)
//EOF
2022-09-29
1064
글번호 162576
지표
답변완료
30분봉
키움검색식 기준으로 말씀드리는거라 비슷하게 만들어주시면 감사하겟습니다..
1. 주가등락률 30분봉 기준 2봉전 종가대비 종가등락률 3%이상 30%이하
2. 30분봉 기분 1봉전 거래량 250000이상
3. 기준봉 거래대금 30분기준 1봉전 거래대금 100억 이상
4. 주가등락률 30분기준 2봉전 종가대비 1봉전 시가등락률 6% 이상
5. 주가비교 30분기준 1봉전 시가< 1봉전 종가
6. 3분봉 기준 20일선 터치(+,- 1%)
7. 틱봉상 5,20,60,120, 240일선 역배열
* 30분봉 대량 거래량 발생 후 기준봉 발생, 다음 30분봉에서 틱봉 역배열, 3분봉 20일선
터치하는 종목 검색하게 해주시면됩니다..
위에 내용이 들어가면서요..
가능하시면 관리종목,거래정지,정리매매.ETF,ETN,초저유동성종목,권리락종목,이상급등종
목,공매도과열종목은 대상에서 제외시켜 주시면 감사하겠습니다.
2022-09-28
1153
글번호 162575
종목검색