답변완료
문의 드립니다.
//@version=2
study("Breakout",overlay=true)
res1 = input(title="Close Time Frame", type=resolution, defval="D")
cld=security(tickerid, res1, close[1])
opd=security(tickerid,res1, open[1])
tu=(cld +opd)/2
plot( tu, "Breakout",color=black ,style=line,linewidth=2,transp=0)
트레이딩뷰 지표인데 예스로 좀 바꿔주세요.
2024-07-28
837
글번호 181948
지표
답변완료
예스랭귀지의 종목검색식으로 만들어 주시면 감사하겠습니다
아래 수식은 키움의 신호수식입니다.
AA=avg(c,5);
BB=avg(c,10);
CC=avg(c,20);
DD=valuewhen(1,AA>BB && BB>CC && AA>CC, C);
EE=valuewhen(1,DD(2)<DD(1) && DD(1)>DD, DD(1));
FF=valuewhen(1,crossup(AA,EE), AA);
CROSSUP(C, FF)
이수식의 FF 라인모양에 따라 3가지로 나눌수 있는데
1. FF라인이 꺽여서 아래로 내려오고, 그 라인을 종가(C)가 돌파할때
2. FF라인이 꺽여 위로 올라가고, 그 라인을 종가(C)가 돌파할때
3.FF라인이 수평일때 그 라인을 종가(C)가 돌파할때 입니다.
검색식을 몇번을 시도했으나 만들수가 없네요
위 3가지 FF형태에 따라서 종가(C)가 돌파하는
각각의 에스종목검색식 3가지를 부탁드립니다.
매번 너무 감사드립니다.
2024-07-27
653
글번호 181947
종목검색
답변완료
트레이딩뷰의 zlsma trend 수식인데 조건검색식으로 만들고 싶어 문의드립니다
//@version=5
indicator(title='ZLSMA Trend- Zero Lag SMA Trend', shorttitle='ZLSMA Trend', overlay=true, timeframe='')
length = input(title='Length', defval=32)
offset = input(title='Offset', defval=0)
src = input(close, title='Source')
lsma = ta.linreg(src, length, offset)
lsma2 = ta.linreg(lsma, length, offset)
eq = lsma - lsma2
zlsma = lsma + eq
zcolorchange = input(title='Change Color ?', defval=true)
zColor = zcolorchange ? zlsma > zlsma[1] ? color.blue : color.red : color.yellow
plot(zlsma, title='LagF', linewidth=4, color=zColor, transp=0)
2024-07-27
885
글번호 181946
종목검색
답변완료
점찍기 좀 부탁 드립니다.
* 안녕 하세요^^
* 아래 수식에서 스톡 케스트 K선이 기준선 20을 UP 할때 가격이
20이평선 가격 보다
10틱 보다 더 작으면 점찍기( " ●" ) 좀 부탁 드립니다.
##
Input : Period(12), Period1(5), Period2(5);
Var : value1(0), value2(0), value3(0);
value1 = StochasticsK(Period, Period1);
value2 = StochasticsD(Period, Period1, Period2);
var : TL04(0);
if CrossDown( Var29 , Var30 ) AND Var30 > 0.4 Then
{
TL04 = Text_New(sdate,stime,H + PriceScale*2,"●");
Text_SetStyle(TL04,2,2);
Text_SetColor(TL04, Rgb(0,0,0) );
Text_SetSize(TL04,20);
}
* 수고 하세요
2024-07-28
911
글번호 181943
지표
답변완료
수식으로 표현해주세요.
추세선 기준 고점을 잡을려고 합니다.
if h <= h[1] && h[1] > h[2] then
{ SHL = L[1];
if CrossDown(l,l[1]) Then
{T = 1;
hd = sDate[1];
hT = sTime[1];
hh = H[1]; };
}
if T == 1 Then
{ T=2;
SHD[0] = hd;
SHT[0] = ht;
SHV[0] = hh;
TL = TL_New(SLD[0],SLT[0],SLV[0],SHD[0],SHT[0],SHV[0]);
}
===============
// h[1],l[1]이 기준봉이 되고 만약 기준봉 이후에 오는 잉태형 봉이 오면 추세가 없어서 생략하고, 그 후에 오는 봉의 저점이 기준봉 저점을 하락 돌파하면 그때 고점 확정 sdate stime 입력 hd = sDate[2]; hT = sTime[2]; , 만약 기준봉 저점을 하락 돌파 못하고 기준봉 고점을 상승돌파하면 고점 확정 실패로 보고 무시.
문제는 기준봉이후 기준봉의 고점 또는 저점을 하락돌파도 상승돌파도 못하는 잉태형 봉이 계속 나올 경우 계속 무시해야 하는데
hd = sdate[?] 몇일 만에 하락돌파했는지 날 수 ? 입력해야 합니다.
for 문으로 돌려서 하면 될 것 같은데
// 넉넉하게 10일 정도 안에는 상향 또는 하향 돌파할 태니
for cnt 1 to 10
cnt = cnt +1
if CrossDown(l,l[cnt])
{T = 1;
hd = sDate[cnt];
hT = sTime[cnt];
hh = H[cnt]; };
// 10거래일 전이라도 상향 또는 하향 돌파하면 종료
exit if CrossDown(l,l[기준봉일]) or crossup(h,h[기준봉일])
도와 주세요. 풀어쓰면 이렇게 될까요.
if h <= h[1] && h[1] > h[2] then
{ SHL = L[1];
if CrossDown(l,l[1]) Then
{T = 1;
hd = sDate[1];
hT = sTime[1];
hh = H[1]; };
if CrossDown(l,l[2]) Then
{T = 1;
hd = sDate[2];
hT = sTime[2];
hh = H[2]; };
exit if CrossDown(l,l[기준봉일]) or crossup(h,h[기준봉일])
if CrossDown(l,l[3]) Then
{T = 1;
hd = sDate[3];
hT = sTime[3];
hh = H[3]; };
exit if CrossDown(l,l[기준봉일]) or crossup(h,h[기준봉일])
if CrossDown(l,l[4]) Then
{T = 1;
hd = sDate[4];
hT = sTime[4];
hh = H[4]; };
exit if CrossDown(l,l[기준봉일]) or crossup(h,h[기준봉일])
}
모르겠네요.
2024-07-27
926
글번호 181942
지표
답변완료
종목검색
shortPeriod(9),midPeriod(26),longPeriod(52)
가 = shift(close,(-26)+1)
나 = shift((highest(high,shortPeriod)+lowest(low,shortPeriod)+highest(high,midPeriod)+lowest(low,midPeriod))/4,midPeriod-1);
다 = shift((highest(high,longPeriod)+lowest(low,longPeriod))/2,midPeriod-1);
라 = (highest(high,26)+lowest(low,26))/2;
마 = (highest(high,9)+lowest(low,9))/2;
CROSSUP(가, 라) &&
CROSSUP(나, 다) &&
다(1) < 다&&
라(1) < 라&&
CROSSUP(C,라)&&
CROSSUP(C,마)&&
C(1) < C
삼복더위에 수고하십니다
감사합니다
고맙습니다
2024-07-26
856
글번호 181939
종목검색