커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

수식 요 청

Inputs : Period(20), Sence(1.5), CC_DN(Yellow); Vars: VLineUp(0), VLineDn(0), HHighest(0), LLowest(0), JustChanged(FALSE), VLine(0), DBN(0),T(0); Array: Highs[35](0), Lows[35](0), RRange[35](0), UpWave[1](FALSE), DnWave[1](FALSE); If STime == 180000 Then DBN = 0; DBN = DBN + 1; Var1 = Period; Var2 = Var1 - 1; Var3 = Var1 - 2; Var5 = Sence; Var6 = H-L; JustChanged = FALSE; if CurrentBar <= Var2 then begin Highs[CurrentBar] = Close; Lows[CurrentBar] = Close; RRange[CurrentBar] = (H-L) /2; end; if CurrentBar == Var1 then begin if Highs[Var2] >= Highs[Var3] then begin UpWave[1] = TRUE; HHighest = Highs[Var2]; VLineUp = HHighest - (Var5 * MA(Var6,Var2)); #Plot1(VLineUp,"VLineUp"); end; if Highs[Var2] < Highs[Var3] then begin DnWave[1] = TRUE; LLowest = Lows[Var2]; VLineDn = LLowest + (Var5 * MA(Var6,Var2)); #Plot2(VLineDn,"VLineDn"); end; end; if CurrentBar > Var1 then begin if DnWave[1] and Close > VLineDn then begin DnWave[1] = FALSE; UpWave[1] = TRUE; JustChanged = TRUE; HHighest = Close; LLowest = 0; end; if UpWave[1] and Close < VLineUp and JustChanged == FALSE then begin UpWave[1] = FALSE; DnWave[1] = TRUE; JustChanged = TRUE; LLowest = Close; HHighest = 0; end; if JustChanged == FALSE then begin if Close > HHighest then HHighest = Close; else if Close < LLowest then LLowest = Close; end; VLineUp = HHighest - (Var5 * MA(Var6,Var2)); VLineDn = LLowest + (Var5 * MA(Var6,Var2)); if UpWave[1] then T = 1; else if DnWave[1] then T = -1; end; Input : BBP(120), MultiD(2); var : BBmd(0),BBup(0),BBdn(0); BBmd = ma(C,Period); BBup = BollBandUp(BBP,MultiD); BBdn = BollBandDown(BBP,MultiD); if CrossDown(C,BBup) and t == -1 Then sell(); if crossup(C,BBdn) and t == 1 Then buy(); 안녕하세요 위식에서 수정부탁드림니다 매수조건 HP선이 이평60 선위에있는 상태에서 Hp선을 터치나 하락후 상승돌파시 sw2선이 양선일때 매수 손절청산 이평60.hp선하향돌파시. 매도 HP선이 이평60 선아래에있고 sw2선이 음선일때 매도 손절청산 이평60.hp선 상향돌파시
프로필 이미지
아트정
2024-03-11
854
글번호 177333
시스템
답변완료

수식 부탁 합니다.

안녕하세요.키움수식을 변환 부탁 드립니다. **지표식 조건 = npreV(1)*(거래량비율/100) < V; HH = valuewhen(1,조건,H); LL = valuewhen(1,조건,L); HH **매수식 V()*1.5 < V and crossup(c,dayopen()) 항상 수고많으십니다.건강하세요.
프로필 이미지
사냥꾼
2024-03-10
902
글번호 177332
지표
답변완료

전략 작성 부탁드려요~

키움 기준으로 간단히 쓸께요 1.아래 내용을 예스트레이더 시스템 전략으로 부탁드려요 v1 = ValueWhen(1, crossup (trix,trixsignal), trixsignal); v2 = ValueWhen(2, crossup (trix,trixsignal), trixsignal); v3 = OBV(_PRICE_); v4 = MA(OBV, SignalPeriod, _MaType_); if ( v1> v2) and ( v4 > v4[1] ) 일 경우 매수 2. valuewhen을 사용자 함수로 저장하여 사용하고 싶은데 함수 수식 알려주세요. 3. 스톡케스틱 지표가 단순이평일때 지수이평 일때를 어떻게 전환하나요? 간단히 설정으로 못하나요?
프로필 이미지
TheLEDs
2024-03-10
870
글번호 177331
시스템
답변완료

도움요청합니다

1번 a=(nPredayclose(2)+nPredayclose(1)+dayclose())/3; crossup(c,a) 2번 a=predayhigh(); o < a and h > a and avg(v,1)>100000 전일고가관통 1분거래량10만주이상 1번 2번 각각 화살표 신호 분봉에서 사용할수있게 도와주셔요
프로필 이미지
gksk
2024-03-09
784
글번호 177330
지표
답변완료

도움요청합니다

1번 a=(nPredayclose(2)+nPredayclose(1)+dayclose())/3; crossup(c,a) 2번 a=predayhigh(); o < a and h > a and avg(v,1)>100000 전일고가관통 1분거래량10만주이상 1번 2번 각각 분봉에서 사용할수있게 도와주셔요 랭귀지에 사용할려고합니다
프로필 이미지
gksk
2024-03-09
921
글번호 177329
종목검색
답변완료

