예스스탁
예스스탁 답변
2024-12-16 17:05:29
안녕하세요
예스스탁입니다.
input : fastperiod(12);
input : slowperiod(26);
input : signalperiod(9);
var : fastMA(0),slowMA(0),macdv(0),signal(0),fastmacd(0),fastsignal(0);
fastMA =ema(close,fastperiod );
slowMA =ema(close,slowperiod );
macdv = fastMA- slowMA;
signal = ema(macdv,signalperiod);
fastmacd = macdv - signal;
fastsignal = ema(fastmacd,signalperiod);
plot1(fastmacd,"f",blue);
plot2(fastsignal,"s",red);
PlotBaseLine1(0,"0선",Gray);
즐거운 하루되세요
> 파생돌이 님이 쓴 글입니다.
> 제목 : 부틱드립니다
> 수고하십니다
아래수식을 예스로 부탁드립니다
//@version=3
study("빠른시그널")
fastperiod = input(12,title="패스트 렝스",type=integer,minval=1,maxval =500)
slowperiod = input(26,title="슬로우 렝스",type=integer,minval=1,maxval =500)
signalperiod = input(9,title="signal smoothing",type=integer,minval=1,maxval =500)
fastMA =ema(close,fastperiod )
slowMA =ema(close,slowperiod )
macd = fastMA- slowMA
signal = ema(fastperiod-signalperiod)
fastmacd = macd - signal
fastsignal = ema(fastmacd - signalperiod)
hline(0, "Zero Line" , color = gray, linewidth =1, linestyle = dashed)
plot(fastmacd, color=blue, linewidth=2)
plot(fastsignal, color=red, linewidth=2)