커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1686
글번호 230811
답변완료
수식
안녕하세요.
하기 수식 부탁드립니다.
1. 연속2양봉 중에 몸통이 큰양봉 고가,저가,시가,종가 (각각 몸통이 5피 이상)
2. 연속2음봉 중에 몸통이 큰음봉 고가,저가,시가,종가 (각각 몸통이 5피 이상)
감사합니다.
2021-05-21
1390
글번호 149233
답변완료
문의드립니다
진입 후 1시간 동안은 1번 청산 전략으로 청산
그 후 1시간 동안은 2번 청산 전략으로 청산
이 수식 부탁드립니다.
감사합니다~
2021-05-21
1313
글번호 149229
답변완료
수식
안녕하세요.
하기 조건 수식 부탁드립니다.
1. 12시이후 당일 고점 대비 -5피 이상 하락 시 매도일 경우 연속2양봉 포지션 청산
2. 12시이후 당일 저점 대비 +5피 이상 상승 시 매수일 경우 연속2음봉 포지션 청산
3. 1번 혹은 2번 실행 시 당일 더이상 진입금지
Condition으로 부탁드립니다.
감사합니다.
2021-05-21
1254
글번호 149228
답변완료
수식작성
1
Input : 당일수익틱수(200);
var : entry(0),mav1(0),mav2(0);
var : B(0),S(0),LL(0),HH(0);
Var : N1(0),dayPl(0),당일수익(0),Xcond(false);
if bdate != bdate[1] Then
{
entry = 0;
Condition1 = False;
Xcond = false;
N1 = NetProfit;
}
당일수익 = PriceScale*당일수익틱수;
daypl = NetProfit-N1;
if TotalTrades > TotalTrades[1] then
{
if daypl >= 당일수익 Then
Xcond = true;
if (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then
Xcond = true;
}
mav1 = ma(C,2);
mav2 = ma(c,10);
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Condition1 == false and L <= DayHigh-PriceScale*100 Then
{
Condition1 = true;
B = 0;
}
if Condition1 == true Then
{
if CrossUp(mav1,mav2) Then
{
B = B+1;
if B == 2 and MarketPosition <= 0 and entry < 1 and Xcond == false Then
{
B = 3;
Buy("b");
}
}
}
if MarketPosition == 1 Then
{
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*100);
ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts));
if CrossDown(mav1,mav2) Then
ExitLong();
if BarsSinceEntry == 8 Then
LL = Lowest(L,17);
if BarsSinceEntry >= 8 Then
ExitLong("bx2",AtStop,LL-PriceScale*2);
}
if Condition2 == false and H >= DayLow+PriceScale*100 Then
{
Condition2 = true;
S = 0;
}
if Condition2 == true Then
{
if CrossDown(mav1,mav2) Then
{
S = S+1;
if S == 2 and MarketPosition >= 0 and entry < 1 and Xcond == false Then
Sell("s");
}
}
if MarketPosition == -1 Then
{
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*100);
ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts));
if CrossDown(mav1,mav2) Then
ExitShort();
if BarsSinceEntry == 8 Then
HH = Lowest(H,17);
if BarsSinceEntry >= 8 Then
ExitShort("sx2",AtStop,HH+PriceScale*2);
}
if sdate != sdate[1] Then
SetStopEndofday(55000);
if bdate != bdate[1] Then
SetStopEndofday(0);
2
input : StartTime1(070000),EndTime1(220000),진입횟수1(1);
input : StartTime2(220000),EndTime2(055000),진입횟수2(2);
input : Xtime(055000),당일수익틱수(200);
var : entry(0),Tcond1(false),Tcond2(False);
Var : N1(0),dayPl(0),당일수익(0),Xcond(false),mav1(0),mav2(0),B(0),S(0),HH(0),LL(0);
mav1 = ma(C,2);
mav2 = ma(c,10);
if (sdate != sdate[1] and stime >= EndTime1) or
(sdate == sdate[1] and stime >= EndTime1 and stime[1] < EndTime1) Then
Tcond1 = False;
if (sdate != sdate[1] and stime >= StartTime1) or
(sdate == sdate[1] and stime >= StartTime1 and stime[1] < StartTime1) Then
{
Tcond1 = true;
entry = 0;
Xcond = false;
N1 = NetProfit;
Condition1 = False;
Condition2 = False;
}
if (sdate != sdate[1] and stime >= EndTime2) or
(sdate == sdate[1] and stime >= EndTime2 and stime[1] < EndTime2) Then
Tcond2 = False;
if (sdate != sdate[1] and stime >= StartTime2) or
(sdate == sdate[1] and stime >= StartTime2 and stime[1] < StartTime2) Then
{
Tcond2 = true;
entry = 0;
Condition1 = False;
Condition2 = False;
}
당일수익 = PriceScale*당일수익틱수;
daypl = NetProfit-N1;
if TotalTrades > TotalTrades[1] then
{
if daypl >= 당일수익 Then
Xcond = true;
if (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then
Xcond = true;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Condition1 == false and L <= DayHigh-PriceScale*100 Then
{
Condition1 = true;
B = 0;
}
if Condition1 == true Then
{
if CrossUp(mav1,mav2) Then
{
B = B+1;
if B == 2 and MarketPosition <= 0 and Xcond == False and ((Tcond1 == true and entry < 진입횟수1) or (Tcond2 == true and entry < 진입횟수2)) Then
{
B = 3;
Buy("b");
}
}
}
if MarketPosition == 1 Then
{
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*100);
ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts));
if CrossDown(mav1,mav2) Then
ExitLong();
if BarsSinceEntry == 8 Then
LL = Lowest(L,17);
if BarsSinceEntry >= 8 Then
ExitLong("bx2",AtStop,LL-PriceScale*2);
}
if Condition2 == false and H >= DayLow+PriceScale*100 Then
{
Condition2 = true;
S = 0;
}
if Condition2 == true Then
{
if CrossDown(mav1,mav2) Then
{
S = S+1;
if S == 2 and MarketPosition >= 0 and Xcond == False and ((Tcond1 == true and entry < 진입횟수1) or (Tcond2 == true and entry < 진입횟수2)) Then
Sell("s");
}
}
if MarketPosition == -1 Then
{
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*100);
ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts));
if CrossUp(mav1,mav2) Then
ExitShort();
if BarsSinceEntry == 8 Then
HH = Lowest(H,17);
if BarsSinceEntry >= 8 Then
ExitShort("sx2",AtStop,HH+PriceScale*2);
}
if sdate != sdate[1] Then
SetStopEndofday(Xtime);
if bdate != bdate[1] Then
SetStopEndofday(0);
---------------------
검증중 청산이 원하는대로 되질않아서 그래프를 참고로 올립니다.
buy의 청산싯점이 진입 가격으로 됨에 +100틱에 청산으로 수정되는 수식어를 부탁드립니다.
반대포지션도 동일합니다.
늘 감사드립니다.
2021-05-21
1125
글번호 149226
답변완료
문의
buy 수식에서
1차 진입 b1에 10 입력후
2차 진입 b2에 777888999를 입력하면 data2 선물기준 틱수이므로
2차 진입은 발생하지 않아야 하는데 진입이 발생합니다
sell 수식에서
1차 진입 b1에 10 입력후
2차 진입 b2에 777888999를 입력하면 data2 선물기준 틱수이므로
2차 진입은 발생하지 않아야 하는데 진입이 발생합니다
첨부파일은 2차 진입발생 내역입니다.
buy와 sell 수식의 2차(b2) 진입수식을 살펴주시고 고친부분은 # 표시해주세요.
********************************************************************************
1) buy 수식
Input : 최대(999999999),최소(0),거래횟수(500);
input : b1(10),b2(777888999),X1(10),X2(10);
input : 진입눌림1(10),진입돌파1(10),청산눌림1(10),청산돌파1(10);
input : 진입눌림2(10),진입돌파2(10),청산눌림2(10),청산돌파2(10);
var : T1(0,data1),entry(0,data1);
var : LL(0,data2),EH(0,data2),E1(0,data2),H1(0,data2);
var : i1(0,data2),S1(0,data2),L1(0,data2);
var : DH2(0,data2),DL2(0,data2);
if data1(Bdate != Bdate[1]) Then
T1 = TotalTrades;
if data2(Bdate != Bdate[1]) Then{
E1 = 0;
DH2 = data2(H);
DL2 = data2(L);
}
if data2(H > DH2) Then
DH2 = data2(H);
if data2(L < DL2) Then
DL2 = data2(L);
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = (TotalTrades-T1)+1;
if MarketPosition == 0 and entry == 0 Then{
if data2(E1 == 0 and C >= DL2+PriceScale*B1 and C[1] < DL2+PriceScale*B1) Then{
E1 = 1;
H1 = data2(H);
i1 = data2(index);
}
if data2(E1 == 1 and index > i1) then{
if data2(H > H1) Then
H1 = data2(H);
if data2(L <= H1-PriceScale*진입눌림1) Then{
E1 = 2;
i1 = data2(index);
S1 = H1;
}
}
if 최대 >= C and C >= 최소 and data2(E1 == 2 and index > i1 and C >= S1+PriceScale*진입돌파1) Then{
buy("b1");
}
}
if TotalTrades > TotalTrades[1] Then
LL = data2(L);
if data2(L < LL) Then
LL = data2(L);
if MarketPosition == 0 and entry >= 1 and entry < 거래횟수 Then{
if data2(E1 == 0 and C >= LL+PriceScale*B2 and C[1] < LL+PriceScale*B2) Then{
E1 = 1;
H1 = data2(H);
i1 = data2(index);
}
if data2(E1 == 1 and index > i1) then{
if data2(H > H1) Then
H1 = data2(H);
if data2(L <= H1-PriceScale*진입눌림2) Then{
E1 = 2;
i1 = data2(index);
S1 = H1;
}
}
if data2(E1 == 2 and index > i1 and C >= S1+PriceScale*진입돌파2) Then{
buy("b2");
}
}
if MarketPosition == 1 and IsEntryName("b1") == true Then{
if entry >= 1 then{
if CurrentContracts > CurrentContracts[1] Then{
EH = data2(H);
E1 = 0;
}
if data2(H > EH) Then{
EH = data2(H);
E1 = 0;
}
if data2(E1 == 0 and C <= EH-PriceScale*X1) Then{
E1 = 1;
L1 = data2(L);
i1 = data2(index);
}
if data2(E1 == 1 and index > i1) Then{
if data2(L < L1) Then
L1 = data2(L);
if data2(H >= L1+PriceScale*청산눌림1) Then{
E1 = 2;
I1 = data2(index);
S1 = L1;
}
}
if data2(E1 == 2 and index > i1 and C <= S1-PriceScale*청산돌파1) Then{
exitlong("bx1");
E1 = 0;
}
}
}
if MarketPosition == 1 and IsEntryName("b2") == true Then{
if entry >= 1 then{
if CurrentContracts > CurrentContracts[1] Then{
EH = data2(H);
E1 = 0;
}
if data2(H > EH) Then{
EH = data2(H);
E1 = 0;
}
if data2(E1 == 0 and C <= EH-PriceScale*X1) Then{
E1 = 1;
L1 = data2(L);
i1 = data2(index);
}
if data2(E1 == 1 and index > i1) Then{
if data2(L < L1) Then
L1 = data2(L);
if data2(H >= L1+PriceScale*청산눌림2) Then{
E1 = 2;
I1 = data2(index);
S1 = L1;
}
}
if data2(E1 == 2 and index > i1 and C <= S1-PriceScale*청산돌파2) Then{
exitlong("bx2");
E1 = 0;
}
}
}
2) sell 수식
Input : 최대(999999999),최소(0),거래횟수(500);
input : b1(10),b2(777888999),X1(10),X2(10);
input : 진입눌림1(10),진입돌파1(10),청산눌림1(10),청산돌파1(10);
input : 진입눌림2(10),진입돌파2(10),청산눌림2(10),청산돌파2(10);
var : T1(0,data1),entry(0,data1);
var : HH(0,data2),LL(0,data2),EH(0,data2),EL(0,data2);
var : E1(0,data2),H1(0,data2),i1(0,data2),S1(0,data2),L1(0,data2);
var : DH2(0,data2),DL2(0,data2);
if data1(Bdate != Bdate[1]) Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = (TotalTrades-T1)+1;
if data2(Bdate != Bdate[1]) Then{
E1 = 0;
DH2 = data2(H);
DL2 = data2(L);
}
if data2(H > DH2) Then
DH2 = data2(H);
if data2(L < DL2) Then
DL2 = data2(L);
if MarketPosition == 0 and entry == 0 Then{
if data2(E1 == 0 and C <= DH2-PriceScale*B1 and C[1] < DH2-PriceScale*B1) Then{
E1 = 1;
L1 = data2(L);
i1 = data2(index);
}
if E1 == 1 and data2(index) > i1 then{
if data2(L < L1) Then
L1 = data2(L);
if data2(H >= L1+PriceScale*진입눌림1) Then{
E1 = 2;
i1 = data2(index);
S1 = L1;
}
}
if 최대 >= C and C >= 최소 and data2(E1 == 2 and index > i1 and C <= S1-PriceScale*진입돌파1) Then{
sell("s1");
}
}
if TotalTrades > TotalTrades[1] Then
HH = data2(H);
if data2(H > HH) Then
HH = data2(H);
if MarketPosition == 0 and entry >= 1 and entry < 거래횟수 Then{
if data2(E1 == 0 and C <= HH-PriceScale*B2 and C[1] < HH-PriceScale*B2) Then{
E1 = 1;
L1 = data2(L);
i1 = data2(index);
}
if data2(E1 == 1 and index > i1) then{
if data2(L < L1) Then
L1 = data2(L);
if data2(H >= L1+PriceScale*진입눌림2) Then{
E1 = 2;
i1 = data2(index);
S1 = L1;
}
}
if data2(E1 == 2 and index > i1 and C <= S1-PriceScale*진입돌파2) Then{
sell("s2");
E1 = 0;
}
}
if MarketPosition == -1 and IsEntryName("s1") == true Then{
if entry >= 1 then{
if CurrentContracts > CurrentContracts[1] Then{
EL = data2(L);
E1 = 0;
}
if data2(L < EL) Then{
EL = data2(L);
E1 = 0;
}
if data2(E1 == 0 and C >= EL+PriceScale*X1) Then{
E1 = 1;
H1 = data2(H);
i1 = data2(index);
}
if data2(E1 == 1 and index > i1) Then{
if data2(H > H1) Then
H1 = data2(H);
if data2(L <= H1-PriceScale*청산눌림1) Then{
E1 = 2;
I1 = data2(index);
S1 = H1;
}
}
if data2(E1 == 2 and index > i1 and C >= S1+PriceScale*청산돌파1) Then{
ExitShort("sx1");
E1 = 0;
}
}
}
if MarketPosition == -1 and IsEntryName("s2") == true Then{
if entry >= 1 then{
if CurrentContracts > CurrentContracts[1] Then{
EL = data2(L);
E1 = 0;
}
if data2(L < EL) Then{
EL = data2(L);
E1 = 0;
}
if data2(E1 == 0 and C >= EL+PriceScale*X1) Then{
E1 = 1;
H1 = data2(H);
i1 = data2(index);
}
if data2(E1 == 1 and index > i1) Then{
if data2(H > H1) Then
H1 = data2(H);
if data2(L <= H1-PriceScale*청산눌림2) Then{
E1 = 2;
I1 = data2(index);
S1 = H1;
}
}
if data2(E1 == 2 and index > i1 and C >= S1+PriceScale*청산돌파2) Then{
ExitShort("sx2");
E1 = 0;
}
}
}
2021-05-21
1143
글번호 149223
knb 님에 의해서 삭제되었습니다.
2021-05-21
250
글번호 149221
답변완료
수식작성
1
Input : 당일수익틱수(200);
var : entry(0),mav1(0),mav2(0);
var : B(0),S(0),LL(0),HH(0);
Var : N1(0),dayPl(0),당일수익(0),Xcond(false);
if bdate != bdate[1] Then
{
entry = 0;
Condition1 = False;
Xcond = false;
N1 = NetProfit;
}
당일수익 = PriceScale*당일수익틱수;
daypl = NetProfit-N1;
if TotalTrades > TotalTrades[1] then
{
if daypl >= 당일수익 Then
Xcond = true;
if (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then
Xcond = true;
}
mav1 = ma(C,2);
mav2 = ma(c,10);
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Condition1 == false and L <= DayHigh-PriceScale*100 Then
{
Condition1 = true;
B = 0;
}
if Condition1 == true Then
{
if CrossUp(mav1,mav2) Then
{
B = B+1;
if B == 1 Then
LL = Lowest(L,5);
if B == 2 and MarketPosition <= 0 and entry < 1 and Xcond == false Then
{
B = 3;
Buy("b");
}
}
}
if MarketPosition == 1 Then
{
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*100);
ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts));
if CrossDown(mav1,mav2) Then
ExitLong();
}
if Condition2 == false and H >= DayLow+PriceScale*100 Then
{
Condition2 = true;
S = 0;
}
if Condition2 == true Then
{
if CrossDown(mav1,mav2) Then
{
S = S+1;
if S == 1 Then
HH = highest(H,5);
if S == 2 and MarketPosition >= 0 and entry < 1 and Xcond == false Then
Sell("s");
}
}
if MarketPosition == -1 Then
{
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*100);
ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts));
if CrossDown(mav1,mav2) Then
ExitShort();
}
if sdate != sdate[1] Then
SetStopEndofday(55000);
if bdate != bdate[1] Then
SetStopEndofday(0);
2
input : StartTime1(070000),EndTime1(220000),진입횟수1(1);
input : StartTime2(220000),EndTime2(055000),진입횟수2(2);
input : Xtime(055000),당일수익틱수(200);
var : entry(0),Tcond1(false),Tcond2(False);
Var : N1(0),dayPl(0),당일수익(0),Xcond(false),mav1(0),mav2(0),B(0),S(0),HH(0),LL(0);
mav1 = ma(C,2);
mav2 = ma(c,10);
if (sdate != sdate[1] and stime >= EndTime1) or
(sdate == sdate[1] and stime >= EndTime1 and stime[1] < EndTime1) Then
Tcond1 = False;
if (sdate != sdate[1] and stime >= StartTime1) or
(sdate == sdate[1] and stime >= StartTime1 and stime[1] < StartTime1) Then
{
Tcond1 = true;
entry = 0;
Xcond = false;
N1 = NetProfit;
Condition1 = False;
Condition2 = False;
}
if (sdate != sdate[1] and stime >= EndTime2) or
(sdate == sdate[1] and stime >= EndTime2 and stime[1] < EndTime2) Then
Tcond2 = False;
if (sdate != sdate[1] and stime >= StartTime2) or
(sdate == sdate[1] and stime >= StartTime2 and stime[1] < StartTime2) Then
{
Tcond2 = true;
entry = 0;
Condition1 = False;
Condition2 = False;
}
당일수익 = PriceScale*당일수익틱수;
daypl = NetProfit-N1;
if TotalTrades > TotalTrades[1] then
{
if daypl >= 당일수익 Then
Xcond = true;
if (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then
Xcond = true;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Condition1 == false and L <= DayHigh-PriceScale*160 Then
{
Condition1 = true;
B = 0;
}
if Condition1 == true Then
{
if CrossUp(mav1,mav2) Then
{
B = B+1;
if B == 1 Then
LL = Lowest(L,5);
if B == 2 and MarketPosition <= 0 and Xcond == False and ((Tcond1 == true and entry < 진입횟수1) or (Tcond2 == true and entry < 진입횟수2)) Then
{
B = 3;
Buy("b");
}
}
}
if MarketPosition == 1 Then
{
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*100);
ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts));
if CrossDown(mav1,mav2) Then
ExitLong();
}
if Condition2 == false and H >= DayLow+PriceScale*200 Then
{
Condition2 = true;
S = 0;
}
if Condition2 == true Then
{
if CrossDown(mav1,mav2) Then
{
S = S+1;
if S == 1 Then
HH = highest(H,5);
if S == 2 and MarketPosition >= 0 and Xcond == False and ((Tcond1 == true and entry < 진입횟수1) or (Tcond2 == true and entry < 진입횟수2)) Then
Sell("s");
}
}
if MarketPosition == -1 Then
{
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*150);
ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts));
if CrossUp(mav1,mav2) Then
ExitShort();
}
if sdate != sdate[1] Then
SetStopEndofday(Xtime);
if bdate != bdate[1] Then
SetStopEndofday(0);
-----------
2가지 수식어의 추가 입니다.
조건만족후
buy 진입은 2분 10분 2회 골든크로스
buy 청산은 2분 10분 1회 데드크로스
진입의 손절은 1번째 골든크로스 전 캔들5봉 후 캔들5봉 의 저점의 이탈 입니다.
반대포지션도 동일 내용이며 당일 목표수익은 200틱의 수식어도 부탁드립니다.
-----
위 내용은 72528 번의 수식어 작성문안 입니다. 아래 내용으로 수정을 부탁드립니다
" buy 진입신호후 2분 10분 2번째 골든크로스에서 실주문후
손절은 2번째 골든크로스 앞뒤 캔들8봉 의 저점 2틱 이탈시 입니다.
반대포지션도 동일 내용이며 당일 목표수익은 200틱의 수식어도 부탁드립니다."
2021-05-21
1248
글번호 149218
답변완료
수식 부탁드립니다
주차트 일봉 차트에 참조데이타(Data2)를 쓰지않고 아래수식
1. 주봉의 MinLRL,MinLRL[k+1] 값을 나타내고 싶습니다.
2. 월봉의 MinLRL,MinLRL[k+1] 값을 나타내고 싶습니다.
/////////////////////////////////////////////////////////////////
Var:n(19),j(0),k(0),계산주기(0),X(0),sumXY(0),sumX(0),sumY(0),sumX²(0), MinLRS(0),MinB(0),MinLRL(0);
Array:MinClose[100](0);
k = k + 1;
if DayIndex()%계산주기 == 0 then {
for j = 98 downto 0 {
MinClose[j+1] = MinClose[j];
}
X = X + 1;
k = 0;
}
MinClose[0] = C;
sumXY = 0; sumX = 0; sumY = 0; sumX² = 0;
For j = 0 To n-1 {
sumXY = sumXY + (X-j)*MinClose[j];
sumX = sumX + (X-j);
sumY = sumY + MinClose[j];
sumX²= sumX²+ (X-j)^2;
}
MinLRS = (n*sumXY - sumX*sumY)/(n*sumX²- sumX^2);
MinB = (sumY*sumX²-sumX*sumXY)/(n*sumX²- sumX^2);
MinLRL = MinLRS * X + MinB;
//////////////////////////////////////////////////////////////////////////
항상 고맙습니다.
2021-05-21
1174
글번호 149217
답변완료
수식 문의
안녕하세요?
주말로 넘어가는 길에
수식 부탁드립니다.
감사합니다.
2021-05-21
1193
글번호 149216