커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

문의 드립니다.

아래 식에서 20 120 이평선을 추가하여 정배열 일때만 TRIX 0선아래 크로스 반복 매수 진입하도록 하고자 합니다.(피라미딩 방식) 손절(청산)은 TRIX 0선이 아니라 20 120 이평 정배열에서 주가가 120 이평선을 아래로 이탈할 때 매도 청산완료 부탁드립니다. Input : Period(5), sigPeriod(10),수량(1); var : TRIXv(0),TRIXs(0); TRIXv = TRIX(Period); TRIXs = ema(TRIXv,sigPeriod); if C > DayOpen and CrossUp(TRIXv,TRIXs) and TRIXv < 0 Then Buy("b",OnClose,Def,수량); if MarketPosition == 1 and CrossDown(c,DayOpen) Then ExitLong("bx");
프로필 이미지
선물대장
2024-08-08
1093
글번호 182356
시스템

외국인 님에 의해서 삭제되었습니다.

프로필 이미지
외국인
2024-08-08
2
글번호 182355
지표
답변완료

문의드립니다.

키움 수식인데 변환 좀 부탁드립니다. 제가 하기에는 어려워서요 부탁드립니다. 분봉 일봉 모두 사용 가능용으로 부탁드립니다. a=adx(11); b=sum(v*((Pow((C-L),2) - Pow((H-C),2))/(H-L))); bb=BBandsUp(10,2); en=EnvelopeUp(10,2); s=(highest(high,26)+lowest(low,26))/2; 대금=v*(h+l+c+o)/4; x=sum(v); y=valuewhen(1,date(1)!=date,x(1)); z=x-y; 전거래량=valuewhen(1,date(1)!=date,z(1)); highest(h,3,1)<=c and ma(c,5)>ma(c,20) and ma(c,20)>ma(c,60) and bb>en and c>bb and c>en and a>a(1) and c>s and b>=b(1) and v>v(1)*1.1 and (대금>2000000000 or sum(v)>전거래량)
프로필 이미지
정도령7
2024-08-08
826
글번호 182354
종목검색

para 님에 의해서 삭제되었습니다.

프로필 이미지
para
2024-08-08
5
글번호 182353
지표
답변완료

문의

아래 수식은 b1은 한번만 거래하고, b2거래 부터는 장종료까지 제한없이 계속 반복거래하는 수식입니다. 그리고 반복거래하는 b2에 경과봉1을 필터로 사용하고 있습니다. 요청하는 내용은 다음과 같습니다. b2거래가 1승을 할 때는 경과봉2(추가) 만큼 간격을 좁히고 싶습니다. 그러다 1패를 하면 경과봉1이 재적용되고 그러다 1승을 하면 경과봉2가 다시 적용됩니다. 이 내용을 수식에 반영해 주십시요. 항상 고맙습니다. ******************************************************************************* input : 경과봉1(100) if 진입수식1 then buy("b1"); if (TotalTrades == 0 or (TotalTrades >= 1 and BarsSinceExit(1) > 경과봉1)) and 진입수식2 then buy("b2");
프로필 이미지
목마와숙녀
2024-08-08
795
글번호 182349
시스템
답변완료

직전 저점, 직전 고점

다음의 지표 값을 부탁 드립니다. 1. 최근 발생한 저점의 값과 직전에 발생한 저점의 값을 구하는 지표 식. 2. 최근 발생한 고점의 값과 직전에 발생한 고점을 값을 구하는 지표 식.
프로필 이미지
너무조아
2024-08-08
971
글번호 182347
지표
답변완료

변환 부탁드립니다.

