커뮤니티

부탁드립니다.

프로필 이미지
e편한신호
2020-12-22 13:08:24
933
글번호 144857
답변완료
일봉으로 아래식을 참고하고 있습니다. 이것을 분차트에서 일봉기준 수치로 볼수있도록 수식부탁합니다. 감사합니다. Inputs: Length(20); Variables : ABull(0), ABear(0), BBull(0), BBear(0),ARatio(0), BRatio(0); ABull = accumn(High - Open, Length); ABear = Accumn(Open - Low, Length); BBull = Accumn(High - Close[1], Length); BBear = Accumn(Close[1] - Low, Length); ARatio = ABull / ABear * 100; BRatio = BBull / BBear * 100; Plot1(ARatio, "A-ratio"); Plot2(BRatio, "B-ratio"); PlotBaseLine1(100,"기준선 100");
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-12-22 14:47:16

안녕하세요 예스스탁입니다. Inputs: Length(20); Variables : ABull(0), ABear(0), BBull(0), BBear(0),ARatio(0), BRatio(0),cnt(0); ABull = 0; ABear = 0; BBull = 0; BBear = 0; For cnt = 0 to Length-1 { ABull = ABull + (DayHigh(cnt)-DayOpen(cnt)); ABear = ABear + (DayOpen(cnt)-DayLow(cnt)); BBull = BBull + (DayHigh(cnt)-DayClose(cnt+1)); BBear = BBear + (DayClose(cnt+1)-DayLow(cnt)); } ARatio = ABull / ABear * 100; BRatio = BBull / BBear * 100; Plot1(ARatio, "A-ratio"); Plot2(BRatio, "B-ratio"); PlotBaseLine1(100,"기준선 100"); 즐거운 하루되세요 > e편한신호 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 일봉으로 아래식을 참고하고 있습니다. 이것을 분차트에서 일봉기준 수치로 볼수있도록 수식부탁합니다. 감사합니다. Inputs: Length(20); Variables : ABull(0), ABear(0), BBull(0), BBear(0),ARatio(0), BRatio(0); ABull = accumn(High - Open, Length); ABear = Accumn(Open - Low, Length); BBull = Accumn(High - Close[1], Length); BBear = Accumn(Close[1] - Low, Length); ARatio = ABull / ABear * 100; BRatio = BBull / BBear * 100; Plot1(ARatio, "A-ratio"); Plot2(BRatio, "B-ratio"); PlotBaseLine1(100,"기준선 100");