커뮤니티

이 지표를 종목 검색으로 바꿔 주세요.

프로필 이미지
베어샘
2023-09-05 20:59:40
770
글번호 172176
답변완료
input :src(close),i_fastEMA(12),i_slowEMA(25),i_defEMA(25),i_bothEMAs(true); var : ok(0),countBuy(0),countSell(0); var : v_fastEMA(0),v_slowEMA(0),v_biasEMA(0),emaColor(0); var : buycond(False),Sellcond(False); var : buysignal(False),Sellsignal(False); var : bull(False),bear(False),tx(0); v_fastEMA = ema(src, i_fastEMA); v_slowEMA = ema(src, i_slowEMA); v_biasEMA = ema(src, i_defEMA); emaColor = iff(v_fastEMA > v_slowEMA ,green , iff(v_fastEMA < v_slowEMA , red ,Orange)); // Colour the bars buycond = v_fastEMA > v_slowEMA; sellcond = v_fastEMA < v_slowEMA; if buycond Then { countBuy = countBuy+1; countSell = 0; } if sellcond Then { countSell = countSell+ 1; countBuy = 0; } buysignal = countBuy < 2 and countBuy > 0 and countSell < 1 and buycond and buycond[1] == False; sellsignal = countSell > 0 and countSell < 2 and countBuy < 1 and sellcond and sellcond[1] == False; if buysignal Then PlotPaintBar(h,l,"강조",Green); if sellsignal Then PlotPaintBar(h,l,"강조",red); bull = countBuy > 1; bear = countSell > 1; if bull Then PlotPaintBar(h,l,"강조",Green); if bear Then PlotPaintBar(h,l,"강조",red); 그린 매수 신호 나올 때 종목 검색 되도록 해주세요.
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-09-06 09:53:33

안녕하세요 예스스탁입니다. input :src(close),i_fastEMA(12),i_slowEMA(25),i_defEMA(25),i_bothEMAs(true); var : ok(0),countBuy(0),countSell(0); var : v_fastEMA(0),v_slowEMA(0),v_biasEMA(0),emaColor(0); var : buycond(False),Sellcond(False); var : buysignal(False),Sellsignal(False); var : bull(False),bear(False),tx(0); v_fastEMA = ema(src, i_fastEMA); v_slowEMA = ema(src, i_slowEMA); v_biasEMA = ema(src, i_defEMA); emaColor = iff(v_fastEMA > v_slowEMA ,green , iff(v_fastEMA < v_slowEMA , red ,Orange)); // Colour the bars buycond = v_fastEMA > v_slowEMA; sellcond = v_fastEMA < v_slowEMA; if buycond Then { countBuy = countBuy+1; countSell = 0; } if sellcond Then { countSell = countSell+ 1; countBuy = 0; } buysignal = countBuy < 2 and countBuy > 0 and countSell < 1 and buycond and buycond[1] == False; sellsignal = countSell > 0 and countSell < 2 and countBuy < 1 and sellcond and sellcond[1] == False; if buysignal Then PlotPaintBar(h,l,"강조",Green); if sellsignal Then PlotPaintBar(h,l,"강조",red); bull = countBuy > 1; bear = countSell > 1; if bull Then Find(1); 즐거운 하루되세요 > 베어샘 님이 쓴 글입니다. > 제목 : 이 지표를 종목 검색으로 바꿔 주세요. > input :src(close),i_fastEMA(12),i_slowEMA(25),i_defEMA(25),i_bothEMAs(true); var : ok(0),countBuy(0),countSell(0); var : v_fastEMA(0),v_slowEMA(0),v_biasEMA(0),emaColor(0); var : buycond(False),Sellcond(False); var : buysignal(False),Sellsignal(False); var : bull(False),bear(False),tx(0); v_fastEMA = ema(src, i_fastEMA); v_slowEMA = ema(src, i_slowEMA); v_biasEMA = ema(src, i_defEMA); emaColor = iff(v_fastEMA > v_slowEMA ,green , iff(v_fastEMA < v_slowEMA , red ,Orange)); // Colour the bars buycond = v_fastEMA > v_slowEMA; sellcond = v_fastEMA < v_slowEMA; if buycond Then { countBuy = countBuy+1; countSell = 0; } if sellcond Then { countSell = countSell+ 1; countBuy = 0; } buysignal = countBuy < 2 and countBuy > 0 and countSell < 1 and buycond and buycond[1] == False; sellsignal = countSell > 0 and countSell < 2 and countBuy < 1 and sellcond and sellcond[1] == False; if buysignal Then PlotPaintBar(h,l,"강조",Green); if sellsignal Then PlotPaintBar(h,l,"강조",red); bull = countBuy > 1; bear = countSell > 1; if bull Then PlotPaintBar(h,l,"강조",Green); if bear Then PlotPaintBar(h,l,"강조",red); 그린 매수 신호 나올 때 종목 검색 되도록 해주세요.