커뮤니티

수식입력값

프로필 이미지
bori
2025-07-02 07:54:39
208
글번호 192221
답변완료
안녕하십닌까? macd 수식을 키움과 예스트레이더에 아래 수식값을 넣으려 하는데 어떻게 변경하면 될까요 //@Version=3 study("macd fast") 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 (macd,signalperiod) fastmacd=macd-signal fastsignal=ema(fastmacd,signalperiod) hline(0, "zero line" , color=gray , linewidth=1,linestyle=dashed) plot(fastmacd, color=bule, linewidth=2) plot(fastsignal, color=red, linewidth=2)
사용자 함수
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-07-02 10:37:33

안녕하세요 예스스탁입니다. 1 input : fastperiod(12),slowperiod(26),signalperiod(9); var : fastMA(0),slowMA(0),macd(0),signal(0),fastmacd(0),fastsignal(0); fastMA = ema(close,fastperiod); slowMA= ema(close,slowperiod); macd=fastMA-slowMA; signal = ema (macd,signalperiod); fastmacd=macd-signal; fastsignal=ema(fastmacd,signalperiod); PlotBaseLine1(0,"zero line",gray); plot1(fastmacd, "fastmacd",blue); plot2(fastsignal,"fastsignal",red); 2 키움은 저희랭귀지가 제공되지 않습니다. 키움쪽에 문의하셔야 합니다. 즐거운 하루되세요 > bori 님이 쓴 글입니다. > 제목 : 수식입력값 > 안녕하십닌까? macd 수식을 키움과 예스트레이더에 아래 수식값을 넣으려 하는데 어떻게 변경하면 될까요 //@Version=3 study("macd fast") 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 (macd,signalperiod) fastmacd=macd-signal fastsignal=ema(fastmacd,signalperiod) hline(0, "zero line" , color=gray , linewidth=1,linestyle=dashed) plot(fastmacd, color=bule, linewidth=2) plot(fastsignal, color=red, linewidth=2)