답변완료
지표식
A=BBandsDown( 20 , 2 );
L=LOWEST( A , 63 );
M=VALUEWHEN(1,L<L(1),L);
J= C > 0 && CROSSUP(C , M );
Valuewhen(1 , J , L ) 지표식 부탁드려요
2025-03-22
378
글번호 189416
지표
답변완료
수식 문의 드립니다.
안녕하세요.
지난번[91926]에서 문의 드렸던 강조수식입니다.
답변주신 수식으로 차트에 적용하면 지난 봉들은 잘 표시 되는데 0봉전은 강조표시 되지 않습니다. 같은 조건으로 키움에서 표시되는 그림 첨부하였습니다.0봉전도 표시되도록 부탁드립니다.
input : Period1(9),Period2(12),Period3(20),Period4(26);
var : X1(0),X2(0),X3(0),X4(0);
var : S1(0),S2(0),S3(0),S4(0);
var : box(0);
X1=Trix(Period1)-Trix(Period1)[1];
X2=Trix(Period2)-Trix(Period2)[1];
X3=Trix(Period3)-Trix(Period3)[1];
X4=Trix(Period4)-Trix(Period4)[1];
S1 = Ema(X1,9);
S2 = Ema(X2,9);
S3 = Ema(X3,9);
S4 = Ema(X4,9);
Condition1 = X1>0 and X2>0 and X3>0 and X4>0 &&
S1>0 and S2>0 and S3>0 and S4>0;
if Condition1 == true Then
{
if Condition1[1] == False Then
{
box = Box_New(sDate,sTime,H,NextBarSdate,NextBarStime,L);
Box_SetColor(box,Red);
Box_SetFill(box,true);
Box_SetExtFill(box,true);
}
Else
{
Box_SetEnd(box,NextBarSdate,NextBarStime,l);
}
}
2025-03-22
354
글번호 189414
강조