커뮤니티

키움지표이변환부탁드립니다

프로필 이미지
매치다는
2022-10-02 22:39:50
1051
글번호 162671
답변완료
======단기선==== HT=highest(V,Period1); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); result=eavg(NewH, 20); shift(result, 20) ============ 2 ============ HT=highest(V,Period2); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); result=eavg(NewH, 20); shift(result, 20) ============ 3 ============ HT=highest(V,Period3); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); //shift(NewH, 20) result=eavg(NewH, 20); shift(result, 20) ============ 4 ============ HT=highest(V,Period4); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); result=eavg(NewH, 20); shift(result, 20) ========= 장기선 ========= HT=highest(V,Period5); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); result=eavg(NewH, 20); shift(result, 20) =====지표설정조건==== Period1 = 5 Period2 = 20 Period3 = 125 Period4 = 250 Period5 = 500 변수처리부탁드립니다 @@@@@ 감사합니다@@@@@@
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-10-04 14:38:21

안녕하세요 예스스탁입니다. input : Period1(5),Period2(20),Period3(125),Period4(250),Period5(500); var : HT1(0),HT2(0),HT3(0),HT4(0),HT5(0); var : newH1(0),newH2(0),newH3(0),newH4(0),newH5(0); var : result1(0),result2(0),result3(0),result4(0),result5(0); HT1 = highest(V,Period1); if V > HT1[1] Then newH1 = (O+C+L+H+C)/5; result1 = Ema(NewH1, 20); HT2 = highest(V,Period2); if V > HT2[1] Then newH2 = (O+C+L+H+C)/5; result2 = Ema(NewH2, 20); HT3 = highest(V,Period3); if V > HT3[1] Then newH3 = (O+C+L+H+C)/5; result3 = Ema(NewH3, 20); HT4 = highest(V,Period4); if V > HT4[1] Then newH4 = (O+C+L+H+C)/5; result4 = Ema(NewH4, 20); HT5 = highest(V,Period5); if V > HT5[1] Then newH5 = (O+C+L+H+C)/5; result5 = Ema(NewH5, 20); Plot1(result1); Plot2(result2); Plot3(result3); Plot4(result4); Plot5(result5); FixPlotShift(1,20); FixPlotShift(2,20); FixPlotShift(3,20); FixPlotShift(4,20); 즐거운 하루되세요 > 매치다는 님이 쓴 글입니다. > 제목 : 키움지표이변환부탁드립니다 > ======단기선==== HT=highest(V,Period1); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); result=eavg(NewH, 20); shift(result, 20) ============ 2 ============ HT=highest(V,Period2); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); result=eavg(NewH, 20); shift(result, 20) ============ 3 ============ HT=highest(V,Period3); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); //shift(NewH, 20) result=eavg(NewH, 20); shift(result, 20) ============ 4 ============ HT=highest(V,Period4); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); result=eavg(NewH, 20); shift(result, 20) ========= 장기선 ========= HT=highest(V,Period5); NewH=valuewhen(1,V>HT(1),(O+C+L+H+C)/5); result=eavg(NewH, 20); shift(result, 20) =====지표설정조건==== Period1 = 5 Period2 = 20 Period3 = 125 Period4 = 250 Period5 = 500 변수처리부탁드립니다 @@@@@ 감사합니다@@@@@@