커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1697
글번호 230811
nams60 님에 의해서 삭제되었습니다.
2024-09-27
0
글번호 183789
답변완료
수식 부탁 드립니다. 항상 감사드립니다.
수식 부탁 드립니다. 항상 감사드립니다.
포지션 없을 때에,
<5이평 20이평 골든 크로스일 때의 가격 - 8틱(변수로. 변수명 V1)> 에 매도 주문.
이 후 진입되면, 즉 숏포지션일 때에, 0틱 이익 후 5틱(변수로. 변수명 V2) 이익감소시 매수로 청산 (추적청산임)
포지션 없을 때에,
5이평 20이평 골든 크로스일 때의 가격에 매수 주문.
이 후 진입되면, 즉 롱포지션일 때에, 0틱 이익 후 5틱(변수로. 변수명 V2) 이익감소시 매도로 청산 (추적청산임)
감사합니다.
2024-09-27
788
글번호 183788
답변완료
수식 부탁 드립니다. 감사합니다.
수식 부탁 드립니다.
매수식:
진입:
5이평 20이평이 정배열일 경우에,
가격이 현재 가격보다 40틱(변수로 처리 = 변수명 V1) 넘게 하락한 후, 그 후의 최저점에서 20틱(변수로 처리 = 변수명 V2) 상승하면 매수.
청산: 진입 가격 이후 최고 가격에서 12틱(변수로 처리 = 변수명 V3) 하락하면 매도로 청산 (추적 스탑임)
매도식:
위의 역논리로 작성 (변수명은 V1, V2, V3를 그대로 사용)
감사합니다.
2024-09-26
684
글번호 183787
타요 님에 의해서 삭제되었습니다.
2024-09-26
49
글번호 183786
답변완료
오류
안녕하세요 시그널메이커에서는 대부분 구현이 제대로 되지않아서 예스이용해보려고합니다.
사용자함수 입력하려고합니다 근데 오류가 나옵니다
수정좀 부탁드립니다
Inputs: ATRLength(NumericSimple), ATRMult(NumericSimple), Strength(NumericSimple), STrend(NumericRef);
Vars: vATR(0), vAvg(0), DN(0), UP(0), Trend(1), flag(0), flagh(0), ST(0), hl(0);
hl = Highest(High, ATRLength) - Lowest(Low, ATRLength);
vATR = Ema(hl, ATRLength);
vAvg = ( Ema(High, Strength) + Ema(Low, Strength) ) / 2;
UP = vAvg + vATR;
DN = vAvg - vATR;
If C > UP[1] And C > Highest(High, Strength)[1] Then Trend = 1
Else If C < DN[1] And C < Lowest(Low, Strength)[1] Then Trend = -1;
If Trend < 0 And Trend[1] > 0 Then flag = 1
Else flag = 0;
If Trend > 0 And Trend[1] < 0 Then flagh = 1
Else flagh = 0;
If Trend > 0 And DN < DN[1] Then DN = DN[1];
If Trend < 0 And UP > UP[1] Then UP = UP[1];
If flag = 1 Then UP = vAvg + vATR;
If flagh = 1 Then DN = vAvg - vATR;
If Trend = 1 Then ST = DN
Else ST = UP;
SuperTrend = ST;
STrend = Trend;
이 사용자 함수를 만든뒤 아래 자동매매만들고싶습니다
// Inputs
inputs: ATRLength1(14), ATRMult1(3), Strength1(20);
// Variables
vars: strend1(0), st1(0);
// Calculate SuperTrend
st1 = SuperTrend(ATRLength1, ATRMult1, Strength1, strend1);
// Trading Logic
// Buy when the close price crosses above the SuperTrend
If CrossUp(C, st1) Then
Buy("매수");
// Sell when the close price crosses below the SuperTrend
If CrossDown(C, st1) Then
Sell("매도");
자동매매로 전환하고싶습니다
2024-09-26
605
글번호 183785
회원 님에 의해서 삭제되었습니다.
2024-09-26
333
글번호 183784
답변완료
수식 수정 부탁드립니다.
안녕하세요.
아래의 피라미딩전략에 다소 오류가 있는듯하여 수정 요청드립니다. 감사합니다.
1. 손실시에는 다음 진입신호가 나올때까지 보유하며, 총 5회까지 진입허용
2. 각각의 진입은 수익시에만 트레일링스탑으로 청산
if MarketPosition == 0 Then
{
if CurrentEntries == 0 Then
{
if BuyCond == True Then Buy("Long1", AtMarket);
}
}
if MarketPosition == 1 Then
{
if CurrentEntries == 1 Then
{
if BuyCond == True Then Buy("Long2", AtMarket);
if PositionProfit(0) > 0 Then ExitLong("TStop1-0", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long1");
}
if CurrentEntries == 2 Then
{
if BuyCond == True Then Buy("Long3", AtMarket);
if PositionProfit(0) > 0 Then ExitLong("TStop2-0", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long2");
if PositionProfit(1) > 0 Then ExitLong("TStop2-1", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long1");
}
if CurrentEntries == 3 Then
{
if BuyCond == True Then Buy("Long4", AtMarket);
if PositionProfit(0) > 0 Then ExitLong("TStop3-0", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long3");
if PositionProfit(1) > 0 Then ExitLong("TStop3-1", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long2");
if PositionProfit(2) > 0 Then ExitLong("TStop3-2", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long1");
}
if CurrentEntries == 4 Then
{
if BuyCond == True Then Buy("Long5", AtMarket);
if PositionProfit(0) > 0 Then ExitLong("TStop4-0", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long4");
if PositionProfit(1) > 0 Then ExitLong("TStop4-1", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long3");
if PositionProfit(2) > 0 Then ExitLong("TStop4-2", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long2");
if PositionProfit(3) > 0 Then ExitLong("TStop4-3", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long1");
}
if CurrentEntries == 5 Then
{
if PositionProfit(0) > 0 Then ExitLong("TStop5-0", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long5");
if PositionProfit(1) > 0 Then ExitLong("TStop5-1", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long4");
if PositionProfit(2) > 0 Then ExitLong("TStop5-2", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long3");
if PositionProfit(3) > 0 Then ExitLong("TStop5-3", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long2");
if PositionProfit(4) > 0 Then ExitLong("TStop5-4", Atstop, highest(high,barsSinceEntry+1) - ATR, "Long1");
}
}
2024-09-26
821
글번호 183780
답변완료
수식 하나 부탁드립니다.
안녕하세요
09 시 10분에 매수
09 시 20분에 매도
09 시 30분에 매수
09 시 40분에 매도
하는 수식을 부탁드립니다.
항상 감사드립니다.
2024-09-26
755
글번호 183779
답변완료
문의 드립니다
안녕하세요
키움지표 전환 부탁드립니다
1.
수식1
TT=BBandsUp(20,2);
ValueWhen(1,TT >TT(1),TT)
수식2
TT=BBandsUp(14,1.1);
ValueWhen(1,TT >TT(1),TT)
수식3
TT=BBandsUp(20,2);
ValueWhen(1,TT < TT(1),TT)
수식4
TT=BBandsUp(14,1.1);
ValueWhen(1,TT < TT(1),TT)
2.
수식1
TT=BBandsDown(20,2);
ValueWhen(1,TT >TT(1),TT)
수식2
TT=BBandsDown(14,1.1);
ValueWhen(1,TT >TT(1),TT)
수식3
TT=BBandsDown(20,2);
ValueWhen(1,TT < TT(1),TT)
수식4
TT=BBandsDown(14,1.1);
ValueWhen(1,TT < TT(1),TT)
3
수식1 highest(H, period, 1);
수식2 lowest(L, period, 1);
수식3 highest(C, period, 1);
수식4lowest(C, period, 1);
4
수식1 highest(H, period, 0);
수식2 lowest(L, period, 0);
수식3 highest(C, period, 0);
수식4lowest(C, period, 0);
3번고4번의 기간은 20으로하고 변경가능하게 부탁드립니다
5.
수식1(선1)
((highest(high,shortPeriod)+lowest(low,shortPeriod)
+highest(high,midPeriod)+lowest(low,midPeriod))/4
+2*BBandsUp(Period,D1))/3
수식2(선2)
((highest(high,shortPeriod)+lowest(low,shortPeriod)+
(highest(high,longPeriod)+lowest(low,longPeriod)))/4
+2*BBandsUp(Period,D1))/3
수식3(선1)
((highest(high,shortPeriod)+lowest(low,shortPeriod)+highest(high,midPeriod)+lowest(low,midPeriod))/4
+2*BBandsDown(Period,D1))/3
수식4(선2)
((highest(high,shortPeriod)+lowest(low,shortPeriod)
+(highest(high,longPeriod)+lowest(low,longPeriod)))/4
+2*BBandsDown(Period,D1))/3
지표조건은 5,15,30. d1은3,기간은 20 입니다 (변경가능)
감사합니다
2024-09-26
819
글번호 183770