예스스탁
예스스탁 답변
2022-03-25 10:50:35
안녕하세요
예스스탁입니다.
1
if C > O and H-L >= 0.3 Then
Buy();
if C < O and H-L >= 0.3 Then
Sell();
2
if C > O and abs(C-O) >= 0.3 Then
Buy();
if C < O and abs(C-O) >= 0.3 Then
Sell();
3-1
input : ntime(30),굵기(3);
var : S1(0),D1(0),TM(0),TF(0),TL(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
TL = TL_New(sdate,sTime,0,sDate,sTime,99999999);
TL_SetColor(TL,GREEN);
TL_SetSize(TL,굵기);
}
}
3-2
input : diff(2.5),굵기(3),글자크기(20);
var : cnt(0),ii(0);
Array : TL[101](0), TX[101](0), VV[101](0);
if Bdate != Bdate[1] Then
{
ii = 0;
var1 = Floor(DayOpen/diff)*diff;
For cnt = -5 to 5
{
ii = ii+1;
TL_Delete(TL[ii]);
var2 = var1+(diff*cnt);
VV[ii] = Var2;
TL[ii] = TL_New(sDate,sTime,VV[ii],NextBarSdate,NextBarStime,VV[ii]);
TL_SetExtRight(TL[ii],true);
TL_SetExtLeft(TL[ii],true);
TL_SetColor(TL[ii],BLACK);
TL_SetSize(TL[ii],굵기);
Text_Delete(TX[ii]);
TX[ii] = Text_New(sDate,sTime,VV[ii],NumToStr(VV[ii],2));
Text_SetStyle(TX[ii],0,1);
Text_SetSize(TX[ii],글자크기);
}
}
Else
{
ii = 0;
var1 = Floor(DayOpen/diff)*diff;
For cnt = -5 to 5
{
ii = ii +1;
Text_SetLocation(TX[ii],NextBarSdate,NextBarStime,VV[ii]);
}
}
즐거운 하루되세요
> 한림 님이 쓴 글입니다.
> 제목 : 수식 문의드립니다.
> 1. 선물 틱챠트에서 캔들 양봉 고가저가 진폭이 0.3p면 매수신호
캔들 음봉 고가저가 진폭이 0.3p면 매도신호 시스템 신호수식
2. 선물 틱챠트에서 캔들 양봉 시가종가 진폭이 0.3p면 매수신호
캔들 음봉 시가종가 진폭이 0.3p면 매도신호 시스템 신호수식
3. 문의번호 76487관련입니다.
아래의 수식을 챠트에 적용해보니
1번 수식은 수직선이 가늘어 굵게 볼 수 있는 조정수식
2번 수식은 수평선 가격이 작게 보여 가격이 크게 보이는 조정수식 부탁드립니다.
감사합니다.
1
input : ntime(30);
var : S1(0),D1(0),TM(0),TF(0),TL(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
TL = TL_New(sdate,sTime,0,sDate,sTime,99999999);
TL_SetColor(TL,GREEN);
}
}
2
input : diff(2.5),굵기(3);
var : cnt(0),ii(0);
Array : TL[101](0), TX[101](0), VV[101](0);
if Bdate != Bdate[1] Then
{
ii = 0;
var1 = Floor(DayOpen/diff)*diff;
For cnt = -5 to 5
{
ii = ii+1;
TL_Delete(TL[ii]);
var2 = var1+(diff*cnt);
VV[ii] = Var2;
TL[ii] = TL_New(sDate,sTime,VV[ii],NextBarSdate,NextBarStime,VV[ii]);
TL_SetExtRight(TL[ii],true);
TL_SetExtLeft(TL[ii],true);
TL_SetColor(TL[ii],BLACK);
TL_SetSize(TL[ii],굵기);
Text_Delete(TX[ii]);
TX[ii] = Text_New(sDate,sTime,VV[ii],NumToStr(VV[ii],2));
Text_SetStyle(TX[ii],0,1);
}
}
Else
{
ii = 0;
var1 = Floor(DayOpen/diff)*diff;
For cnt = -5 to 5
{
ii = ii +1;
Text_SetLocation(TX[ii],NextBarSdate,NextBarStime,VV[ii]);
}
}