커뮤니티

문의 드립니다.

프로필 이미지
로꼬로꼬
2020-12-13 14:50:09
527
글번호 144642
답변완료
안녕하세요 소복히 첫눈이 오는중에 차트 켜보고 돌리고 있다가 글 남깁니다. 키움 수식인데요.. 캔들에 색을 입히는 수식인데요.. 예스용으로 변환좀 부탁드립니다. 수식1 os=macd(short,long)-eavg(macd(short,long),signal); os1=os>0 && os>os(1); if(os1,max(c,o),0) 수식2 os=macd(short,long)-eavg(macd(short,long),signal); os2=os>0 && os<os(1); if(os2,max(c,o),0) 수식3 os=macd(short,long)-eavg(macd(short,long),signal); os3=os<0 && os<os(1); if(os3,max(c,o),0) 수식4 os=macd(short,long)-eavg(macd(short,long),signal); os4=os<0 && os>os(1); if(os4,max(c,o),0) 수식5 min(c,o) 지표조건 short 20 short 60 signal 15 매번 도움 감사드립니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-12-14 13:48:03

안녕하세요 예스스탁입니다. 강조식으로 작성해 차트에 적용하시면 됩니다. 예스랭귀지에서 강조식이 조건에 따라 차트봉에 색을 덧입히는 수식입니다. input : short(20),long(60),sig(15); var : macdv(0),macds(0), os(0),os1(0); macdv = macd(short,long); macds = Ema(macdv,sig); os=macdv-macds; if os > 0 && os > os[1] Then PlotPaintBar(C,O,"강조",RED); if os > 0 && os < os[1] Then PlotPaintBar(C,O,"강조",MAGENTA); if os < 0 && os < os[1] Then PlotPaintBar(C,O,"강조",BLUE); if os < 0 && os > os[1] Then PlotPaintBar(C,O,"강조",CYAN); 즐거운 하루되세요 > 로꼬로꼬 님이 쓴 글입니다. > 제목 : 문의 드립니다. > 안녕하세요 소복히 첫눈이 오는중에 차트 켜보고 돌리고 있다가 글 남깁니다. 키움 수식인데요.. 캔들에 색을 입히는 수식인데요.. 예스용으로 변환좀 부탁드립니다. 수식1 os=macd(short,long)-eavg(macd(short,long),signal); os1=os>0 && os>os(1); if(os1,max(c,o),0) 수식2 os=macd(short,long)-eavg(macd(short,long),signal); os2=os>0 && os<os(1); if(os2,max(c,o),0) 수식3 os=macd(short,long)-eavg(macd(short,long),signal); os3=os<0 && os<os(1); if(os3,max(c,o),0) 수식4 os=macd(short,long)-eavg(macd(short,long),signal); os4=os<0 && os>os(1); if(os4,max(c,o),0) 수식5 min(c,o) 지표조건 short 20 short 60 signal 15 매번 도움 감사드립니다.