답변완료
지표 부탁드립니다
예전 87130번으로 요청드린 사항입니다
검색식과 종목검색은 아래와 같습니다.
지표 부탁드립니다
1 검색식
var : ap(0),esa(0),d(0),ci(0),wt1(0),wt2(0);
ap = (HIGH+LOW+CLOSE)/3;
esa = Ema(ap, 10);
d = Ema(abs(ap - esa), 10);
ci = (ap - esa) / (0.015 * d);
wt1 = Ema(ci, 21);
wt2 = ma(wt1,4);
if crossup(wt1,wt2) and wt1[1]<=-53 Then
Plot1(L,"검색");
2 종목검색식
var : ap(0),esa(0),d(0),ci(0),wt1(0),wt2(0);
ap = (HIGH+LOW+CLOSE)/3;
esa = Ema(ap, 10);
d = Ema(abs(ap - esa), 10);
ci = (ap - esa) / (0.015 * d);
wt1 = Ema(ci, 21);
wt2 = ma(wt1,4);
if crossup(wt1,wt2) and wt1[1]<=-53 Then
find(1);
2024-10-23
851
글번호 184524
지표
답변완료
수식 부탁드립니다.
안녕하세요?
죄송합니다만 한번만더 부탁드립니다.
아래의 수식의 점표시의 크기와 색깔면화도 조정할수 있게 부탁드립니다,
감사합니다,
input : Period(250),선두께(3);
Var:상승색(Red), 하락색(Blue);
Var:j(0),T(0);
Var: date11(0),date12(0),time11(0),time12(0),TL1(0),TL(0),tl9(0),
date21(0),date22(0),time21(0),time22(0),
date31(0),date32(0),time31(0),time32(0),tx(0),tx1(0),tl4(0);
Array:HiVal[20](0),LoVal[20](0),HiBar[20](0),LoBar[20](0);
var : box1(0),box2(0),box3(0),box4(0);
Plot1(0);
For j = 0 To 19
{
HiBar[j] = HiBar[j] + 1;
LoBar[j] = LoBar[j] + 1;
}
if crossup(c,highest(H,Period)[1]) Then
T = 1;
if CrossDown(c,Lowest(L,Period)[1]) Then
T = -1;
If T == -1 Then
{
If T[1] != -1 Then
{
For j = 18 DownTo 0
{
LoVal[j+1] = LoVal[j];
LoBar[j+1] = LoBar[j];
}
LoVal[0] = L;
LoBar[0] = 0;
date11 = date[HiBar[0]];
time11 = stime[HiBar[0]];
Value11 = HiVal[0];
date12 = date[LoBar[0]];
time12 = stime[LoBar[0]];
Value12 = LoVal[0];
TL_Delete(tl);
TL = TL_New(sdate,stime,Value12,NextBarSdate,NextBarStime,NextBarOpen);
TL1 = TL_New(date11,time11,Value11,date12,time12,Value12);
TL_SetColor(TL1,하락색);
date21 = date[HiBar[0]];
time21 = stime[HiBar[0]];
date22 = date[0];
time22 = stime[0];
box1 = Box_New(sdate,stime,LoVal[0]-0.25,NextBarSdate,NextBarStime,LoVal[0]-0.50);
Box_SetColor(box1,Green);
Box_SetFill(box1,true);
box2 = box1[1];
Box_SetEnd(box2,Sdate,Stime,LoVal[1]-0.50);
}
If LoVal[0] > L Then
{
LoVal[0] = L;
LoBar[0] = 0;
date12 = date[LoBar[0]];
time12 = stime[LoBar[0]];
Value12 = LoVal[0];
TL_SetEnd(TL1, date12,time12,Value12);
date22 = date[0];
time22 = stime[0];
TL_Delete(tl);
TL = TL_New(sdate,stime,Value12,NextBarSdate,NextBarStime,NextBarOpen);
Box_SetBegin(box1,sDate,sTime,LoVal[0]-0.25);
Box_SetEnd(box2,Sdate,Stime,LoVal[1]-0.50);
}
}
If T == 1 Then
{
If T[1] != 1 Then
{
For j = 18 DownTo 0
{
HiVal[j+1] = HiVal[j];
HiBar[j+1] = HiBar[j];
}
HiVal[0] = H;
HiBar[0] = 0;
date11 = date[LoBar[0]];
time11 = stime[LoBar[0]];
Value11 = LoVal[0];
date12 = date[HiBar[0]];
time12 = stime[HiBar[0]];
Value12 = HiVal[0];
TL_Delete(tl);
TL = TL_New(sdate,stime,Value12,NextBarSdate,NextBarStime,NextBarOpen);
TL1 = TL_New(date11,time11,Value11,date12,time12,Value12);
TL_SetColor(TL1,상승색);
date31 = date[LoBar[0]];
time31 = stime[LoBar[0]];
date32 = date[0];
time32 = stime[0];
box3 = Box_New(sdate,stime,HiVal[0]+0.25,NextBarSdate,NextBarStime,HiVal[0]+0.50);
Box_SetColor(box3,Yellow);
Box_SetFill(box3,true);
box4 = box3[1];
Box_SetEnd(box3,Sdate,Stime,HiVal[1]+0.50);
}
If HiVal[0] < H Then
{
HiVal[0] = H;
HiBar[0] = 0;
date12 = date[HiBar[0]];
time12 = stime[HiBar[0]];
Value12 = HiVal[0];
TL_SetEnd(TL1, date12,time12,Value12);
date32 = date[0];
time32 = stime[0];
TL_Delete(tl);
TL = TL_New(sdate,stime,Value12,NextBarSdate,NextBarStime,NextBarOpen);
Box_SetBegin(box3,sDate,sTime,HiVal[0]+0.25);
Box_SetEnd(box4,Sdate,Stime,HiVal[1]+0.50);
}
}
Box_SetEnd(box1,NextBarSdate,NextBarStime,LoVal[0]-0.5);
Box_SetEnd(box3,NextBarSdate,NextBarStime,HiVal[0]+0.5);
TL_SetSize(TL1,선두께);
var : tx99(0);
if T == -1 and T != T[1] Then
{
tx99 = text_new(sDate,sTime,L,"●");
Text_SetStyle(tx,2,0);
Text_SetColor(tx,Blue);
if NextBarOpen > 0 Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
}
if T == 1 and T != T[1] Then
{
tx99 = text_new(sDate,sTime,L,"●");
Text_SetStyle(tx,2,0);
Text_SetColor(tx,Red);
if NextBarOpen > 0 Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
}
2024-10-23
747
글번호 184512
시스템
답변완료
종목검색식 부탁드립니다.
아래 2가지 키움수식을 예스종목 검색식으로 변환 부탁드립니다.
감사합니다...^^
1)
La=LRL(Period1);
Lb=LRL(Period2);
m1=ma(C, 기간1, 종류);
m2=ma(C, 기간2, 종류);
Mx1=max(La,Lb);
Mn1=min(La,Lb);
Mx2=max(m1,m2);
Mn2=min(m1,m2);
(O<Mn1 && C>Mx1) or (O<Mn2 && C>Mx2)
(지표변수) Period1: 20 / Period2: 40 / 기간1: 60 / 기간2: 90 / 종류: 가중
2)
A=LRL(Period1);
B=LRL(Period2);
D=crossup(A,B);
E=crossdown(A,B);
F=valuewhen(1,D or E, 기준가격);
A1=ma(C, 기간1, 종류);
B1=ma(C, 기간2, 종류);
D1=crossup(A1,B1);
E1=crossdown(A1,B1);
F1=valuewhen(1,D1 or E1, 기준가격);
CrossUp(F,F1)
(지표변수) Period1: 20 / Period2: 40 / 기간1: 60 / 기간2: 90 / 종류: 가중 / 기준가격: 시가
2024-10-23
859
글번호 184505
종목검색
답변완료
키움수식입니다
M=MA(C, 기간);
M1=MA(C, 기간1);
가=LRL(60) - LRS(60)*5;
Bu=BBandsUp(20,2);
나=LRL(20) - LRS(20)*5;
다=LRL(10) - LRS(10)*5;
EU=EnvelopeUP(20, 6);
전환=(highest(high,shortPeriod)+lowest(low,shortPeriod))/2;
전환1=(highest(high,반shortPeriod)+lowest(low,반shortPeriod))/2;
전환2=(highest(high,소shortPeriod)+lowest(low,소shortPeriod))/2;
CrossUP(C, M1(midPeriod-1))&&
CrossUP(C, M(midPeriod-1))&&
CrossUP(C, 가)&&
CrossUP(C, BU(midPeriod-1))&&
C>전환&&C>전환1&&C>전환2 OR
CrossUP(C, EU(midPeriod-1))
기간40 , 기간1 20 , midPeriod 26 ,shortPeriod 9 ,
반shortPeriod 6 , 소shortPeriod 5 ,
감사합니다
2024-10-23
775
글번호 184504
종목검색
답변완료
수고하십니다
트레인딩뷰챠트인데 변환 부탁드려요
1.
// Discontinued Signal Lines
dsl_lines(src, length)=>
UP = 0.
DN = 0.
UP := (src > ta.sma(src, length)) ? nz(UP[1]) + dsl_mode / length * (src - nz(UP[1])) : nz(UP[1])
DN := (src < ta.sma(src, length)) ? nz(DN[1]) + dsl_mode / length * (src - nz(DN[1])) : nz(DN[1])
[UP, DN]
2.
// Zero-Lag Exponential Moving Average function
zlema(src, length) =>
lag = math.floor((length - 1) / 2)
ema_data = 2 * src - src[lag]
ema2 = ta.ema(ema_data, length)
ema2
//@version=5
indicator("DSL Oscillator [BigBeluga]")
// ====================================================================================================================}
// INPUTS
// ===================================================================================================================={
// User inputs for customization
len = input.int(10, "Length")
dsl_mode = input.string("Fast", "DSL Lines Mode", ["Fast", "Slow"]) == "Fast" ? 2 : 1
// Color definitions
color_up = #8BD8BD
color_dn = #436cd3
// Condition for a dashed line
bool dashed = bool(bar_index % 2)
// ====================================================================================================================}
// CALCULATIONS
// ===================================================================================================================={
// Calculate RSI with a period of 10
RSI = ta.rsi(close, 10)
// Zero-Lag Exponential Moving Average function
zlema(src, length) =>
lag = math.floor((length - 1) / 2)
ema_data = 2 * src - src[lag]
ema2 = ta.ema(ema_data, length)
ema2
// Discontinued Signal Lines
dsl_lines(src, length)=>
up = 0.
dn = 0.
up := (src > ta.sma(src, length)) ? nz(up[1]) + dsl_mode / length * (src - nz(up[1])) : nz(up[1])
dn := (src < ta.sma(src, length)) ? nz(dn[1]) + dsl_mode / length * (src - nz(dn[1])) : nz(dn[1])
[up, dn]
// Calculate DSL lines for RSI
[lvlu, lvld] = dsl_lines(RSI, len)
// Calculate DSL oscillator using ZLEMA of the average of upper and lower DSL Lines
dsl_osc = zlema((lvlu + lvld) / 2, 10)
// Calculate DSL Lines for the oscillator
[level_up, level_dn] = dsl_lines(dsl_osc, 10)
// Determine color based on oscillator position relative to its DSL Lines
color = color.from_gradient(dsl_osc, level_dn, level_up, color_dn, color_up)
// ====================================================================================================================}
// PLOT
// ===================================================================================================================={
// Plot upper and lower DSL Lines
plot(level_up, color = dashed ? color.new(color_up, 20) : na, editable = false)
plot(level_dn, color = dashed ? color.new(color_dn, 20) : na, editable = false)
// Plot the DSL oscillator
plot(dsl_osc, color = color, linewidth = 2)
// Detect crossovers for signal generation
up = ta.crossover(dsl_osc, level_dn) and dsl_osc < 55
dn = ta.crossunder(dsl_osc, level_up) and dsl_osc > 50
// Plot signals on the oscillator
plotshape(up ? dsl_osc[1] : na, "", shape.circle, location.absolute, color_up, -1, "", chart.fg_color, false, size.tiny)
plotshape(dn ? dsl_osc[1] : na, "", shape.circle, location.absolute, color_dn, -1, "", chart.fg_color, false, size.tiny)
// Plot signals on the chart
plotshape(up, "", shape.triangleup, location.bottom, color_up, 0, "Enter", chart.fg_color, true, size.tiny,
force_overlay = true)
plotshape(dn, "", shape.triangledown, location.top, color_dn, 0, "Exit", chart.fg_color, true, size.tiny,
force_overlay = true)
// Color the background on signal occurrences
bgcolor(up ? color.new(color_up, 90) : na, force_overlay = true, editable = false)
bgcolor(dn ? color.new(color_dn, 90) : na, force_overlay = true, editable = false)
// Color candles based on signals
candle_col = up ? color.new(color_up, 0) : dn ? color.new(color_dn, 0) : na
plotcandle(open, high, low, close, "",
candle_col,
candle_col,
bordercolor = candle_col,
force_overlay = true,
editable = false)
// Plot horizontal lines for visual reference
h = plot(75, display = display.none, editable = false)
m = plot(50, display = display.none, editable = false)
l = plot(25, display = display.none, editable = false)
// Fill areas between horizontal lines
fill(m, h, 120, 50, color_up, na, editable = false)
fill(m, l, 50, -20, na, color_dn, editable = false)
2024-10-23
911
글번호 184503
지표