답변완료
부탁드립니다
M=DATE%10000-DATE%100; D1=M!=M(1); S=valuewhen(1,D1,O); S지표값이 N일전에 10%하락했고 오늘까지 유지중인 종목검색식 부틱드립니다 N일전은 3로 설정해주세요2, A=Ma(가격,기간,이평종류); B=Ma(가격,기준,이평종류); A/B*100 지표조건 가격 시가 기간 1 기준 5 이평종류 단순 종목 검색식 부탁드립니다3,baseDis = (C/avg(C,per))*100;rsiup = avg(max(C-C(1),0),rsiper);rsiDown = avg(max(C(1)-C,0),rsiper);rsival = 100-(100/(1+rsiup/rsiDown));rsiweight = if(rsival <=50, 0.5+(rsival*0.01), 0.5+((rsival - 50)*0.03));volavg =avg(v,volper);volweight = if(volavg !=0,v/volavg,1.0);rsiVolweight = if(rsiVal <30 and Volweight > 1.2,0.8, if(rsiVal > 70 and volweight > 1.2,1.3,1,0));weightedDis = baseDis*rsiweight*volweight*rsivolweight;smoothedweightedDis = avg(weightedDis,3);A= RSI(14);조건 = (smoothedweightedDis(1)<100 ORsmoothedweightedDis<100) &&(A(1)<=30 OR A<=30);지표조건per 20volper 20rsiper 14종목 검색식 부탁 드립니다
답변완료
시스템매매 관련 문의합니다..^^*
*항상 빠른답변주어서 감사드립니다... 아래 수식은 예스랭귀지 시스템 매매인데, 한가지 만 더 추가를 할려고 합니다..특정시간대 지정입니다..원하는것은 15분봉 매매를 하고 있는데, 첫봉(15분)매수만 하지 않도록 설정 부탁드립니다...(단, 매도는 시간제약 없도록 부탁드립니다...)매수만 0900시 정규장시작부터 0915분까지(첫봉)매수회피 입니다...(시간대 지정을 변수로 지정 해주시면 고맙겠습니다..)매도는 0900시 정규장시작 정상적으로 매도 입니다...부탁드립니다..^^*input : 시작일(20250702),갭상승(2),P(20);Var : value(0),mav(0);Var1=rsi(32);mav = ma(c,p);value = 0;if sDate >= 시작일 and DayOpen <= DayClose(1)*(1+갭상승/100) Then{# 매수 / 매도청산If CCI(9) > 0 Then value = 1;If MACD(12,26) > 0 Then value = value+1;If DIPlus(14) > DIMinus(14) Then value = value+1;If StochasticsK(12,5) > StochasticsD(12,5,5) Then value = value+1;# 매수/매도청산If value >= 3 and mav > mav[1] Then{ Buy("b1");} value = 0;var : S1(0),D1(0),TM(0),T1(0);if Bdate != Bdate[1] Then{ S1 = TimeToMinutes(stime); D1 = sdate;}if D1 > 0 then{ if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; if MarketPosition == 0 or (MarketPosition == 1 and TM >= T1+15) Then { T1 = TM; Buy("b2"); } }if rsi(14)<32 Then buy("b3");}# 매도/매수청산If CCI(9) < 0 Then value = 1;If MACD(12,26) < 0 Then value = value+1;If DIPlus(14) < DIMinus(14) Thenvalue = value+1;If StochasticsK(12,5) < StochasticsD(12,5,5) Then value = value+1;If value >= 3 Then{ SetStopProfittarget(7, PercentStop);}
답변완료
수식문의드립니댜
INPUT : 기간1(120),기간2(240),PP(1),DD(2),k1(38.2),k2(61.8),k3(50);VAR : A(0), B(0), AA(0),HH(0),LL(0),PB1(0),PB2(0);A=Highest(V,기간1); HH=Highest(H,기간2);LL = Lowest(L,기간2);B=Valuewhen(1, V>A(1), (O+C+L+H+C)/5); AA= B*(1-DD/100)PB1=(HH-LL)*(K1/100)+LLPB2=(HH-LL)*(K2/100)+LL검색1-->종가가 AA or AA[1] 선 _위에 있다.검색2--> 종가가 AA or AA[1] 선 _위에 있고 종가가 PB1 or PB2 가 5%안에 있다
답변완료
부탁드립니다
수고하십니다아래수식을 오류 없게 수정부탁드립니다Input: Period(14);Input: adx_width1(2), adx_width2(4), adx_width3(7);Input: plus_gold_width(3), plus_dead_width(1);Input: minus_dead_width(3), minus_gold_width(1);Input: price_offset(0.5);Var: ADXv(0), DP(0), DM(0);Var: adx_line_width(0), plus_line_width(0), minus_line_width(0);Var: text_color(0), display_price(0);//Calculate ADX valuesADXv = ADX(Period);DP = DiPlus(Period);DM = DiMinus(Period);//Determine ADX line width based on ADX levelIf ADXv >= 20 and ADXv <= 50 Then adx_line_width = adx_width2Else If ADXv < 20 Then adx_line_width = adx_width1Else adx_line_width = adx_width3;//Determine +DI line widthIf DP > DM Then plus_line_width = plus_gold_widthElse plus_line_width = plus_dead_width;//Determine -DI line widthIf DP < DM Then minus_line_width = minus_dead_widthElse minus_line_width = minus_gold_width;//Plot indicator linesPlot1(ADXv, "ADX", Def, Def, adx_line_width);Plot2(DP, "+DI", Def, Def, plus_line_width);Plot3(DM, "-DI", Def, Def, minus_line_width);//Display price with ADX strength and DI conditiondisplay_price = High + price_offset;If ADXv >= 20 and ADXv <= 50 Then Begin If DP > DM Then Begin text_color = RGB(0, 255, 255); //Cyan DrawText("ADX:" + NumToStr(ADXv, 2) + " +DI>-DI", display_price, text_color); End Else Begin text_color = RGB(255, 255, 0); //Yellow DrawText("ADX:" + NumToStr(ADXv, 2) + " +DI<-DI", display_price, text_color); End;EndElse If ADXv < 20 Then Begin text_color = RGB(128, 128, 128); //Gray DrawText("ADX:" + NumToStr(ADXv, 2) + " Weak", display_price, text_color);EndElse Begin If DP > DM Then Begin text_color = RGB(255, 165, 0); //Orange DrawText("ADX:" + NumToStr(ADXv, 2) + " Strong +DI", display_price, text_color); End Else Begin text_color = RGB(255, 0, 0); //Red DrawText("ADX:" + NumToStr(ADXv, 2) + " Strong -DI", display_price, text_color); End;End;
답변완료
보조지표 분봉 거래량에서 매도량 매수량 구분표시
아래 사진처럼 매수량과 매도량을 전체 거래량 비율로 나타나게 할 수 있는 것 같은데 스스로 잘 모르겠습니다.아래처럼 매도량이 아래에 있고 매수량이 그 위에 있게 부탁립니다.혹시 참고가 되실 것 같아 다른 프로그램의 코드를 복사해서 붙여 놓았습니다.//////////////////////////////////////////////////////////////////////////////////////////////////////////////////Buy/Sell volumetotalamp = (high-low)/low*100a = close > open ? ((open-low)/low*100)+((high-close)/close*100) : ((close-low)/low*100)+((high-open)/open*100)b = a*1/totalamp/2volBuy = close > open ? volume*b + (volume-(volume*b*2)) : volume*bvolSell = close < open ? volume*b + (volume-(volume*b*2)) : volume*bptotal = plot(totalVol ? volBuy + volSell : na, title="Total Volume", style=plot.style_columns, color=close > open ? color.new(#0ecb81, 50) : color.new(#f6465d, 50))pbuy = plot(volBuy, title="Buy Volume", style=plot.style_columns, color=color.new(#0ecb81, 0))psell = plot(volSell * -1, title="Sell Volume", style=plot.style_columns, color=color.new(#f6465d, 0))hline(0, linestyle=hline.style_dotted, color=#181c27, editable=false)
2025-10-31
114
글번호 227557
지표
답변완료
수식 부탁합니다
아래 키움수식 예스트레이더 검색식 부탁합니다.대금=(H+O+L+C)/4*V/100000000; A=IF(C>O,대금,0); B=SUM(A); D=ValueWhen(1,Date(1)!=Date,B(1)); 양대금=B-D; A1=IF(C<O,대금,0); B1=SUM(A1); D1=ValueWhen(1,Date(1)!=Date,B1(1)); 음대금=B1-D1; CROSSUP(양대금,음대금)
2025-10-31
123
글번호 227552
종목검색