커뮤니티

조건검색 문의드립니다.

프로필 이미지
숭테크
2025-01-19 22:52:40
317
글번호 187359
답변완료
안녕하세요. /*---------------------------1번조건---------------------------------------*/ input : signal(7),period(8),period1(17),short(10),long(15); var : T(0),N(0),MM(0),hh(0),ll(0),macdv(0),macds(0),DM(0),DP(0),Sarv(0),bbup(0); T = TRIX(Period); N = EnvelopeUp(50,3); macdv = macd(short,long); macds = Ema(macdv,signal); DP = DiPlus(14); DM = DiMinus(14); Sarv = Sar(0.015,0.15); bbup = BollBandUp(Period1,2); if CrossUp(T,0) Then hh = C; if CrossDown(T,0) Then LL = C; if HH > 0 and C > HH Then HH = C; if LL > 0 and C < LL Then LL = C; if hh > 0 and LL > 0 Then { MM = (HH+LL)/2; if c>=MM and c > N[19] and c>o and macdv >= 0 and macdv > macds and DP >= DM and C >= Sarv and CrossUp(c, bbup) Then Find(1); } /*---------------------------2번조건---------------------------------------*/ input : 기간(14); var : LL(0),LS(0),E(0),DD(0),고점(False); LL = LRL(C,기간); LS = LRS(C,기간); E = EnvelopeUp(70,3); if LL<LL[1] and LL[1]>LL[2] Then dd = LL[1]; if C > E and LS > 0 and (CrossUp(C,DD) or CrossUp(LS,1)) Then Find(1); /*---------------------------3번조건---------------------------------------*/ input : 기간(20),기간1(5),기간2(60),n(1),D1(2); var : MM(0),E(0),R(0),B(0),W(0),HH(0); MM = Ema(C,기간1)-Ema(C,기간2); E = EnvelopeUp(70,3); R = RSI(14); B = ma(ma(MM,n),기간)+D1*std(ma(MM,n),기간); if CrossUp(MM,0) Then { HH = MM; W = HH[1]; Condition1 = true; } if Condition1 == true and MM > HH Then HH = MM; if MM > W and C > E and R < 80 and CrossUp(MM,B) Then Find(1); /*---------------------------4번조건---------------------------------------*/ input : 기간1(5),기간2(20); var : AA(0),BB(0),DD(0); AA = ema(c,기간1); BB = ema(c,기간2); if BB<BB[1] and BB[1]>BB[2] Then DD = BB[1]; if DD > 0 and CrossUp(AA,DD) Then Find(1); 현재는 위 네개를 따로 쓰고있는데 한번에 하고싶어요. 위조건을 모두 만족하는 종목을 찾고싶습니다. 1 and 2 and 3 and 4
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-01-20 15:11:37

