커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

손절 후 조건 부합 시 매매 시작

수고하십니다. 아래 내용 문의 합니다. 볼린저밴드에서 종가가 상단밴드 상향이면 매도 종가가 하단밴드 하향이면 매도청산 +5Point 이면 손절매 전 매매가 손절이면 MyStopLoss = 1 종가가 밴드 이평 하향이면 MyStopLoss = 0 에서 (1) 손절 후 종가가 밴드 이평 하향 전까지는 매매 금지 (MyStopLoss = 1 유지) (2) 손절 후 종가가 밴드 이평 하향 후 부터 재 매매 시작 (MyStopLoss = 0 유지) (3) 손절이 발생하면 MyStopLoss = 1 유지 (1) ~ (3)번 실행 가능한 수식 부탁합니다 =============================== Input : Period(20), MultiD(2); var : MAv(0),BBup(0),BBdn(0),MyStopLoss(0); MAv = ma(C,Period); BBup = BollBandUp(Period,MultiD); BBdn = BollBandDown(Period,MultiD); if CrossUp(C,BBup) Then Sell("매도",AtMarket); if CrossDown(C,BBdn)Then ExitShort("매도청",AtMarket); SetStopLoss(5,PointStop); IF IsExitName("StopLoss",1) == True Then MyStopLoss = 1 ; if CrossDown(C,MAv) then MyStopLoss = 1 ;
프로필 이미지
멎진
2024-03-19
498
글번호 177625
시스템
답변완료

부탁드려요

if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; ii = 0; sum = 0; sum1 = 0; } 이 식의 해석을 제가 잘하는지 한번만 살펴주세요 1번줄: 만약 장시작후 첫봉이 외부변수(스타트타임)보다 크거나 2번줄: 장시작 후 첫봉 이외의 봉들이 외부변수(스타트타임) 보다 크고 전봉은 외부변수(스타트타임)보다 작다면 tcond에 true를 할당 ii에 0을 할당 sum에 0을 할당 sum1에 0을 할당으로 해석했습니다 이게 맞다면, 2번째 줄이 이해가 안갑니다. 2번째 줄의 뜻은 당일 첫봉 말고 2번째 봉부터는 외부변수(스타트타임)=< stime <=외부변수(엔드타임) 을 표현하려는거 같은데요... 2번째 마지막 줄대로 라면 stime[1] <startTime은 전봉이 스타트타임보다 작아야 되야만 트루로 할당이 왼다는건데,,,그걸 만족하는건 장 첫 개시봉만 해당되지 않나요...? 너무 초보라서 문맥상 이해가 잘 안가서 여쭤봅니다 ㅠㅜ 2. if currentbar==1 이게 무슨뜻인지 해석좀 부탁드립니다.
프로필 이미지
돈을잃자
2024-03-19
540
글번호 177624
지표

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

프로필 이미지
hakona
2024-03-19
16
글번호 177621
지표
답변완료

문의드립니다

1 거래량 누적 지표 2 거래량 누적 지표(아래와 같은 조건으로) c > c[1] 더하기 c < c[1] 빼기 3 최근 10봉 거래량 누적 지표 4 최근 10봉 거래량 누적 지표(아래와 같은 조건으로) c > c[1] 더하기 c < c[1] 빼기 감사합니다
프로필 이미지
파인애플
2024-03-19
579
글번호 177616
지표
답변완료

수고하십니다.

안녕하세요? aa=지수평균((highest(종가,20)+highest(종가,40))/2,40)+ if(종가<시가,1-((종가-시가)/highest((종가- 시가),40)),1)*0.5*stdev((저가+고가+종가)/3,40); Crossup(C ,aa*1.05) and V > V(1) *3 and Valuewhen(1,CrossUP(C,BbandsUP(30,1.8)),C) 미리 감사드립니다.
프로필 이미지
나석
2024-03-19
703
글번호 177614
종목검색
답변완료

종목 검색 수식입니다

1) 20 캔들 천정에서 종가 파라볼릭이 2번째 음 전환된 상태에서 양전환 된 종목 검색 2) 20 캔들 천정에서 종가 파라볼릭이 3번째 음 전환된 상태에서 양전환 된 종목 검색 감사합니다
프로필 이미지
para
2024-03-19
803
글번호 177613
종목검색
답변완료

문의 드립니다.

