예스스탁
예스스탁 답변
2022-02-15 12:12:25
안녕하세요
예스스탁입니다.
1 지표
input : n1(10),n2(19),sma1(7),r(8);
input : obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : b(0),Buy_g(False),Sell_g(False),ap(0),esa(0),d(0),ci(0),tci(0);
var : wt1(0),wt2(0);
b = ema(close,r);
buy_g = close[3]<b;
sell_g = close[3]>b;
ap = (h+l+c)/3;
esa = ema(ap, n1);
d = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * d);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,sma1);
plot1(0,"0", gray);
plot2(obLevel1,"obLevel1",red);
plot3(osLevel1,"osLevel1",green);
plot4(obLevel2,"obLevel2",red);
plot5(osLevel2,"osLevel2",green);
plot6(wt1,"wt1",green);
plot7(wt2,"wt2",red);
plot8(iff(CrossUp(wt1, wt2) and buy_g,wt2,Nan),"plot8",black);
plot9(iff(crossdown(wt1, wt2)and sell_g , wt2 , Nan),"plot9",black);
plot10(iff(CrossUp(wt1, wt2) and buy_g , wt2 , Nan),"plot10",green);
plot11(iff(CrossDown(wt1, wt2) and sell_g , wt2 , Nan),"plot11",IFf(wt2 - wt1 > 0 , red , MAGENTA));;
2 강조
input : n1(10),n2(19),sma1(7),r(8);
input : obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : b(0),Buy_g(False),Sell_g(False),ap(0),esa(0),d(0),ci(0),tci(0);
var : wt1(0),wt2(0);
b = ema(close,r);
buy_g = close[3]<b;
sell_g = close[3]>b;
ap = (h+l+c)/3;
esa = ema(ap, n1);
d = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * d);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,sma1);
if CrossUp(wt1, wt2)and buy_g Then
{
PlotPaintBar(H,L,"강조",iff(wt2 - wt1 > 0 , CYAN , yellow));
}
if CrossDown(wt1, wt2)and sell_g Then
{
PlotPaintBar(H,L,"강조", IFf(wt2 - wt1 > 0 , CYAN , yellow));
}
3 시스템
input : n1(10),n2(19),sma1(7),r(8);
input : obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : b(0),Buy_g(False),Sell_g(False),ap(0),esa(0),d(0),ci(0),tci(0);
var : wt1(0),wt2(0);
b = ema(close,r);
buy_g = close[3]<b;
sell_g = close[3]>b;
ap = (h+l+c)/3;
esa = ema(ap, n1);
d = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * d);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,sma1);
if CrossUp(wt1, wt2)and buy_g Then
{
Buy();
}
if CrossDown(wt1, wt2)and sell_g Then
{
Sell();
}
즐거운 하루되세요
> 꽌뜨마니아 님이 쓴 글입니다.
> 제목 : 지표식 변환이 가능할까요?
> 트레이딩뷰에서 사용하던 웨이브트렌드 라는 지표인데
예스트레이더에서 사용하고 싶은데 공부 부족으로 헤매고 있습니다ㅠ
혹시 도움을 주실수 있을까요?
(sma는 ma와 같다고 하네요)
-----------------------------------------------------------------
n1 = input(10, "Channel Length")
n2 = input(19, "Average Length")
sma1 = input(7, "SMA Length")
r=input(8, title="Period", type=integer, minval=1)
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")
b=ema(close,r)
buy_g=close[3]<b
sell_g=close[3]>b
ap = hlc3
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)
wt1 = tci
wt2 = sma(wt1,sma1)
plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red)
plot(osLevel2, color=green)
plot(wt1, color=green)
plot(wt2, color=red)
plot(crossover(wt1, wt2)and buy_g ? wt2 : na, color = black , style = circles, linewidth = 3)
plot(crossunder(wt1, wt2)and sell_g ? wt2 : na, color = black , style = circles, linewidth = 3)
plot(crossover(wt1, wt2) and buy_g ? wt2 : na, color = green , style = circles, linewidth = 2)
plot(crossunder(wt1, wt2) and sell_g ? wt2 : na, color = (wt2 - wt1 > 0 ? red : lime) , style = circles, linewidth = 2)
barcolor(crossover(wt1, wt2)and buy_g ? (wt2 - wt1 > 0 ? aqua : yellow) : na)
barcolor(crossunder(wt1, wt2)and sell_g ? (wt2 - wt1 > 0 ? aqua : yellow) : na)
bgcolor(crossover(wt1,wt2) and buy_g ? green : na, transp=75)
bgcolor(crossunder(wt1,wt2) and sell_g ? red : na, transp=75)
alertcondition(crossover(wt1,wt2) and buy_g, title='Buy', message='Buy Alert')
alertcondition(crossunder(wt1,wt2) and sell_g, title='Sell', message='Sell Alert')
꽌뜨마니아
2022-02-15 12:37:01
시스템식까지! 너무나 감사합니다!
좋은 점심시간 되십쇼~!
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 지표식 변환이 가능할까요?
>
안녕하세요
예스스탁입니다.
1 지표
input : n1(10),n2(19),sma1(7),r(8);
input : obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : b(0),Buy_g(False),Sell_g(False),ap(0),esa(0),d(0),ci(0),tci(0);
var : wt1(0),wt2(0);
b = ema(close,r);
buy_g = close[3]<b;
sell_g = close[3]>b;
ap = (h+l+c)/3;
esa = ema(ap, n1);
d = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * d);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,sma1);
plot1(0,"0", gray);
plot2(obLevel1,"obLevel1",red);
plot3(osLevel1,"osLevel1",green);
plot4(obLevel2,"obLevel2",red);
plot5(osLevel2,"osLevel2",green);
plot6(wt1,"wt1",green);
plot7(wt2,"wt2",red);
plot8(iff(CrossUp(wt1, wt2) and buy_g,wt2,Nan),"plot8",black);
plot9(iff(crossdown(wt1, wt2)and sell_g , wt2 , Nan),"plot9",black);
plot10(iff(CrossUp(wt1, wt2) and buy_g , wt2 , Nan),"plot10",green);
plot11(iff(CrossDown(wt1, wt2) and sell_g , wt2 , Nan),"plot11",IFf(wt2 - wt1 > 0 , red , MAGENTA));;
2 강조
input : n1(10),n2(19),sma1(7),r(8);
input : obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : b(0),Buy_g(False),Sell_g(False),ap(0),esa(0),d(0),ci(0),tci(0);
var : wt1(0),wt2(0);
b = ema(close,r);
buy_g = close[3]<b;
sell_g = close[3]>b;
ap = (h+l+c)/3;
esa = ema(ap, n1);
d = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * d);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,sma1);
if CrossUp(wt1, wt2)and buy_g Then
{
PlotPaintBar(H,L,"강조",iff(wt2 - wt1 > 0 , CYAN , yellow));
}
if CrossDown(wt1, wt2)and sell_g Then
{
PlotPaintBar(H,L,"강조", IFf(wt2 - wt1 > 0 , CYAN , yellow));
}
3 시스템
input : n1(10),n2(19),sma1(7),r(8);
input : obLevel1(60),obLevel2(53),osLevel1(-60),osLevel2(-53);
var : b(0),Buy_g(False),Sell_g(False),ap(0),esa(0),d(0),ci(0),tci(0);
var : wt1(0),wt2(0);
b = ema(close,r);
buy_g = close[3]<b;
sell_g = close[3]>b;
ap = (h+l+c)/3;
esa = ema(ap, n1);
d = ema(abs(ap - esa), n1);
ci = (ap - esa) / (0.015 * d);
tci = ema(ci, n2);
wt1 = tci;
wt2 = ma(wt1,sma1);
if CrossUp(wt1, wt2)and buy_g Then
{
Buy();
}
if CrossDown(wt1, wt2)and sell_g Then
{
Sell();
}
즐거운 하루되세요
> 꽌뜨마니아 님이 쓴 글입니다.
> 제목 : 지표식 변환이 가능할까요?
> 트레이딩뷰에서 사용하던 웨이브트렌드 라는 지표인데
예스트레이더에서 사용하고 싶은데 공부 부족으로 헤매고 있습니다ㅠ
혹시 도움을 주실수 있을까요?
(sma는 ma와 같다고 하네요)
-----------------------------------------------------------------
n1 = input(10, "Channel Length")
n2 = input(19, "Average Length")
sma1 = input(7, "SMA Length")
r=input(8, title="Period", type=integer, minval=1)
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")
b=ema(close,r)
buy_g=close[3]<b
sell_g=close[3]>b
ap = hlc3
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)
wt1 = tci
wt2 = sma(wt1,sma1)
plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red)
plot(osLevel2, color=green)
plot(wt1, color=green)
plot(wt2, color=red)
plot(crossover(wt1, wt2)and buy_g ? wt2 : na, color = black , style = circles, linewidth = 3)
plot(crossunder(wt1, wt2)and sell_g ? wt2 : na, color = black , style = circles, linewidth = 3)
plot(crossover(wt1, wt2) and buy_g ? wt2 : na, color = green , style = circles, linewidth = 2)
plot(crossunder(wt1, wt2) and sell_g ? wt2 : na, color = (wt2 - wt1 > 0 ? red : lime) , style = circles, linewidth = 2)
barcolor(crossover(wt1, wt2)and buy_g ? (wt2 - wt1 > 0 ? aqua : yellow) : na)
barcolor(crossunder(wt1, wt2)and sell_g ? (wt2 - wt1 > 0 ? aqua : yellow) : na)
bgcolor(crossover(wt1,wt2) and buy_g ? green : na, transp=75)
bgcolor(crossunder(wt1,wt2) and sell_g ? red : na, transp=75)
alertcondition(crossover(wt1,wt2) and buy_g, title='Buy', message='Buy Alert')
alertcondition(crossunder(wt1,wt2) and sell_g, title='Sell', message='Sell Alert')