예스스탁
예스스탁 답변
2022-07-21 14:49:27
안녕하세요
예스스탁입니다.
input : 간격(5),굵기(0),표시갯수(10);
input : 익절틱수(50),손절틱수(10);
var : T(0),Cnt(0),HH(0),LL(0),HD(0),HT(0),LD(0),LT(0);
Array : TL1[20](0),TL2[20](0);
if highest(H,간격)[간격+1] < H[간격] and
highest(H,간격) < H[간격] Then
{
T = 1;
TL1[0] = TL_New(sdate[간격],stime[간격],H[간격],sdate,stime,H[간격]);
TL_SetColor(TL1[0],RED);
TL_SetSize(TL1[0],굵기);
TL_SetExtRight(TL1[0],true);
if 표시갯수 > 0 then
{
for cnt = 1 to 19
{
TL1[cnt] = TL1[cnt-1][1];
}
TL_Delete(TL1[표시갯수]);
}
if T == T[1] then
{
TL2[0] = TL_New(LD[간격],LT[간격],LL[간격],sdate,stime,LL[간격]);
TL_SetColor(TL2[0],BLUE);
TL_SetSize(TL2[0],굵기);
TL_SetExtRight(TL2[0],true);
if 표시갯수 > 0 then
{
for cnt = 1 to 19
{
TL2[cnt] = TL2[cnt-1][1];
}
TL_Delete(TL2[표시갯수]);
}
}
LL = L;
LD = sdate;
LT = stime;
for cnt = 0 to 간격-1
{
if L[cnt] <= LL Then
{
LL = L[cnt];
LD = sdate[cnt];
LT = stime[cnt];
}
}
}
if Lowest(L,간격)[간격+1] > L[간격] and
Lowest(L,간격) > L[간격] Then
{
T = -1;
TL2[0] = TL_New(sdate[간격],stime[간격],L[간격],sdate,stime,L[간격]);
TL_SetColor(TL2[0],BLUE);
TL_SetSize(TL2[0],굵기);
TL_SetExtRight(TL2[0],true);
if 표시갯수 > 0 then
{
for cnt = 1 to 19
{
TL2[cnt] = TL2[cnt-1][1];
}
TL_Delete(TL2[표시갯수]);
}
if T == T[1] then
{
TL1[0] = TL_New(HD[간격],HT[간격],HH[간격],sdate,stime,HH[간격]);
TL_SetColor(TL1[0],RED);
TL_SetSize(TL1[0],굵기);
TL_SetExtRight(TL1[0],true);
if 표시갯수 > 0 then
{
for cnt = 1 to 19
{
TL1[cnt] = TL1[cnt-1][1];
}
TL_Delete(TL1[표시갯수]);
}
}
HH = H;
HD = sDate;
HT = sTime;
for cnt = 0 to 간격-1
{
if H[cnt] >= HH Then
{
HH = H[cnt];
HD = sdate[cnt];
HT = stime[cnt];
}
}
}
if H >= HH Then
{
HH = H;
HD = sdate;
HT = stime;
}
if L <= LL Then
{
LL = L;
LD = sdate;
LT = stime;
}
Condition1 = False;
Condition2 = False;
For cnt = 0 to 9
{
if C > TL_GetValue(TL1[cnt],sDate,sTime) and
C[1] < TL_GetValue(TL1[cnt],sDate,sTime) Then
Condition1 = true;
if C < TL_GetValue(TL2[cnt],sDate,sTime) and
C[1] > TL_GetValue(TL2[cnt],sDate,sTime) Then
Condition2 = true;
}
if Condition1 == true Then
Buy();
if Condition2 == true Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 추세승리 님이 쓴 글입니다.
> 제목 : 지지저항 지표이용한 시스템
> 안녕하세요?
예스트레이더 지표의 지지저항지표를 이용한 시스템을 만들고 싶습니다.
1 저항 돌파시 다음봉 매수진입
가. 10틱 하향시 스탑.
나. 50틱 도달시 익절.
2 지지 돌파시 다음봉 매도진입
가. 10틱 하향시 스탑.
나. 50틱 도달시 익절.
항상 감사드리며 부탁드립니다,