input : StartTime(70000),EndTime(50000); input : 익절틱수(50),손절틱수(0); var : Tcond(False),entry(0); Variables: Mom(0); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] or (sDate != Date) Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if L ==lowest(L,1) and highest(H,2) >= lowest(L,2)+PriceScale*1 Then { Buy("b",AtStop,(highest(H,2)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 2 Then ExitShort(); } if H == highest(H,1) and lowest(L,2) <= highest(H,2)+PriceScale*1 Then { Sell("s",AtStop,(lowest(L,2)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 2 Then ExitLong(); if L ==lowest(L,1) and highest(H,2) >= lowest(L,2)+PriceScale*10 Then { Buy("b1",AtStop,(highest(H,2)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 2 Then ExitShort(); if H == highest(H,1) and lowest(L,2) <= highest(H,2)+PriceScale*10 Then { Sell("s1",AtStop,(lowest(L,2)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 2 Then ExitLong(); if L ==lowest(L,1) and highest(H,2) >= lowest(L,2)+PriceScale*10 Then { Buy("b2",AtStop,(highest(H,2)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 2 Then ExitShort(); if H == highest(H,1) and lowest(L,2) <= highest(H,2)+PriceScale*10 Then { Sell("s2",AtStop,(lowest(L,2)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 2 Then ExitLong(); if L ==lowest(L,1) and highest(H,2) >= lowest(L,2)+PriceScale*1 Then { Buy("b3",AtStop,(highest(H,2)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 2 Then ExitShort(); if H == highest(H,1) and lowest(L,2) <= highest(H,2)+PriceScale*1 Then { Sell("s3",AtStop,(lowest(L,2)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 2 Then ExitLong(); if L ==lowest(L,1) and highest(H,2) >= lowest(L,2)+PriceScale*10 Then { Buy("b4",AtStop,(highest(H,2)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 2 Then ExitShort(); if H == highest(H,1) and lowest(L,2) <= highest(H,2)+PriceScale*10 Then { Sell("s4",AtStop,(lowest(L,2)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 2 Then ExitLong(); if L ==lowest(L,1) and highest(H,2) >= lowest(L,2)+PriceScale*10 Then { Buy("b5",AtStop,(highest(H,2)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 2 Then ExitShort(); if H == highest(H,1) and lowest(L,2) <= highest(H,2)+PriceScale*10 Then { Sell("s5",AtStop,(lowest(L,2)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 2 Then ExitLong(); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ------- 위 수식어에 아래 3가지가 포함된 각각 별도의 수식어를 부탁드립니다. 1. 익,손절후 당일 매매정지 2. 익절후 5시간 진입금지 3. 익절후 3번째 캔들까지 진입신호금지
프로필 이미지
푸른
2024-03-19
618
글번호 177612
시스템

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

프로필 이미지
hakona
2024-03-19
36
글번호 177611
지표
답변완료

검색 문의

영웅문 검색수식인데요 예스트레이더 수식으로 바꿔주세요 감사합니다. A1=Avg(C, 20); A2=Avg(C, 60); A3=(A1-A2)/A2*100; A4=(C-A1)/A1*100; A=MACD(12,26); B=MACD(12,26)-eavg(MACD(12,26),9); C > O and (C-O)*0.5 <= (H-C) and (C-O)*2 >= (H-C) and (C-O)*0.2 >= (O-L) and Avg(V(1),5) >= 50000 and C(1)*1.065 <= C and ((A1(2) < A1(1) and A1(1) < A1) or (A2(2) < A2(1) and A2(1) < A2)) and H > Highest(H(1), 4) and V > Highest(V(1),4) and A(2) < A(1) and A(1) < A and Stochasticsslow(40,20) <= 69 and B(2) < B(1) and B(1) < B and A3 >= -12 and A3 <= 12 and A4 >= -18 and A4 <= 18
프로필 이미지
anj
2024-03-19
507
글번호 177610
검색
답변완료

종목검색식 요청드립니다.

30봉 이내 아래 키움신호가 발생한 종목검색식을 만들고 싶습니다. 기간값은 조정할 수 있게 만들어주시면 감사하겠습니다.^^ A=(highest(high,shortPeriod)+lowest(low,shortPeriod))/2; B=shift((highest(high,midPeriod)+lowest(low,midPeriod))/2,-midPeriod+1); if(Crossup(B, A),1,0)
프로필 이미지
onlypsn
2024-03-19
698
글번호 177609
종목검색