답변완료
시스템매매 관련 문의합니다..^^*
*항상 빠른답변주어서 감사드립니다... 아래 수식은 예스랭귀지 시스템 매매인데, 한가지 만 더 추가를 할려고 합니다..특정시간대 지정입니다..원하는것은 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);}
2025-11-02
215
글번호 227562
시스템
답변완료
수식문의드립니댜
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%안에 있다
2025-11-01
225
글번호 227561
종목검색
답변완료
부탁드립니다
수고하십니다아래수식을 오류 없게 수정부탁드립니다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;
2025-11-01
234
글번호 227558
지표
답변완료
보조지표 분봉 거래량에서 매도량 매수량 구분표시
아래 사진처럼 매수량과 매도량을 전체 거래량 비율로 나타나게 할 수 있는 것 같은데 스스로 잘 모르겠습니다.아래처럼 매도량이 아래에 있고 매수량이 그 위에 있게 부탁립니다.혹시 참고가 되실 것 같아 다른 프로그램의 코드를 복사해서 붙여 놓았습니다.//////////////////////////////////////////////////////////////////////////////////////////////////////////////////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
324
글번호 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
238
글번호 227552
종목검색
답변완료
문의
데이트레이딩084500부터 154500까지 거래아래 수식은 거래횟수 20회까지 허용, 누적패수 3회면 거래중지 수식입니다.연속으로 2패할 경우, "거래횟수" 20회를 3회로 변동하는 수식을 요청드립니다.어제 요청드리고 답변 받은 내용은거래횟수 20회까지 허용, 누적패수 5회면 거래중지 수식이었고 연속으로 3패할 경우 , "누적패수" 5회를 4회로 조정하는 수식을 요청드린 바 있습니다. 위 내용은 "거래횟수" 조정입니다. 어제 것과 다르므로 참고하시라고 적었습니다.항상 고맙습니다.************************************************************************************************************************************************input : 진입시간(084700),진입제한시간(125000);input : 거래횟수(20),누적패수(3);input : b1(54),진입눌림1(6),진입돌파1(4);input : b2(142),진입눌림2(6),진입돌파2(4);input : als(42),atr1(0),atr2(112);input : bls(70),btr1(0),btr2(132);var : T1(0),entry(0),HH(0),LL(0),EH(0),EL(0),E1(0),H1(0),i1(0),S1(0),L1(0),V1(0);var : Tcond(false);Var : loss(0); if bdate != bdate[1] Then loss = 0; if TotalTrades > TotalTrades[1] and PositionProfit(1) < 0 Then loss = loss+1; if (sdate != sdate[1] and stime >= 진입시간) or (sdate == sdate[1] and stime >= 진입시간 and stime[1] < 진입시간) Then Tcond = true; if (sdate != sdate[1] and stime >= 진입제한시간) or (sdate == sdate[1] and stime >= 진입제한시간 and stime[1] < 진입제한시간) Then Tcond = false; if (sdate != sdate[1] and stime >= 진입시간) or (sdate == sdate[1] and stime >= 진입시간 and stime[1] < 진입시간) Then{ T1 = TotalTrades; E1 = 0; HH = H; } if stime >= 진입시간 then{ if H > HH Then HH = H; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if MarketPosition == 0 and entry == 0 Then{ if E1 == 0 and C <= HH-PriceScale*B1 Then{ E1 = 1; L1 = L; i1 = index; V1 = HH; //시작점 종가 } if E1 == 1 and index > i1 then{ if L < L1 Then L1 = L; #고가가 시작봉종가보다 작을 때만 눌림체크 if H <= V1 and H >= L1+PriceScale*진입눌림1 Then{ E1 = 2; i1 = index; S1 = L1; } } //시작점 종가보다 높은 가격이 발생하면 초기화 if E1 >= 1 and H > V1 Then{ E1 = 0; HH = H; } if loss < 누적패수 and E1 == 2 and index > i1 and C <= S1-PriceScale*진입돌파1 and Tcond == true Then{ sell("s1"); } } if TotalTrades > TotalTrades[1] Then{ E1 = 0; HH = H; } if H > HH Then HH = H; if MarketPosition == 0 and entry >= 1 and entry < 거래횟수 Then{ if E1 == 0 and C <= HH-PriceScale*B2 Then{ E1 = 1; L1 = L; i1 = index; } if E1 == 1 and index > i1 then{ if L < L1 Then L1 = L; if H >= L1+PriceScale*진입눌림2 Then{ E1 = 2; i1 = index; S1 = L1; } } if loss < 누적패수 and E1 == 2 and index > i1 and C <= S1-PriceScale*진입돌파2 and Tcond == true Then{ sell("s2"); E1 = 0; } }} if MarketPosition== -1 Then{ if IsEntryName("s1") == true Then { SetStopLoss(PriceScale*als,PointStop); SetStopTrailing(PriceScale*atr2,PriceScale*atr1,PointStop,1); } Else if IsEntryName("s2") == true Then { SetStopLoss(PriceScale*bls,PointStop); SetStopTrailing(PriceScale*btr2,PriceScale*btr1,PointStop,1); } Else { SetStopLoss(0); SetStopTrailing(0,0); }}
2025-10-31
233
글번호 227548
시스템