커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

문의 드립니다.

아래 식을 코인에서 금액을 추가할 수 있게 부탁드립니다. if C > H[1] Then Buy(); if C < L[1] Then ExitLong();
프로필 이미지
선물대장
2024-03-20
601
글번호 177673
시스템

바닥차기 님에 의해서 삭제되었습니다.

프로필 이미지
바닥차기
2024-03-20
11
글번호 177672
지표
답변완료

문의 드립니다

input : starttime(130000),endtime(40000),n(10); var : Tcond(false),hh(0),h1(0),ll(0),l1(0); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1]and Tcond == true Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then { Tcond = false; } if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; hh = h; ll = l; h1 = hh[1]; l1 = ll[1]; IF Endtime <= starttime Then { SetStopEndofday(0); } } input : 익절틱수(0),손절틱수(0); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx",AtMarket); if NextBarOpen != C Then { Buy("b1",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx1",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Sell("s",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx",AtMarket); if NextBarOpen != C Then { Sell("s1",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx1",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b2",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx2",AtMarket); if NextBarOpen == C Then { Buy("b3",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx3",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Sell("s2",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx2",AtMarket); if NextBarOpen == C Then { Sell("s3",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx3",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b4",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx4",AtMarket); if NextBarOpen != C Then { Buy("b5",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx5",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Sell("s4",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx4",AtMarket); if NextBarOpen != C Then { Sell("s5",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx5",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b6",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx6",AtMarket); if NextBarOpen == C Then { Buy("b7",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx7",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Sell("s6",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx6",AtMarket); if NextBarOpen == C Then { Sell("s7",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx7",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b8",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx8",AtMarket); if NextBarOpen != C Then { Buy("b9",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx9",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Sell("s8",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx8",AtMarket); if NextBarOpen != C Then { Sell("s9",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx9",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b10",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx10",AtMarket); if NextBarOpen == C Then { Buy("b11",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx11",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Sell("s10",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx10",AtMarket); if NextBarOpen == C Then { Sell("s11",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx11",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b12",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx12",AtMarket); if NextBarOpen != C Then { Buy("b13",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx13",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Sell("s12",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx12",AtMarket); if NextBarOpen != C Then { Sell("s13",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx13",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b14",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx14",AtMarket); if NextBarOpen == C Then { Buy("b15",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx15",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Sell("s14",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx14",AtMarket); if NextBarOpen == C Then { Sell("s15",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx15",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b16",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx16",AtMarket); if NextBarOpen != C Then { Buy("b17",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx17",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Sell("s16",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx16",AtMarket); if NextBarOpen != C Then { Sell("s17",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx17",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b18",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx18",AtMarket); if NextBarOpen == C Then { Buy("b19",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx19",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Sell("s18",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx18",AtMarket); if NextBarOpen == C Then { Sell("s19",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx19",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b20",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx20",AtMarket); if NextBarOpen != C Then { Buy("b21",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx21",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Sell("s20",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx20",AtMarket); if NextBarOpen != C Then { Sell("s21",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx21",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b22",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx22",AtMarket); if NextBarOpen == C Then { Buy("b23",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx23",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Sell("s22",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx22",AtMarket); if NextBarOpen == C Then { Sell("s23",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx23",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b24",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx24",AtMarket); if NextBarOpen != C Then { Buy("b25",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx25",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Sell("s24",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx24",AtMarket); if NextBarOpen != C Then { Sell("s25",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx25",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b26",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx26",AtMarket); if NextBarOpen == C Then { Buy("b27",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx27",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Sell("s26",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx26",AtMarket); if NextBarOpen == C Then { Sell("s27",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx27",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b28",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx28",AtMarket); if NextBarOpen != C Then { Buy("b29",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx29",AtMarket); if NextBarSdate != sDate Then { if NextBarOpen != C Then { Sell("s28",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx28",AtMarket); if NextBarOpen != C Then { Sell("s29",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx29",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b30",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx30",AtMarket); if NextBarOpen == C Then { Buy("b31",AtStop,NextBarOpen+PriceScale*10); } ExitLong("bx31",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Sell("s30",AtStop,NextBarOpen-PriceScale*10); } } ExitShort("sx30",AtMarket); if NextBarOpen == C Then { Sell("s31",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx31",AtMarket); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); -------- 아침 4시에 청산이 되질 않아서 수식어 수정이 가능한지 문의드립니다
프로필 이미지
푸른
2024-03-20
786
글번호 177671
시스템
답변완료

수식 문의 부탁 드립니다.

주가가 가중이동평균선 60일, 120일선 위에, 삼각가중평균 120선위에 있을때 매수, 주가가 삼각가중평균 120 아래로 갈때 매도, 수식문의 부탁드립니다.
프로필 이미지
꺼리
2024-03-20
710
글번호 177670
시스템
답변완료

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

아래 키움수식을 이용하여 기간내 10봉이내에 15%이상 상승한 종목들 중에 1. 당일 1분봉에서 아래 수식라인을 돌파하는 종목을 검색하는 검색식을 만들고 싶습니다. 2. 당일 예상체결금액이 당일 1분봉에서 아래 라인을 돌파한 종목검색식도 가능하다면 부탁드리겠습니다. 상승률(15%)값,기간값(10봉)하고, 1분봉 3분봉 등 변경 가능하도록 도움 부탁드립니다. 항상 감사합니다.^^ ======================================== 날짜바뀜 = date(1)!=date; 날짜바뀐후1봉 = barssince(날짜바뀜)==0; 일봉고가 = valuewhen(1,날짜바뀐후1봉,H); 일봉저가 = valuewhen(1,날짜바뀐후1봉,L); 첫3분고가 = 일봉고가; 첫3분저가 = 일봉저가; 첫3분고가 =========================================
프로필 이미지
onlypsn
2024-03-20
679
글번호 177669
종목검색
답변완료

문의드립니다

1 c > c[1] 이면 c*v 를 더하기 c < c[1] 이면 c*v 를 빼기 위와같은 지표가 있고 최근 5봉 에서만 계속 갱신되도록 하는지표 2 최근 N봉 종가의 최저점과 최고점을 나타내는 지표 감사합니다
프로필 이미지
파인애플
2024-03-20
825
글번호 177668
지표

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

프로필 이미지
hakona
2024-03-20
13
글번호 177667
지표

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

프로필 이미지
hakona
2024-03-20
14
글번호 177666
지표
답변완료

부탁드려요

영웅문 검색수식인데요 예스트레이더 수식으로 변환 부탁드려요 지표변수 p1 10 p2 40 m 4 V > avg(V(1), p1) * m && C > highest(C(1), p2)
프로필 이미지
anj
2024-03-20
605
글번호 177665
검색
답변완료

수식부탁드립니다

현재봉을 기준으로 일정기간 이전의 봉 종가 혹은 고가에 점 그래프를 표시하는 것을 부탁드립니다. 예를 들어 현재 봉에서 20일 전의 봉 종가 혹은 고가에만 점 그래프를 그려주는 것입니다. (20일 전 봉 하나에서만 점 그래프를 그려주면 됩니다) 감사합니다
프로필 이미지
데미안
2024-03-20
688
글번호 177664
지표