1. "신호수식에 + 0봉전~20봉전의 모든종목"맞는 종목검색식 부탁드려요
S=supertrend(14,3);
U조건=sum(C<S,200)==200;
U조건(1)&& CrossUp(C,S)
답변 1
예스스탁
예스스탁 답변
2025-01-23 15:12:48
안녕하세요
예스스탁입니다.
input : period(10),multiplier(3);
var : src(0), AtrV(0),upperBand(0),lowerBand(0), prevLowerBand(0), prevUpperBand(0);
var : prevSuperTrend(0), direction(0),alpha(0),source(0),SuperTrend(C),U조건(False);
if CurrentBar > 1 Then
{
src = (H+L)/2;
alpha = 1 / period ;
source = max(high - low, abs(high - close[1]), abs(low - close[1]));
ATrV = alpha * source + (1 - alpha) * ATrV[1]; //지수가중이평방식
//ATrV = ma(source,AtrPeriod); //단순이평방식
upperBand = src + multiplier * AtrV;
lowerBand = src - multiplier * AtrV;
prevLowerBand = lowerBand[1];
prevUpperBand = upperBand[1];
if lowerBand > prevLowerBand or close[1] < prevLowerBand Then
lowerBand = lowerBand;
Else
lowerBand = prevLowerBand;
if upperBand < prevUpperBand or close[1] > prevUpperBand Then
upperBand = upperBand;
Else
upperBand = prevUpperBand;
if C > UpperBand Then
direction = 1;
if C < LowerBand Then
direction = -1;
if direction == 1 Then
SuperTrend = lowerband;
Else
SuperTrend = upperband;
U조건 = countif(C < SuperTrend,200) == 200;
if countif(U조건[1] == true && CrossUp(C,SuperTrend),20) >= 1 Then
Find(1);
}
즐거운 하루되세요
> 일지매7 님이 쓴 글입니다.
> 제목 : 검색식 부탁 드려요
> 1. "신호수식에 + 0봉전~20봉전의 모든종목"맞는 종목검색식 부탁드려요
S=supertrend(14,3);
U조건=sum(C<S,200)==200;
U조건(1)&& CrossUp(C,S)