답변완료
경과봉 적용 시점
두번째 진입에서 경과봉을 필터로 사용하고 있습니다.경과봉 적용할 때 시간을 넣어서 필터로 사용하고 싶습니다.기존 수식input : 경과봉(0),b2(70),진입눌림2(18),진입돌파2(6);요청수식input : 경과봉적용시작(120000), 경과봉적용해제(140000),경과봉(0),b2(70),진입눌림2(18),진입돌파2(6);위 내용대로 작동되도록 수식 추가 부탁드립니다.항상 고맙습니다.*****************************************************************************************************************************input : 최대(999999),최소(700);input : 진입시간(084500),진입제한시간(144500);input : 거래횟수(50);input : b1(95),진입눌림1(28),진입돌파1(0);input : 경과봉(0),b2(70),진입눌림2(18),진입돌파2(6);var : T1(0),entry(0),LL(0),EH(0),E1(0),H1(0),i1(0),S1(0),L1(0),V1(0);var : Tcond(false);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; LL = L;}if stime >= 진입시간 then{ if L < LL Then LL = L; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if MarketPosition == 0 and entry == 0 Then{ if E1 == 0 and C >= LL+PriceScale*B1 Then{ E1 = 1; H1 = H; i1 = index; V1 = LL; //시작점 종가 } if E1 == 1 and index > i1 then{ if H > H1 Then H1 = H; #저가가 시작봉종가보다 클때만 눌림체크 if L >= V1 and L <= H1-PriceScale*진입눌림1 Then{ E1 = 2; i1 = index; S1 = H1; } } //시작점 종가보다 낮은 가격이 발생하면 초기화 if E1 >= 1 and L < V1 Then{ E1 = 0; LL = L; } if E1 == 2 and index > i1 and C >= S1+PriceScale*진입돌파1 and Tcond == true and 최대 >= C and C >= 최소 Then{ buy("b1"); } } if TotalTrades > TotalTrades[1] Then{ E1 = 0; LL = L; } if L < LL Then LL = L; if MarketPosition == 0 and entry >= 1 and entry < 거래횟수 Then{ if E1 == 0 and C >= LL+PriceScale*B2 Then{ E1 = 1; H1 = H; i1 = index; V1 = LL; //시작점 종가 } if E1 == 1 and index > i1 then{ if H > H1 Then H1 = H; #저가가 시작봉종가보다 클때만 눌림체크 if L >= V1 and L <= H1-PriceScale*진입눌림2 Then{ E1 = 2; i1 = index; S1 = H1; } } //시작점 종가보다 낮은 가격이 발생하면 초기화 if E1 >= 1 and L < V1 Then{ E1 = 0; LL = L; } if (TotalTrades == 0 or (TotalTrades >= 1 and BarsSinceExit(1) > 경과봉)) and E1 == 2 and index > i1 and C >= S1+PriceScale*진입돌파2 and Tcond == true and 최대 >= C and C >= 최소 Then{ buy("b2"); } }}
2026-01-30
261
글번호 230209
시스템
답변완료
문의 드립니다
TL_SetColor(TL1, Red);TL_SetExtRight(TL1,true);TL_SetSize(TL1,8);if var2 <> var2[1] Then { TL_delete(TL2); Ldate0 = sdate; Ldate1 = sDate[Length]; Ltime0 = stime; Ltime1 = sTime[Length]; Lval = L[Length]; TL2 = TL_New(Ldate1, Ltime1, Lval, Ldate0, Ltime0, Lval); }TL_SetColor(TL2, Blue);TL_SetExtRight(TL2,true);TL_SetSize(TL2,8);-------------------------------------TL 사이즈를 8로 설정해도 라인이 굵어지지 않고 그냥 기본으로 나옵니다TL 라인 굵기를 두껍게 하고 싶은데 ...설정하려면 어떻게 해야하나요?두께를 임의로 설정할수 있음 좋겠어요감사합니다
2026-01-30
117
글번호 230208
지표
답변완료
종목검색식 요청드립니다.
아래 두가지 키움신호에 대한 종목을 검색하는 검색식을 만들고 싶습니다. 도움 부탁드립니다.1. 키움신호 (기간, 기간1, 기간2, 수렴은 입력값은 조정가능하게 부탁드립니다.)A=(highest(high,기간)+lowest(low,기간))/2;A1=(highest(high,기간1)+lowest(low,기간1))/2;A2=(highest(high,기간2)+lowest(low,기간2))/2;B=MAX(A,A1,A2);B1=MIN(A,A1,A2);B1*수렴>B && O<B1 && C>B && (A>A(1) OR A1>A1(1) OR A2>A2(1))2. 키움신호 (Period2, D2, midP 입력값은 조정가능하게 부탁드립니다.)전환=shift((highest(high,9)+lowest(low,9))/2,-26+1);기준=shift((highest(high,26)+lowest(low,26))/2,-26+1);Bu=BBandsUp(Period2, D2);행복=(Highest(Bu, midP) + Lowest(Bu, midP))/2;A1 = (eavg(c(25),Period2)) + (D2*stdev((C(25)+H(25)+L(25))/3,Period2));A=crossup(min(전환,기준),min(행복,A1));shift(A,25)
2026-01-30
169
글번호 230201
종목검색