예스스탁
예스스탁 답변
2022-07-19 13:39:14
안녕하세요
예스스탁입니다.
var : diff(0),dh(0),dl(0);
var : tx1(0),tx2(0),tx3(0),tx4(0);
diff = Bids-Asks;
if CurrentDate == sDate Then
if Bdate != Bdate[1] Then
{
dh = diff;
dl = diff;
#봉차트위 출력
tx1 = Text_New(sDate,sTime,H,"잔량최고=================================잔량최고");
tx2 = Text_New(sDate,sTime,L,"잔량최저=================================잔량최저");
Text_SetStyle(tx1,2,1);
Text_SetStyle(tx2,2,0);
#지표위 출력
tx3 = Text_New_Self(sDate,sTime,dH,"=======================");
tx4 = Text_New_Self(sDate,sTime,dL,"=======================");
Text_SetStyle(tx3,2,1);
Text_SetStyle(tx4,2,0);
var1 = diff;
}
if CurrentDate == sDate Then
if diff > dh Then
{
dh = diff;
Text_SetLocation(tx1,sDate,sTime,H);
Text_SetLocation(tx3,sDate,sTime,dh);
}
if diff < dl Then
{
dl = diff;
Text_SetLocation(tx2,sDate,sTime,L);
Text_SetLocation(tx4,sDate,sTime,dl);
}
var : SIdx(0),Sidx1(0),Eidx(0),Eidx1(0),cnt(0),pre1(0);
if Bdate != Bdate[1] Then
{
Sidx = Index;
Sidx1 = Sidx[1];
Eidx1 = Eidx[1];
}
Eidx = Index;
if Sidx1 > 0 Then
{
pre1 = 0;
For cnt = Index-Eidx1 to Index-Sidx1
{
if sDate[cnt] < sDate and sTime[cnt] <= sTime Then
{
pre1 = diff[cnt];
cnt = Index-Sidx1+1;
}
}
}
if CurrentDate == sDate Then
Plot1(diff, "호가잔량",IFf(Diff > 0,RGB(255,051,051),RGB(100,153,255)));
Plot2(dh, "당일최고");
Plot3(dl, "당일최저");
Plot4(Pre1, "전일동시간");
plot5(var1,"첫봉");
plot6(dl+(dh-dl)*0.236,"23.6%");
plot7(dl+(dh-dl)*0.382,"38.2%");
plot8(dl+(dh-dl)*0.500,"50.0%");
plot9(dl+(dh-dl)*0.618,"61.8%");
plot10(dl+(dh-dl)*0.714,"71.4%");
PlotBaseLine1(0);
즐거운 하루되세요
> 포보스 님이 쓴 글입니다.
> 제목 : 지표 부탁드립니다.
> 안녕하세요?
다음 수식에서 잔량의 첫봉 종가라인에 시가라인을 넣어주시고
잔량 전체에 피보나치 비율 라인도 함께 넣어주십시오.
거듭 감사드립니다.
좋은하루 되세요.
var : diff(0),dh(0),dl(0);
var : tx1(0),tx2(0),tx3(0),tx4(0);
diff = Bids-Asks;
if CurrentDate == sDate Then
if Bdate != Bdate[1] Then
{
dh = diff;
dl = diff;
#봉차트위 출력
tx1 = Text_New(sDate,sTime,H,"잔량최고=================================잔량최고");
tx2 = Text_New(sDate,sTime,L,"잔량최저=================================잔량최저");
Text_SetStyle(tx1,2,1);
Text_SetStyle(tx2,2,0);
#지표위 출력
tx3 = Text_New_Self(sDate,sTime,dH,"=======================");
tx4 = Text_New_Self(sDate,sTime,dL,"=======================");
Text_SetStyle(tx3,2,1);
Text_SetStyle(tx4,2,0);
}
if CurrentDate == sDate Then
if diff > dh Then
{
dh = diff;
Text_SetLocation(tx1,sDate,sTime,H);
Text_SetLocation(tx3,sDate,sTime,dh);
}
if CurrentDate == sDate Then
if diff < dl Then
{
dl = diff;
Text_SetLocation(tx2,sDate,sTime,L);
Text_SetLocation(tx4,sDate,sTime,dl);
}
var : SIdx(0),Sidx1(0),Eidx(0),Eidx1(0),cnt(0),pre1(0);
if Bdate != Bdate[1] Then
{
Sidx = Index;
Sidx1 = Sidx[1];
Eidx1 = Eidx[1];
}
Eidx = Index;
if Sidx1 > 0 Then
{
pre1 = 0;
For cnt = Index-Eidx1 to Index-Sidx1
{
if sDate[cnt] < sDate and sTime[cnt] <= sTime Then
{
pre1 = diff[cnt];
cnt = Index-Sidx1+1;
}
}
}
if CurrentDate == sDate Then
Plot1(diff, "호가잔량",IFf(Diff > 0,RGB(255,051,051),RGB(100,153,255)));
Plot2(dh, "당일최고");
Plot3(dl, "당일최저");
Plot4(Pre1, "전일동시간");
PlotBaseLine1(0);