예스스탁
예스스탁 답변
2025-09-12 11:10:46.0
안녕하세요
예스스탁입니다.
조건=if(B1>B2,AH,AL);
올리신 수식에서 위 내용은 변수명은 조건이지만 숫자입니다.
어떤 내용으로 비교문을 지정해야 할지 알수 없습니다.
해당값이 변동이 있을 경우로 작성해 드립니다.
1
var : AH(0),AL(0),B1(Nan),B2(Nan),조건(0),count(0);
AH= DayHigh();
AL= DayLow();
if AH == H Then
B1 = 0;
Else
B1 = B1+1;
if AL == L Then
B2 = 0;
Else
B2 = B2+1;
조건 = iff(B1>B2,AH,AL);
if sDate != sDate Then
count = 0;
if 조건 != 조건[1] Then
count = 0;
if count >= 1 Then
Find(1);
2
input : period(15),multiplier(3);
var : src(0), alpha(0),ATRV(0),upperBand(0),lowerBand(0),direction(0),SuperTrend(C),S(False);
if CurrentBar > 1 Then
{
src = (H+L)/2;
alpha = 1 / period ;
ATRV = IFf(IsNan(ATRV[1]) == true, ma(TrueRange,period) , alpha * TrueRange + (1 - alpha) * IFf(isnan(ATRV[1])==true,0,ATRV[1]));
upperBand = src + multiplier * AtrV;
lowerBand = src - multiplier * AtrV;
if lowerBand > lowerBand[1] or close[1] < lowerBand[1] Then
lowerBand = lowerBand;
Else
lowerBand = lowerBand[1];
if upperBand < upperBand[1] or close[1] > upperBand[1] Then
upperBand = upperBand;
Else
upperBand = upperBand[1];
if C > UpperBand Then
direction = 1;
if C < LowerBand Then
direction = -1;
if direction == 1 Then
SuperTrend = lowerband;
Else
SuperTrend = upperband;
}
S=CrossDown(C,supertrend);
var : AH(0),AL(0),B1(Nan),B2(Nan),조건(0),count(0);
AH= DayHigh();
AL= DayLow();
if AH == H Then
B1 = 0;
Else
B1 = B1+1;
if AL == L Then
B2 = 0;
Else
B2 = B2+1;
조건 = iff(B1>B2,AH,AL);
if sDate != sDate Then
count = 0;
if 조건 != 조건[1] and CountIf(S,20)[1] >= 1 Then
Find(1);
즐거운 하루되세요
> 다리 님이 쓴 글입니다.
> 제목 : 조건검색식 부탁드립니다
> 안녕하세요. 항상 감사드립니다.
1. "조건" 이 분봉 당일내 검색된 모든 종목
2. "조건" 검색 된 종목 중에서 1~20봉전 내에 " S " 가 발생된 종목 검색식 부탁 드립니다.
S=CrossDown(C,supertrend(15, 3));
AH= DayHigh();
AL= DayLow();
B1= BarsSince(AH==H);
B2= BarsSince(AL==L);
조건=if(B1>B2,AH,AL);