//@version=4 // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // &#169; colinmck study("QQE signals", overlay=true) RSI_Period = input(14, title='RSI Length') SF = input(5, title='RSI Smoothing') QQE = input(4.238, title='Fast QQE Factor') ThreshHold = input(10, title="Thresh-hold") src = close Wilders_Period = RSI_Period * 2 - 1 Rsi = rsi(src, RSI_Period) RsiMa = ema(Rsi, SF) AtrRsi = abs(RsiMa[1] - RsiMa) MaAtrRsi = ema(AtrRsi, Wilders_Period) dar = ema(MaAtrRsi, Wilders_Period) * QQE longband = 0.0 shortband = 0.0 trend = 0 DeltaFastAtrRsi = dar RSIndex = RsiMa newshortband = RSIndex + DeltaFastAtrRsi newlongband = RSIndex - DeltaFastAtrRsi longband := RSIndex[1] > longband[1] and RSIndex > longband[1] ? max(longband[1], newlongband) : newlongband shortband := RSIndex[1] < shortband[1] and RSIndex < shortband[1] ? min(shortband[1], newshortband) : newshortband cross_1 = cross(longband[1], RSIndex) trend := cross(RSIndex, shortband[1]) ? 1 : cross_1 ? -1 : nz(trend[1], 1) FastAtrRsiTL = trend == 1 ? longband : shortband // Find all the QQE Crosses QQExlong = 0 QQExlong := nz(QQExlong[1]) QQExshort = 0 QQExshort := nz(QQExshort[1]) QQExlong := FastAtrRsiTL < RSIndex ? QQExlong + 1 : 0 QQExshort := FastAtrRsiTL > RSIndex ? QQExshort + 1 : 0 //Conditions qqeLong = QQExlong == 1 ? FastAtrRsiTL[1] - 50 : na qqeShort = QQExshort == 1 ? FastAtrRsiTL[1] - 50 : na // Plotting plotshape(qqeLong, title="QQE long", text="Long", textcolor=color.white, style=shape.labelup, location=location.belowbar, color=color.green, transp=0, size=size.tiny) plotshape(qqeShort, title="QQE short", text="Short", textcolor=color.white, style=shape.labeldown, location=location.abovebar, color=color.red, transp=0, size=size.tiny) // Alerts alertcondition(qqeLong, title="Long", message="Long") alertcondition(qqeShort, title="Short", message="Short")
프로필 이미지
삼손감자
2024-08-08
986
글번호 182346
지표

우유 님에 의해서 삭제되었습니다.

프로필 이미지
우유
2024-08-08
154
글번호 182345
시스템
답변완료

거래량 수식 수정

늘 감사합니다 1. 아래 수식에 굵기를 추가해 주세요. 2. 지정시간 까지만 나오게 해 주세요 15시 까지인데 다음날로 이어서 연결되어 나옵니다 당일 분은 당일 분으로 마감하게 해주세요 -------------------- if Bdate != Bdate[1] Then { count = 0; } if data1(V >= 거래량 and stime >= 090500 and stime < 153000) Then { count = count+1; v1[count] = data1(O); v2[count] = data1(H); v3[count] = data1(L); v4[count] = data1(C); TL1[count] = TL_New_Self(sDate,sTime,V1[count],sDate,sTime,V1[count]); TL2[count] = TL_New_Self(sDate,sTime,V2[count],sDate,sTime,V2[count]); TL3[count] = TL_New_Self(sDate,sTime,V3[count],sDate,sTime,V3[count]); TL4[count] = TL_New_Self(sDate,sTime,V4[count],sDate,sTime,V4[count]); TL_SetColor(TL1[count],Green); TL_SetColor(TL2[count],Red); TL_SetColor(TL3[count],Blue); TL_SetColor(TL4[count],Black); } Else { For cnt = 1 to count { TL_SetEnd(TL1[cnt],sDate,sTime,V1[cnt]); TL_SetEnd(TL2[cnt],sDate,sTime,V2[cnt]); TL_SetEnd(TL3[cnt],sDate,sTime,V3[cnt]); TL_SetEnd(TL4[cnt],sDate,sTime,V4[cnt]); } } ----------------------------- 너무 잘 쓰고 있습니다. 감사합니다.
프로필 이미지
상암동
2024-08-08
677
글번호 182344
지표
답변완료

함수요청

안녕하세요? 아래의 전략에 대해 스크립트 작성 부탁드립니다. 일봉상 선물 거래를 하고자 합니다. 주가가 최근 15일 가운데 12일 오르되 최근 15일 동안 20% 이상 상승하고 거래량이 최근 15일 동안 25% 증가하면 익봉 시가에 매수진입 주가가 최근 15일 가운데 12일 하락하되 최근 15일 동안 20% 이상 하락하고 거래량이 최근 15일 동안 25% 감소하면 익봉 시가에 매도진입
프로필 이미지
흰둥이아빠
2024-08-08
877
글번호 182343
시스템