커뮤니티

검색식 부탁합니다

프로필 이미지
행복만땅
2024-10-10 23:11:09
733
글번호 183820
답변완료
검색시 부탁드립니다.(New SQUEEZE MOMENTUM) 조건은 하부 지표에서 1) 색상이 적색에서 노랑색으로 변하는 지점에서의 검색식 부탁합니다 input : length(20),BB_mult(2.0); var : BB_basis(0),dev(0),BB_upper(0),BB_lower(0); BB_basis = ma(close, length); dev = BB_mult * std(close, length); BB_upper = BB_basis + dev; BB_lower = BB_basis - dev; input : KC_mult_high(1.0); input : KC_mult_mid(1.5); input : KC_mult_low(2.0); var : KC_basis(0),devKC(0); var : KC_upper_high(0),KC_lower_high(0); var : KC_upper_mid(0),KC_lower_mid(0); var : KC_upper_low(0),KC_lower_low(0); var : NoSqz(False),LowSqz(False),MidSqz(False),HighSqz(False); var : mom(0),iff_1(0),iff_2(0),mom_color(0),sq_color(0); KC_basis = ma(close, length); devKC = ma(TrueRange, length); KC_upper_high = KC_basis + devKC * KC_mult_high; KC_lower_high = KC_basis - devKC * KC_mult_high; KC_upper_mid = KC_basis + devKC * KC_mult_mid; KC_lower_mid = KC_basis - devKC * KC_mult_mid; KC_upper_low = KC_basis + devKC * KC_mult_low; KC_lower_low = KC_basis - devKC * KC_mult_low; //SQUEEZE CONDITIONS NoSqz = BB_lower < KC_lower_low or BB_upper > KC_upper_low; //NO SQUEEZE: GREEN LowSqz = BB_lower >= KC_lower_low or BB_upper <= KC_upper_low; //LOW COMPRESSION: BLACK MidSqz = BB_lower >= KC_lower_mid or BB_upper <= KC_upper_mid ;//MID COMPRESSION: RED HighSqz = BB_lower >= KC_lower_high or BB_upper <= KC_upper_high; //HIGH COMPRESSION: ORANGE //MOMENTUM OSCILLATOR mom = LRL(close - avg(avg(highest(high, length), lowest(low, length)),ma(close, length)), length); //MOMENTUM HISTOGRAM COLOR iff_1 = iff(mom > iff(isnan(mom[1])==true,0,mom[1]) , Cyan , Blue); iff_2 = iff(mom < iff(isnan(mom[1])==true,0,mom[1]) , red , yellow); mom_color = iff(mom > 0 , iff_1 , iff_2); //SQUEEZE DOTS COLOR sq_color = iff(HighSqz , orange ,IFf(MidSqz , red ,IFf(LowSqz , black , green))); //PLOTS plot1(mom, "MOM",mom_color); plot2(0, "SQZ", sq_color);
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-09-30 10:57:26