시스템식 요청드립니다.

안녕하세요 수식을 작성하는데 어려움이 있어 이렇게 글을 남깁니다. 위의 그림 2, 3번을 보시면 대략적으로 그림으로 작성하였습니다. 타점 에서 100주 매수후 30주 매도 하고 중간에 30주 매도 해서 총 40주가 남은 상태에서 타점 1로 60주 매수해서 다시 100주가 되도록 맞췄습니다. 그런데 타점1 5% 익절에서 30주만 매도가 되어야 하는데 그림 1 성능보고서를 보시면, 타점에서 30주매도, 타점 1에서 30주 매도 총 60주가 매도 되었습니다. 타점, 타점 1이 따로따로 시스템식이 적용 되는것 같은데 어떻게 해야 할지 부탁드리겠습니다. input : 베팅금(1000000); input : 시작날짜 (20240113),Xtime(110000) ; input : 타점(5000),손절(1000); var : P618(0),P5(0),P382(0),HH(0),LL(0); Var : day(0),EntryDay(0),entry(False),dd(0),ED(0); if sDate >= 시작날짜 Then { if Bdate != Bdate[1] Then { entry = true; day = day+1; dd = dd+1; } if HH == 0 or (HH > 0 and H > HH) Then HH = H; #고점갱신용 수식 if LL == 0 or (LL > 0 and L < LL) Then LL = L; #저점갱신용 수식 } P618 = LL+(HH-LL)*0.618; P5 = LL+(HH-LL)*0.5; P382 = LL+(HH-LL)*0.382; if MarketPosition == 0 and entry == true and c > 타점 Then Buy("타점",AtLimit,타점,Floor((베팅금)/타점)); if MarketPosition == 1 Then { Condition1 = False; If C >= HH[1] AND LatestExitName(0) == "타점 5%익절 P5청산" Then { Condition1 = true; Buy("타점1",OnClosE,DeF,Floor((베팅금)/타점*0.6)); } If C >= HH[1] AND LatestExitName(0) == "타점 10%익절 P618청산" Then { Condition1 = true; Buy("타점2",OnClosE,DeF,Floor((베팅금)/타점*0.8)); } #전봉대비 수량 감소(일부 청산발생을 위미) if CurrentContracts < CurrentContracts[1] Then { #청산가 저장 var1 = LatestExitPrice(0); if LatestExitName(0) == "타점 5%익절" or LatestExitName(0) == "타점1 5%익절" or LatestExitName(0) == "타점2 5%익절" Then Condition11 = true; if LatestExitName(0) == "타점 5%익절 P5청산" or LatestExitName(0) == "타점 10%익절" or LatestExitName(0) == "타점1 5%익절 P618청산" or LatestExitName(0) == "타점1 10%익절" or LatestExitName(0) == "타점2 5%익절 P618청산" or LatestExitName(0) == "타점2 10%익절" Then Condition22 = true; if LatestExitName(0) == "타점 5%익절 P382청산" or LatestExitName(0) == "타점 10%익절 P618청산" or LatestExitName(0) == "타점1 5%익절 P5청산" or LatestExitName(0) == "타점1 10%익절 P618청산" or LatestExitName(0) == "타점2 5%익절 P5청산" or LatestExitName(0) == "타점2 10%익절 P618청산" Then Condition33 = true; if LatestExitName(0) == "타점 10%익절 P5청산" or LatestExitName(0) == "타점1 10%익절 P5청산" or LatestExitName(0) == "타점2 10%익절 P5청산" Then Condition44 = true; } #전봉대비 수량 증가(추가 진입발생을 의미) if CurrentContracts > CurrentContracts[1] Then { #현재수량 저장 Var3 = CurrentContracts; Var4 = AvgEntryPrice; Condition11 = False; Condition22 = False; Condition33= False; Condition44 = False; } if (LatestEntryName(0) == "타점") and Condition1 == False Then ExitLong("타점 5%익절",AtLimit,AvgEntryPrice*1.05,"",Floor(베팅금/타점)*0.3); if (LatestExitName(0) == "타점 5%익절") and c <= P5 Then ExitLong("타점 5%익절 P5청산",AtLimit,P5,"",Floor(베팅금/타점)*0.3); if (LatestExitName(0) == "타점 5%익절 P5청산") and c <= P382 Then ExitLong("타점 5%익절 P382청산",AtLimit,P382,"",Floor(베팅금/타점)*0.4); if (LatestEntryName(0) == "타점") and Condition1 == False Then ExitLong("타점 10%익절",AtLimit,AvgEntryPrice*1.2,"",Floor(베팅금/타점)*0.3); if (LatestExitName(0) == "타점 10%익절") and c <= P618 Then ExitLong("타점 10%익절 P618청산",AtLimit,P618,"",Floor(베팅금/타점)*0.2); if (LatestExitName(0) == "타점 10%익절 P618청산") and c <= P5 Then ExitLong("타점 10%익절 P5청산",AtLimit,P5,"",Floor(베팅금/타점)*0.2); if (LatestEntryName(0) == "타점1")Then ExitLong("타점1 5%익절",AtLimit,latestEntryPrice*1.05,"",Floor(베팅금/타점)*0.3); if (LatestExitName(0) == "타점1 5%익절") and c <= P618 Then ExitLong("타점1 5%익절 P618청산",AtLimit,P618,"",Floor(베팅금/타점)*0.3); if (LatestExitName(0) == "타점1 5%익절 P618청산") and c <= 5 Then ExitLong("타점1 5%익절 P5청산",AtLimit,P5,"",Floor(베팅금/타점)*0.4); if (LatestEntryName(0) == "타점1") Then ExitLong("타점1 10%익절",AtLimit,latestEntryPrice*1.1,"",Floor(베팅금/타점)*0.3); if (LatestExitName(0) == "타점1 10%익절") and c <= P618 Then ExitLong("타점1 10%익절 P618청산",AtLimit,P618,"",Floor(베팅금/타점)*0.2); if (LatestExitName(0) == "타점1 10%익절 P618청산") and c <= P5 Then ExitLong("타점1 10%익절 P5청산",AtLimit,P5,"",(베팅금/타점)*0.2); if (LatestEntryName(0) == "타점2")Then ExitLong("타점2 5%익절",AtLimit,latestEntryPrice*1.05,"",Floor(베팅금/타점)*0.3); if (LatestExitName(0) == "타점2 5%익절") and c <= P618 Then ExitLong("타점2 5%익절 P618청산",AtLimit,P618,"",Floor(베팅금/타점)*0.3); if (LatestExitName(0) == "타점2 5%익절 P618청산") and c <= 5 Then ExitLong("타점2 5%익절 P5청산",AtLimit,P5,"",Floor(베팅금/타점)*0.4); if (LatestEntryName(0) == "타점2") Then ExitLong("타점2 10%익절",AtLimit,latestEntryPrice*1.1,"",(베팅금/타점)*0.3); if (LatestExitName(0) == "타점2 10%익절") and c <= P618 Then ExitLong("타점2 10%익절 P618청산",AtLimit,P618,"",Floor(베팅금/타점)*0.2); if (LatestExitName(0) == "타점2 10%익절 P618청산") and c <= P5 Then ExitLong("타점2 10%익절 P5청산",AtLimit,P5,"",Floor(베팅금/타점)*0.2); } if MarketPosition == 1 and sTime > xtime and 손절 >= c Then ExitLong("손절"); if MarketPosition == 1 and (LatestEntryName(0) == "타점1") and c <= latestEntryPrice*0.96 Then ExitLong("5%돌파손절"); if MarketPosition == 1 and (LatestEntryName(0) == "타점2") and c <= latestEntryPrice*0.96 Then ExitLong("10%돌파손절");
프로필 이미지
맴맴잉
2024-03-10
838
글번호 177327
시스템

러블리 님에 의해서 삭제되었습니다.

프로필 이미지
러블리
2024-03-09
1
글번호 177326
지표
답변완료

특정봉의 시가고가저가

안녕하세요. 이전 봉들 중에 특정기간 가격지표가 급등 또는 급락 한 특정봉의 시가,고가,저가를 변수로 지정하고 싶습니다.
프로필 이미지
chunsk
2024-03-09
806
글번호 177325
시스템
답변완료

부탁드립니다

1. 종가상 전봉보다 2배 이상 거래량이 늘어났을 경우에는 빨강색과 함께 고가를 기준으로 빨강색 우측 추세선으로, 전봉보다 2분1 이하로 거래량이 줄어들었을 경우에는 파란색과 함께 저가를 기준으로 파란색 우측 추세선으로 구현해 주세요 2. 매시간 종가를 기준으로 전 시간대보다 거래량이 늘어났으면 해당 봉 고가 위 부분에 빨강색 거래숫자를, 거래량이 줄어들었으면 해당 봉 저가 아래 부분에 파란색 거래숫자를 구현해 주세요 3. 종가상 직전 봉과 비교하여 거래량이 늘어났으면 해당 봉 고가를 기준으로 빨강색우측 추세선으로, 저가를 기준으로 파란색 우측 추세선으로 구현해 주세요 4. 매시간을 기준으로 종가상 거래량이 1주라도 더 늘어나 새롭게 갱신되면 해당봉에 빨강색으로 구현해 주세요 5. 매시간 최고가가 갱신되면 빨강색으로, 최저가가 갱신되면 파란색으로 구현해 주세요 6. 매일 최고가가 갱신되면 빨강색으로, 최저가가 갱신되면 파란색으로 구현해 주세요 7. 매주 최고가가 갱신되면 빨강색으로, 최저가가 갱신되면 파란색으로 구현해 주세요 고맙습니다.
프로필 이미지
서태공
2024-03-10
540
글번호 177324
강조

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

프로필 이미지
yojo
2024-03-09
20
글번호 177323
검색