안녕하세요 예스스탁입니다. input : signal(7),period(8),period1(17),short(10),long(15); var : T(0),aN(0),MM(0),hh(0),ll(0),macdv(0),macds(0),DM(0),DP(0),Sarv(0),bbup(0); var : cond1(False),cond2(False),cond3(False),cond4(False); T = TRIX(Period); aN = EnvelopeUp(50,3); macdv = macd(short,long); macds = Ema(macdv,signal); DP = DiPlus(14); DM = DiMinus(14); Sarv = Sar(0.015,0.15); bbup = BollBandUp(Period1,2); if CrossUp(T,0) Then hh = C; if CrossDown(T,0) Then LL = C; if HH > 0 and C > HH Then HH = C; if LL > 0 and C < LL Then LL = C; if hh > 0 and LL > 0 Then { MM = (HH+LL)/2; Cond1 = c>=MM and c > aN[19] and c>o and macdv >= 0 and macdv > macds and DP >= DM and C >= Sarv and CrossUp(c, bbup); } input : LR기간(14); var : bLL(0),bLS(0),bE(0),bDD(0); bLL = LRL(C,LR기간); bLS = LRS(C,LR기간); bE = EnvelopeUp(70,3); if bLL<bLL[1] and bLL[1]>bLL[2] Then bdd = bLL[1]; Cond2 = C > bE and bLS > 0 and (CrossUp(C,bDD) or CrossUp(bLS,1)); input : 기간(20),기간1(5),기간2(60),n(1),D1(2); var : cMM(0),E(0),R(0),B(0),W(0),cHH(0); cMM = Ema(C,기간1)-Ema(C,기간2); E = EnvelopeUp(70,3); R = RSI(14); B = ma(ma(cMM,n),기간)+D1*std(ma(cMM,n),기간); if CrossUp(cMM,0) Then { cHH = cMM; W = HH[1]; Condition1 = true; } if Condition1 == true and cMM > cHH Then cHH = cMM; cond3 = cMM > W and C > E and R < 80 and CrossUp(cMM,B); input : ema기간1(5),ema기간2(20); var : AA(0),BB(0),DD(0); AA = ema(c,ema기간1); BB = ema(c,ema기간2); if BB<BB[1] and BB[1]>BB[2] Then DD = BB[1]; cond4 = DD > 0 and CrossUp(AA,DD); if cond1 == true and cond2 == true and cond3 == true and cond4 == true Then Find(1); 즐거운 하루되세요 > 숭테크 님이 쓴 글입니다. > 제목 : 조건검색 문의드립니다. > 안녕하세요. /*---------------------------1번조건---------------------------------------*/ input : signal(7),period(8),period1(17),short(10),long(15); var : T(0),N(0),MM(0),hh(0),ll(0),macdv(0),macds(0),DM(0),DP(0),Sarv(0),bbup(0); T = TRIX(Period); N = EnvelopeUp(50,3); macdv = macd(short,long); macds = Ema(macdv,signal); DP = DiPlus(14); DM = DiMinus(14); Sarv = Sar(0.015,0.15); bbup = BollBandUp(Period1,2); if CrossUp(T,0) Then hh = C; if CrossDown(T,0) Then LL = C; if HH > 0 and C > HH Then HH = C; if LL > 0 and C < LL Then LL = C; if hh > 0 and LL > 0 Then { MM = (HH+LL)/2; if c>=MM and c > N[19] and c>o and macdv >= 0 and macdv > macds and DP >= DM and C >= Sarv and CrossUp(c, bbup) Then Find(1); } /*---------------------------2번조건---------------------------------------*/ input : 기간(14); var : LL(0),LS(0),E(0),DD(0),고점(False); LL = LRL(C,기간); LS = LRS(C,기간); E = EnvelopeUp(70,3); if LL<LL[1] and LL[1]>LL[2] Then dd = LL[1]; if C > E and LS > 0 and (CrossUp(C,DD) or CrossUp(LS,1)) Then Find(1); /*---------------------------3번조건---------------------------------------*/ input : 기간(20),기간1(5),기간2(60),n(1),D1(2); var : MM(0),E(0),R(0),B(0),W(0),HH(0); MM = Ema(C,기간1)-Ema(C,기간2); E = EnvelopeUp(70,3); R = RSI(14); B = ma(ma(MM,n),기간)+D1*std(ma(MM,n),기간); if CrossUp(MM,0) Then { HH = MM; W = HH[1]; Condition1 = true; } if Condition1 == true and MM > HH Then HH = MM; if MM > W and C > E and R < 80 and CrossUp(MM,B) Then Find(1); /*---------------------------4번조건---------------------------------------*/ input : 기간1(5),기간2(20); var : AA(0),BB(0),DD(0); AA = ema(c,기간1); BB = ema(c,기간2); if BB<BB[1] and BB[1]>BB[2] Then DD = BB[1]; if DD > 0 and CrossUp(AA,DD) Then Find(1); 현재는 위 네개를 따로 쓰고있는데 한번에 하고싶어요. 위조건을 모두 만족하는 종목을 찾고싶습니다. 1 and 2 and 3 and 4