답변완료
키움수식인데 파워종목검색식으로 변환요청드립니다
a=valuewhen(1,crossup(avg(C,1), avg(C,60)),avg(c,60));
a1=valuewhen(1,crossdown(avg(C,20), avg(C,60)),avg(C,60));
a2=valuewhen(1,crossdown(eavg(C,20), eavg(C,60)),eavg(C,60));
a3=valuewhen(1,crossdown(avg(C,5), avg(C,20)),avg(C,20));
Crossup(C,a) and Crossup(C,a1) and Crossup(C,a2) and Crossup(C,a3)
키움에서 쓰는 수식인데 예스트레이더로 이 수식이 뜨는 종목을 검색해보고자 합니다!
수식을 바꿔봐주실수 있을까요??
2024-11-18
796
글번호 185364
지표
답변완료
수고하십니다. 키움수식을 파워종목 검색식 부탁드립니다
AA=(O+H+L+C)/4; //하이킨 종가
AA1=(C(1)+O(1))/2; //하이킨 시가
A=LinearRegressionValue(C,50,0);
A1=LinearRegressionValue(A,50,0);
eq= A-A1;
Z=A+eq; //ZLSMA 라인
SD=Lowest(L,22)+atr(22)*3; //샹들리에 저항
ap = (HIGH+LOW+CLOSE)/3;
esa = eavg(ap, 10);
d = eavg(abs(ap - esa), 10);
ci = (ap - esa) / (0.015 * d);
wt1 = eavg(ci, 21);
wt2 = avg(wt1,4);
WT=(wt1-wt2)*2; //웨이브트렌드 OSC
AA>AA1 && (CROSSUP(AA,SD) OR CROSSUP(AA,Z)) && WT>=0;
지표변수는 없습니다
2024-11-17
730
글번호 185347
종목검색
답변완료
89674글 수정 좀 부탁 드림니다.
* 이래 수식에서 고가선은 고가선끼리 연결 하고 마지막은 H[1]에연결
저가선은 저가선끼리 연결 하고 마지막은 L[1]에연결
수식좀 부탁 드림니다.
## 아래 수식
input : P(2),n(7),틱(2), 굵기(1);
var : TX(0);
var : cnt(0),LL(0),HH(0);
Array : LTL[10](0),HTL[10](0);
var : LTL1(0),LTL2(0),LTL3(0),LTL4(0),LTL5(0),LTL6(0);
var : HTL1(0),HTL2(0),HTL3(0),HTL4(0),HTL5(0),HTL6(0);
if L < Lowest(L,P)[1] and (LL == 0 or (LL > 0 and abs(L-LL) >= PriceScale*틱)) Then
{
LL = L+0.04;
For cnt = 9 DownTo 1
{
LTL[cnt] = LTL[cnt-1];
}
LTL[0] = TL_new(sDate,sTime,LL,NextBarSdate,NextBarStime,LL);
TL_SetColor(LTL[0],LGreen);
TL_SetSize(LTL[0],굵기);
TL_Delete(LTL[n]);
}
Else
{
TL_SetEnd(LTL[0],sDate,sTime,LL);
}
if H > highest(H,P)[1] and (HH == 0 or (HH > 0 and abs(H-HH) >= PriceScale*틱)) Then
{
HH = H-0.04;
For cnt = 9 DownTo 1
{
HTL[cnt] = HTL[cnt-1];
}
HTL[0] = TL_new(sDate,sTime,HH,NextBarSdate,NextBarStime,HH);
TL_SetColor(HTL[0],Red);
TL_SetSize(HTL[0],굵기);
TL_Delete(HTL[n]);
}
Else
{
TL_SetEnd(HTL[0],sDate,sTime,HH);
}
* 매번 고맙습니다 좋은 한주 되십시요.
2024-11-17
774
글번호 185345
지표
답변완료
수고하십니다
추운데 수고많으십니다
아래식당일저고를
1 지정캔들100개나200개로 자유롭게설정식과
2 0.328돌파또는이탈시 캔들색강조부탁드립니다
첨부강조
항상 노고에 감사드립니다
input : 변수2(0.328);
var : AH(0),AL(0),B1(-1),B2(-1),B3(0);
var : 당일(0),P1(0), P2(0),p3(0),p4(0);
AH=dayhigh();
AL=daylow();
if AH == H Then
B1 = 0;
Else
{
if B1 >= 0 Then
B1 = B1+1;
}
if AL == L Then
B2 = 0;
Else
{
if B2 >= 0 Then
B2 = B2+1;
}
B3=AH-AL;
당일=iff(B1>B2,AH,AL);
P1=iff(B1>B2,AL+B3*변수2,AH-B3*변수2);
P2=iff(B1>B2,AL+B3*0.,AH-B3*0.50);
P3=iff(B1>B2,AL+B3*0.50,AH-B3*0.67);
P4=iff(B1>B2,AL+B3*0.67,AH-B3*0.77);
plot1(당일);
plot2(P1);
plot3(P2);
plot4(P3);
plot5(P4);
2024-11-17
635
글번호 185344
지표
답변완료
문의 드립니다.
안녕하세요 아래지표를 예스로 변환부탁드립니다.
감사합니다.
=====================================
PRC_Volume SuperTrend AI
//PRC_Volume SuperTrend AI
//version = 0
//29.02.24
//Iván González @ www.prorealcode.com
//Sharing ProRealTime knowledge
///////////////////////////////////////////////////////////////////////
//inputs
// ~~ Input settings for K and N values
k = 3 // Neighbors 1 to 100
m = 10 // Data
n = max(k,m)
//// ~~ Input settings for prediction values
KNNPriceLen = 20 // Price Trend 2 - 500 step 10
KNNSTlen = 100 // Prediction Trend 2 - 500 step 10
aisignals = 1 // Boolean AI Trend Signals
//// ~~ Define SuperTrend parameters
len = 10 // Length
factor = 3.0 // step 0.1
maSrc = 0 // MaType
// ~~ Calculate the SuperTrend based on the user's choice
vwma = average[len,maSrc](close*volume)/average[len,maSrc](volume)
atr = averagetruerange[len](close)
upperband = vwma + factor*atr
lowerband = vwma - factor*atr
if barindex < len then
upperband = close
lowerband = close
direction = 1
else
//Redefine upperband
if upperband < upperband[1] or close[1] > upperband[1] then
upperband = upperband
else
upperband = upperband[1]
endif
//Redefine lowerband
if lowerband > lowerband[1] or close[1] < lowerband[1] then
lowerdband = lowerband
else
lowerband = lowerband[1]
endif
//Define upperband
prevSupertrend = mysuperTrend[1]
if prevSupertrend = upperband[1] then
if close > upperband then
direction = -1
else
direction = 1
endif
else
if close < lowerband then
direction = 1
else
directon = -1
endif
endif
endif
if direction = -1 then
mysupertrend = lowerband
else
mysupertrend = upperband
endif
// ~~ Collect data points and their corresponding labels
myprice = WeightedAverage[KNNPriceLen](close)
sT = WeightedAverage[kNNSTlen](mysupertrend)
for i=0 to n-1 do
$data[i]=mysupertrend[i]
if myprice[i] > sT[i] then
$labels[i] = 1
else
$labels[i] = 0
endif
next
// ~~ Classify the current data point
currentsuperTrend = mysuperTrend
//label = knn_weighted(data, labels, k, current_superTrend)
// Compute distances from the current point to all other points
n1 = lastset($data)
for i = 0 to n1-1 do
$distances[i] = abs(currentsuperTrend[i]-$data[i])
$indices[i] = i
next
// Sort distances and corresponding indices in ascending order
// Bubble sort method
for i=0 to n1-2 do
for j=0 to n1-i-2 do
if $distances[j]>$distances[j+1] then
tempDist = $distances[j]
$distances[j]=$distances[j+1]
$distances[j+1]=tempDist
tempindex = $indices[j]
$indices[j]=$indices[j+1]
$indices[j+1]=tempindex
endif
next
next
// Compute weighted sum of labels of the k nearest neighbors
weightedsum=0
totalweight=0
for i=0 to k-1 do
myindex = $indices[i]
labeli = $labels[i]
weighti = 1 / ($distances[i]+pow(10,-6) )
weightedsum = weighti*labeli+weightedsum
totalweight = weighti+totalweight
next
label = floor(weightedsum / totalweight,2)
// ~~ Plot
if label = 1 then
r=0
g=250
b=0
elsif label = 0 then
r=250
g=0
b=0
else
r=0
g=0
b=250
endif
middleprice = (open+close)/2
colorbetween(middleprice,mysupertrend,r,g,b,40)
// ~~ Ai Super Trend Signals
starttrendup = label = 1 and label[1]<>1 and aisignals
starttrenddn = label = 0 and label[1]<>0 and aisignals
TrendUp = direction = -1 and direction[1] = 1 and label = 1 and aisignals
TrendDn = direction = 1 and direction[1] = -1 and label = 0 and aisignals
if starttrendup or starttrenddn then
drawpoint(barindex,currentsuperTrend,2)coloured(r,g,b)
elsif Trendup then
drawtext("▲",barindex,currentsuperTrend)coloured(r,g,b)
elsif Trenddn then
drawtext("▼",barindex,currentsuperTrend)coloured(r,g,b)
endif
return currentsuperTrend as "SuperTrend" coloured(r,g,b)style(line,2)
2024-11-17
839
글번호 185343
지표
답변완료
손익여부를 알고 싶습니다!!
안녕하세요 관리자님!!
날씨가 많이 추워졌습니다ㅜㅜ
아래 지표는 관리자님이 만들어 주신 지표로 실거래시 많이 사용하고 있습니다
다름이 아니오라
아래 지표를 차트에 구현하면 첨부한 그림과 같이
상,하단에 선이 각각 3개씩(plot15~plot20) 총6개의 선이 구현됩니다
각각의 선을 상향돌파/하향돌파시 역거래를 하려고 하는데요
거래에 대한 실익을 먼저 확인하려고 지표를 문의드립니다!!
질문이 부족하더라도 양해하시고 적절한 지표 부탁드립니다
#검색할조건#
거래시간: 08~20시
각각의 선을 돌파시: 일정랏으로 역방향 진입
수익목표: 50핍
손절제한은 없음
익절이 안되고 손실시 익일 아침에 장시작후 바로 청산조건
-아래-
input : nday(2);
var : OO(0),HH(0),LL(0),cnt(0);
OO = DayOpen(nday);
HH = DayHigh(1);
LL = DayLow(1);
for cnt = 1 to nday
{
if DayHigh(cnt) > hh Then
hh = DayHigh(cnt);
if DayLow(cnt) < ll Then
ll = DayLow(cnt);
}
if OO > 0 then
{
var1 = C/OO*100-100;
plot1(var1,"시가");
}
if HH > 0 then
{
var2 = (C/HH*100-100);
plot2(var2,"고가");
}
if LL > 0 then
{
var3 = C/LL*100-100;
plot3(var3,"저가");
plot4(0,"0선");
plot5(-var2,"-고가");
plot6(-var3,"-저가");
plot7(var3-var2,"저가-고가");
plot8(var2-var3,"고가-저가");
plot9(0.5,"0.5선");
plot10(-0.5,"-0.5선");
plot11(1.0,"1.0선");
plot12(-1.0,"-1.0선");
plot13(2.0,"2.0선");
plot14(-2.0,"-2.0선");
plot15(HH*1.005,"저0.5선");
plot16(HH*1.01,"저1.0선");
plot17(HH*1.02,"저2선");
plot18(LL*0.995,"고-0.5선");
plot19(LL*0.99,"고-1.0선");
plot20(LL*0.98,"고-2선");
}
2024-11-17
589
글번호 185341
검색