안녕하세요 예스스탁입니다. input : length(20),BB_mult(2.0); var : BB_basis(0),dev(0),BB_upper(0),BB_lower(0); BB_basis = ma(close, length); dev = BB_mult * std(close, length); BB_upper = BB_basis + dev; BB_lower = BB_basis - dev; input : KC_mult_high(1.0); input : KC_mult_mid(1.5); input : KC_mult_low(2.0); var : KC_basis(0),devKC(0); var : KC_upper_high(0),KC_lower_high(0); var : KC_upper_mid(0),KC_lower_mid(0); var : KC_upper_low(0),KC_lower_low(0); var : NoSqz(False),LowSqz(False),MidSqz(False),HighSqz(False); var : mom(0),iff_1(0),iff_2(0),mom_color(0),sq_color(0); KC_basis = ma(close, length); devKC = ma(TrueRange, length); KC_upper_high = KC_basis + devKC * KC_mult_high; KC_lower_high = KC_basis - devKC * KC_mult_high; KC_upper_mid = KC_basis + devKC * KC_mult_mid; KC_lower_mid = KC_basis - devKC * KC_mult_mid; KC_upper_low = KC_basis + devKC * KC_mult_low; KC_lower_low = KC_basis - devKC * KC_mult_low; //SQUEEZE CONDITIONS NoSqz = BB_lower < KC_lower_low or BB_upper > KC_upper_low; //NO SQUEEZE: GREEN LowSqz = BB_lower >= KC_lower_low or BB_upper <= KC_upper_low; //LOW COMPRESSION: BLACK MidSqz = BB_lower >= KC_lower_mid or BB_upper <= KC_upper_mid ;//MID COMPRESSION: RED HighSqz = BB_lower >= KC_lower_high or BB_upper <= KC_upper_high; //HIGH COMPRESSION: ORANGE //MOMENTUM OSCILLATOR mom = LRL(close - avg(avg(highest(high, length), lowest(low, length)),ma(close, length)), length); //MOMENTUM HISTOGRAM COLOR iff_1 = iff(mom > iff(isnan(mom[1])==true,0,mom[1]) , Cyan , Blue); iff_2 = iff(mom < iff(isnan(mom[1])==true,0,mom[1]) , red , yellow); mom_color = iff(mom > 0 , iff_1 , iff_2); //SQUEEZE DOTS COLOR sq_color = iff(HighSqz , orange ,IFf(MidSqz , red ,IFf(LowSqz , black , green))); if mom_color == Yellow and mom_color[1] == Red Then Find(1); 즐거운 하루되세요 > 행복만땅 님이 쓴 글입니다. > 제목 : 검색식 부탁합니다 > 검색시 부탁드립니다. 조건은 하부 지표에서 1) 색상이 적색에서 노랑색으로 변하는 지점에서의 검색식 부탁합니다 input : length(20),BB_mult(2.0); var : BB_basis(0),dev(0),BB_upper(0),BB_lower(0); BB_basis = ma(close, length); dev = BB_mult * std(close, length); BB_upper = BB_basis + dev; BB_lower = BB_basis - dev; input : KC_mult_high(1.0); input : KC_mult_mid(1.5); input : KC_mult_low(2.0); var : KC_basis(0),devKC(0); var : KC_upper_high(0),KC_lower_high(0); var : KC_upper_mid(0),KC_lower_mid(0); var : KC_upper_low(0),KC_lower_low(0); var : NoSqz(False),LowSqz(False),MidSqz(False),HighSqz(False); var : mom(0),iff_1(0),iff_2(0),mom_color(0),sq_color(0); KC_basis = ma(close, length); devKC = ma(TrueRange, length); KC_upper_high = KC_basis + devKC * KC_mult_high; KC_lower_high = KC_basis - devKC * KC_mult_high; KC_upper_mid = KC_basis + devKC * KC_mult_mid; KC_lower_mid = KC_basis - devKC * KC_mult_mid; KC_upper_low = KC_basis + devKC * KC_mult_low; KC_lower_low = KC_basis - devKC * KC_mult_low; //SQUEEZE CONDITIONS NoSqz = BB_lower < KC_lower_low or BB_upper > KC_upper_low; //NO SQUEEZE: GREEN LowSqz = BB_lower >= KC_lower_low or BB_upper <= KC_upper_low; //LOW COMPRESSION: BLACK MidSqz = BB_lower >= KC_lower_mid or BB_upper <= KC_upper_mid ;//MID COMPRESSION: RED HighSqz = BB_lower >= KC_lower_high or BB_upper <= KC_upper_high; //HIGH COMPRESSION: ORANGE //MOMENTUM OSCILLATOR mom = LRL(close - avg(avg(highest(high, length), lowest(low, length)),ma(close, length)), length); //MOMENTUM HISTOGRAM COLOR iff_1 = iff(mom > iff(isnan(mom[1])==true,0,mom[1]) , Cyan , Blue); iff_2 = iff(mom < iff(isnan(mom[1])==true,0,mom[1]) , red , yellow); mom_color = iff(mom > 0 , iff_1 , iff_2); //SQUEEZE DOTS COLOR sq_color = iff(HighSqz , orange ,IFf(MidSqz , red ,IFf(LowSqz , black , green))); //PLOTS plot1(mom, "MOM",mom_color); plot2(0, "SQZ", sq_color);