예스스탁
예스스탁 답변
2024-12-17 10:19:37
안녕하세요
예스스탁입니다.
if sTime < 093000 Then
{
input : Period(20),dv(2);
var : BBup(0),BBmd(0),BBdn(0),A(0),B(0),tx1(0),tx2(0);
BBup = BollBandUp(Period,dv);
BBmd = ma(c,Period);
BBdn = BollBandDown(Period,dv);
if Bdate != Bdate[1] Then
{
A = bbup;
B = bbdn;
tx1 = Text_New(sDate,sTime,A,NumToStr(A,2));
Text_SetStyle(tx1,0,1);
tx2 = Text_New(sDate,sTime,B,NumToStr(B,2));
Text_SetStyle(tx2,0,0);
}
if A > 0 and bbup > A Then
A = bbup;
if B > 0 and bbdn< B Then
B = bbdn;
Plot1(A,"H");
plot2(B,"L");
Text_SetString(tx1,NumToStr(A,2));
Text_SetString(tx2,NumToStr(B,2));
Text_SetLocation(tx1,sDate,sTime,A);
Text_SetLocation(tx2,sDate,sTime,B);
}
Else
{
NoPlot(1);
NoPlot(2);
}
즐거운 하루되세요
> para 님이 쓴 글입니다.
> 제목 : 지표 질문입니다
> 아래 수식의 A,B 값을 표출된 선 옆에 숫자로 표시되도록 수정 부탁드립니다
감사합니다
------------------------------------------------------------------
if sTime < 093000 Then
{
input : Period(20),dv(2);
var : BBup(0),BBmd(0),BBdn(0),A(0),B(0);
BBup = BollBandUp(Period,dv);
BBmd = ma(c,Period);
BBdn = BollBandDown(Period,dv);
if Bdate != Bdate[1] Then
{
A = bbup;
B = bbdn;
}
if A > 0 and bbup > A Then
A = bbup;
if B > 0 and bbdn< B Then
B = bbdn;
Plot1(A,"H");
plot2(B,"L");
}
Else
{
NoPlot(1);
NoPlot(2);
}