답변완료
문의드립니다.
아래 TS의 함수를 예스에서 사용하고 싶은데 함수 사용방법설명쫌 부탁드립니다
숫자형, 문자형,논리형으로 나오는데 이 부분을 어떻게 지정해서 만들어야 되나요?
inputs:
Length( numericsimple ),
oBullishEngulfing( numericref ),
oBearishEngulfing( numericref ) ;
variables:
Body( 0 ),
PriceAvg( 0 ),
BodyAvg( 0 ) ;
Body = MaxList( Close, Open ) - MinList( Close, Open ) ;
PriceAvg = XAverage( Close, Length ) ;
BodyAvg = XAverage( Body, Length ) ;
oBullishEngulfing = 0 ;
oBearishEngulfing = 0 ;
if CurrentBar > 1 then
begin
if Close < PriceAvg
{ TREND IS down }
and Close > Open
{ CURRENT BODY white... }
and Body > BodyAvg
{ ...AND LONG }
and Close[1] < Open[1]
{ PREVIOUS BODY black... }
and Body[1] < BodyAvg[1]
{ ...AND SMALL }
and Close >= Open[1]
{ BullEng COND 1 }
and Open <= Close[1]
{ BullEng COND 2 }
and ( Close > Open[1] or Open < Close[1] )
{ BullEng COND 3 }
then
oBullishEngulfing = 1
else if Close > PriceAvg
{ TREND IS up }
and Close < Open
{ CURRENT BODY black... }
and Body > BodyAvg
{ ...AND LONG }
and Close[1] > Open[1]
{ PREVIOUS BODY white... }
and Body[1] < BodyAvg[1]
{ ...AND SMALL }
and Close <= Open[1]
{ BearEng COND 1 }
and Open >= Close[1]
{ BearEng COND 2 }
and ( Close < Open[1] or Open > Close[1] )
{ BearEng COND 3 }
then
oBearishEngulfing = 1 ;
end ;
C_BullEng_BearEng = 1 ;
2025-06-03
130
글번호 191372
사용자 함수
답변완료
부탁드립니다.
A1=shift((highest(high,5)+lowest(low,5)+highest(high,20)+
lowest(low,20))/4,20-1);
A2=shift((highest(high,60)+lowest(low,60))/2,20-1);
A3=ma(C,120);
A4=Valuewhen(1,Crossup(A1,A2) or Crossdown
(A1,A2),min(L,L(1)));
Crossup(C,A4) && Crossup(C,A3) &&
V>=V(1)*2 && C>O
2025-06-03
181
글번호 191367
종목검색