커뮤니티

안녕하세요

프로필 이미지
로즈버드
2020-02-24 11:32:22
482
글번호 136258
답변완료
averageprice = (((high[5]+low[5])/2)+((high[4]+low[4])/2)+((high[3]+low[3])/2)+((high[2]+low[2])/2)+((high[1]+low[1])/2)+((high[6]+low[6])/2))/6 if close > averageprice then drawcandle(open,high,low,close) coloured(0,255,0) endif if close < averageprice then drawcandle(open,high,low,close) coloured(255,0,0) endif return -------------------------------------------------------------------------- macd1= exponentialaverage[8](close)-exponentialaverage[34](close) signal1= average[34,1](macd1) hist1= macd1-signal1 macd2= exponentialaverage[8](close)-exponentialaverage[55](close) signal2= average[55,1](macd2) hist2= macd2-signal2 return hist2 coloured(0,128,0) style(histogram),hist1 coloured(218,165,32) style(histogram) ------------------------------------------------------------------------ 예스수식으로 변환 문의드립니다. 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-02-24 16:14:51

안녕하세요 예스스탁입니다. 1 var : averageprice(0); averageprice = (((high[5]+low[5])/2)+((high[4]+low[4])/2)+((high[3]+low[3])/2)+((high[2]+low[2])/2)+((high[1]+low[1])/2)+((high[6]+low[6])/2))/6; if close > averageprice then PlotPaintBar(high,low,open,close,"강조",RGB(0,255,0)); if close < averageprice then PlotPaintBar(high,low,open,close,"강조",RGB(255,0,0)); 2 var : macd1(0),signal1(0),hist1(0); var : macd2(0),signal2(0),hist2(0); macd1= ema(C,8)-ema(C,34); signal1= ma(macd1,34); hist1= macd1-signal1; macd2= ema(C,8)-ema(C,55); signal2= ma(macd1,55); hist2= macd2-signal2; plot1(hist1,"osc1",rgb(218,165,32)); plot2(hist2,"osc1",rgb(0,128,0)); 즐거운 하루되세요 > 로즈버드 님이 쓴 글입니다. > 제목 : 안녕하세요 > averageprice = (((high[5]+low[5])/2)+((high[4]+low[4])/2)+((high[3]+low[3])/2)+((high[2]+low[2])/2)+((high[1]+low[1])/2)+((high[6]+low[6])/2))/6 if close > averageprice then drawcandle(open,high,low,close) coloured(0,255,0) endif if close < averageprice then drawcandle(open,high,low,close) coloured(255,0,0) endif return -------------------------------------------------------------------------- macd1= exponentialaverage[8](close)-exponentialaverage[34](close) signal1= average[34,1](macd1) hist1= macd1-signal1 macd2= exponentialaverage[8](close)-exponentialaverage[55](close) signal2= average[55,1](macd2) hist2= macd2-signal2 return hist2 coloured(0,128,0) style(histogram),hist1 coloured(218,165,32) style(histogram) ------------------------------------------------------------------------ 예스수식으로 변환 문의드립니다. 감사합니다.