일전, 다음과 같은 수식에 도움을 주신바 있습니다.
이를,
전일 데이타에 영향을 받지않고
오직 당일 데이타만 적용되도록 수정하고 싶습니다.
항상 친절한 답변에 감사드리며
번거로우시더라도 다시 더 봐주시면 감사드리겠습니다.
------ 다음 ------
input : X(3);
var : diff(0),color(0);
diff = Upvol-DownVol;
if diff < 0 and diff[1] > 0 and abs(diff) >= abs(diff[1])*X Then
{
Condition1 = true;
color = rgb(103,153,255);
}
if diff > 0 and diff[1] < 0 and abs(diff) >= abs(diff[1])*X Then
{
Condition1 = true;
color = Rgb(242,150,97);
}
if Condition1 == true Then
PlotPaintBar(H,L,"강조",color);
답변 1
예스스탁
예스스탁 답변
2021-12-29 14:07:26
안녕하세요
예스스탁입니다.
input : X(3);
var : diff(0),color(0);
diff = Upvol-DownVol;
if Bdate != Bdate[1] Then
Condition1 = False;
if Bdate == Bdate[1] Then
{
if diff < 0 and diff[1] > 0 and abs(diff) >= abs(diff[1])*X Then
{
Condition1 = true;
color = rgb(103,153,255);
}
if diff > 0 and diff[1] < 0 and abs(diff) >= abs(diff[1])*X Then
{
Condition1 = true;
color = Rgb(242,150,97);
}
if Condition1 == true Then
PlotPaintBar(H,L,"강조",color);
}
새해 좋은 일만 가득하시길 바랍니다.
> 흑수돌 님이 쓴 글입니다.
> 제목 : 수식 문의
> 일전, 다음과 같은 수식에 도움을 주신바 있습니다.
이를,
전일 데이타에 영향을 받지않고
오직 당일 데이타만 적용되도록 수정하고 싶습니다.
항상 친절한 답변에 감사드리며
번거로우시더라도 다시 더 봐주시면 감사드리겠습니다.
------ 다음 ------
input : X(3);
var : diff(0),color(0);
diff = Upvol-DownVol;
if diff < 0 and diff[1] > 0 and abs(diff) >= abs(diff[1])*X Then
{
Condition1 = true;
color = rgb(103,153,255);
}
if diff > 0 and diff[1] < 0 and abs(diff) >= abs(diff[1])*X Then
{
Condition1 = true;
color = Rgb(242,150,97);
}
if Condition1 == true Then
PlotPaintBar(H,L,"강조",color);