커뮤니티

검색식과 종목검색식 부탁 드립니다

프로필 이미지
행복만땅
2025-10-18 10:43:26
98
글번호 227007
답변완료

아래 지표(RSI DIVERGENCE)에서 검색식과 종목검색식 부탁 드립니다
조건은 아래와 같습니다 1. 해당 지표의 색상이 적색에서 라임으로 변하며 2. 해당값이 0보다 클때 입니다. 부탁드립니다.
input : len_fast(5),len_slow(14); var : src_fast(0),src_slow(0); var : alpha_fast(0),up_fast(0),down_fast(0),rsi_fast(0); var : alpha_slow(0),up_Slow(0),down_slow(0),rsi_slow(0); var : divergence(0); src_fast = C; var1 = max(src_fast-src_fast[1],0); Var2 = -min(src_fast-src_fast[1],0); src_slow = C; var3 = max(src_slow-src_slow[1],0); Var4 = -min(src_slow-src_slow[1],0); alpha_fast = 1/len_fast; up_fast = 0; up_fast = IFf(IsNan(up_fast[1])== true, ma(var1,len_fast),alpha_fast*var1+(1 - alpha_fast)*up_fast[1]); down_fast = 0; down_fast = IFf(IsNan(down_fast[1])== true, ma(var2,len_fast),alpha_fast*var2+(1 - alpha_fast)*down_fast[1]); rsi_fast = iff(down_fast == 0 , 100 , IFf( up_fast == 0 , 0 , 100 - (100 / (1 + up_fast / down_fast)))); alpha_slow = 1/len_slow; up_slow = 0; up_slow = IFf(IsNan(up_slow[1])== true, ma(Var3,len_slow),alpha_slow*Var3+(1 - alpha_slow)*up_slow[1]); down_slow = 0; down_slow = IFf(IsNan(down_slow[1])== true, ma(Var4,len_slow),alpha_slow*Var4+(1 - alpha_slow)*down_slow[1]); rsi_slow = iff(down_slow == 0 , 100 , iff(up_slow == 0 , 0 , 100 - (100 / (1 + up_slow / down_slow)))); divergence = rsi_fast - rsi_slow; plot1(divergence, "divergence",iff(divergence > 0 , lime,red)); PlotBaseLine1(0);

RSIDIVERGENCERSI다이버젼스
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-10-20 13:25:27

안녕하세요 예스스탁입니다. 1, 검색식 input : len_fast(5),len_slow(14); var : src_fast(0),src_slow(0); var : alpha_fast(0),up_fast(0),down_fast(0),rsi_fast(0); var : alpha_slow(0),up_Slow(0),down_slow(0),rsi_slow(0); var : divergence(0); src_fast = C; var1 = max(src_fast-src_fast[1],0); Var2 = -min(src_fast-src_fast[1],0); src_slow = C; var3 = max(src_slow-src_slow[1],0); Var4 = -min(src_slow-src_slow[1],0); alpha_fast = 1/len_fast; up_fast = 0; up_fast = IFf(IsNan(up_fast[1])== true, ma(var1,len_fast),alpha_fast*var1+(1 - alpha_fast)*up_fast[1]); down_fast = 0; down_fast = IFf(IsNan(down_fast[1])== true, ma(var2,len_fast),alpha_fast*var2+(1 - alpha_fast)*down_fast[1]); rsi_fast = iff(down_fast == 0 , 100 , IFf( up_fast == 0 , 0 , 100 - (100 / (1 + up_fast / down_fast)))); alpha_slow = 1/len_slow; up_slow = 0; up_slow = IFf(IsNan(up_slow[1])== true, ma(Var3,len_slow),alpha_slow*Var3+(1 - alpha_slow)*up_slow[1]); down_slow = 0; down_slow = IFf(IsNan(down_slow[1])== true, ma(Var4,len_slow),alpha_slow*Var4+(1 - alpha_slow)*down_slow[1]); rsi_slow = iff(down_slow == 0 , 100 , iff(up_slow == 0 , 0 , 100 - (100 / (1 + up_slow / down_slow)))); divergence = rsi_fast - rsi_slow; if CrossUp(divergence,0) Then Plot1(L,"검색"); 2. 종목검색식 input : len_fast(5),len_slow(14); var : src_fast(0),src_slow(0); var : alpha_fast(0),up_fast(0),down_fast(0),rsi_fast(0); var : alpha_slow(0),up_Slow(0),down_slow(0),rsi_slow(0); var : divergence(0); src_fast = C; var1 = max(src_fast-src_fast[1],0); Var2 = -min(src_fast-src_fast[1],0); src_slow = C; var3 = max(src_slow-src_slow[1],0); Var4 = -min(src_slow-src_slow[1],0); alpha_fast = 1/len_fast; up_fast = 0; up_fast = IFf(IsNan(up_fast[1])== true, ma(var1,len_fast),alpha_fast*var1+(1 - alpha_fast)*up_fast[1]); down_fast = 0; down_fast = IFf(IsNan(down_fast[1])== true, ma(var2,len_fast),alpha_fast*var2+(1 - alpha_fast)*down_fast[1]); rsi_fast = iff(down_fast == 0 , 100 , IFf( up_fast == 0 , 0 , 100 - (100 / (1 + up_fast / down_fast)))); alpha_slow = 1/len_slow; up_slow = 0; up_slow = IFf(IsNan(up_slow[1])== true, ma(Var3,len_slow),alpha_slow*Var3+(1 - alpha_slow)*up_slow[1]); down_slow = 0; down_slow = IFf(IsNan(down_slow[1])== true, ma(Var4,len_slow),alpha_slow*Var4+(1 - alpha_slow)*down_slow[1]); rsi_slow = iff(down_slow == 0 , 100 , iff(up_slow == 0 , 0 , 100 - (100 / (1 + up_slow / down_slow)))); divergence = rsi_fast - rsi_slow; if CrossUp(divergence,0) Then find(1); 즐거운 하루되세요