커뮤니티

키움증권 수식 변환을 부탁드립니다.

프로필 이미지
질풍이
2023-01-29 20:56:22
1011
글번호 165796
답변완료
항상 감사드립니다. 아래 키움수식을 예스로 변환부탁드립니다. 매수 B = ((H + L) / 2); UpB = B + atr(period) + multiple; DnT = valuewhen(1, lowest(UpB(1), period) > UpB, UpB); DnB = B - atr(period) + multiple; UpT = valuewhen(1, highest(DnB(1), period) < DnB, DnB); if((c > DnT && c > UpT), 1, 0) ------------------------------------------------------------- Watch1 B = ((H + L) / 2); UpB = B + atr(period) + multiple; DnT = valuewhen(1, lowest(UpB(1), period) > UpB, UpB); DnB = B - atr(period) + multiple; UpT = valuewhen(1, highest(DnB(1), period) < DnB, DnB); if((c > DnT && c < UpT), 1, 0) ------------------------------------------------------------ Watch2 B = ((H + L) / 2); UpB = B + atr(period) + multiple; DnT = valuewhen(1, lowest(UpB(1), period) > UpB, UpB); DnB = B - atr(period) + multiple; UpT = valuewhen(1, highest(DnB(1), period) < DnB, DnB); if((c < DnT && c > UpT), 1, 0) -------------------------------------------------------------- 매도 B = ((H + L) / 2); UpB = B + atr(period) + multiple; DnT = valuewhen(1, lowest(UpB(1), period) > UpB, UpB); DnB = B - atr(period) + multiple; UpT = valuewhen(1, highest(DnB(1), period) < DnB, DnB); if((c < DnT && c < UpT), 1, 0) --------------------------------------- 지표 period 10 multiple 10
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-01-30 11:11:03

안녕하세요. 예스스탁 입니다. Input : Period(10), Multiple(10); Var : B(0), UpB(0), DnT(0), DnB(0), UpT(0); B = ((H + L) / 2); UpB = B + ATR(Period) + Multiple; if Lowest(UpB[1], Period) > UpB Then DnT = UpB; DnB = B - ATR(Period) + Multiple; if Highest(DnB[1], Period) < DnB Then UpT = DnB; Plot1(IFf((C > DnT and C > UpT), 1, 0)); # 매수 Plot2(IFf((C > DnT and C < UpT), 1, 0)); # Watch1 Plot3(IFf((C < DnT and C > UpT), 1, 0)); # Watch2 Plot4(IFf((C < DnT and C < UpT), 1, 0)); # 매도 > 질풍이 님이 쓴 글입니다. > 제목 : 키움증권 수식 변환을 부탁드립니다. > 항상 감사드립니다. 아래 키움수식을 예스로 변환부탁드립니다. 매수 B = ((H + L) / 2); UpB = B + atr(period) + multiple; DnT = valuewhen(1, lowest(UpB(1), period) > UpB, UpB); DnB = B - atr(period) + multiple; UpT = valuewhen(1, highest(DnB(1), period) < DnB, DnB); if((c > DnT && c > UpT), 1, 0) ------------------------------------------------------------- Watch1 B = ((H + L) / 2); UpB = B + atr(period) + multiple; DnT = valuewhen(1, lowest(UpB(1), period) > UpB, UpB); DnB = B - atr(period) + multiple; UpT = valuewhen(1, highest(DnB(1), period) < DnB, DnB); if((c > DnT && c < UpT), 1, 0) ------------------------------------------------------------ Watch2 B = ((H + L) / 2); UpB = B + atr(period) + multiple; DnT = valuewhen(1, lowest(UpB(1), period) > UpB, UpB); DnB = B - atr(period) + multiple; UpT = valuewhen(1, highest(DnB(1), period) < DnB, DnB); if((c < DnT && c > UpT), 1, 0) -------------------------------------------------------------- 매도 B = ((H + L) / 2); UpB = B + atr(period) + multiple; DnT = valuewhen(1, lowest(UpB(1), period) > UpB, UpB); DnB = B - atr(period) + multiple; UpT = valuewhen(1, highest(DnB(1), period) < DnB, DnB); if((c < DnT && c < UpT), 1, 0) --------------------------------------- 지표 period 10 multiple 10