예스스탁
예스스탁 답변
2025-04-02 15:49:40
안녕하세요
예스스탁입니다.
var : A(0),B(0),E(0),AA(0),MM(0);
var : count(0);
A=BollBandUp(17,2);
B=BollBandUp(40,2);
E=EnvelopeUp(20,2);
input : period(15),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);
if CurrentBar > 1 Then
{
src = (H+L)/2;
alpha = 1 / period ;
source = TrueRange;
ATrV = IFf(IsNan(ATrV[1]) == true, ma(source,period) , alpha * source + (1 - alpha) * IFf(isnan(ATrV[1])==true,0,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;
}
mm=((h+l)/2)*v/100000000;
AA=(daylow()+dayhigh())/2;
count = 0;
if (c>ma(h,5) and CrossUp(A,E)) or
(c>ma(h,5) and B>E and CrossUp(A,B))
or (A>B and B>E and CrossUP(C,A))
or (CrossUP(C,A) and CrossUP(C,B) and CrossUP(C,E)) Then
count = count+1;
IF CROSSUP(C,supertrend) && mm>2 && C>O TheN
count = count+1;
if crossup(C,AA) and
crossup(C, BollBandUp(20,2)) Then
count = count+1;
IF count >= 2 Then
Find(1);
즐거운 하루되세요
> 리버피닉스 님이 쓴 글입니다.
> 제목 : 키움수식 변환 부탁드립니다.
> 안녕하세요, 항상 도움을 주심에 감사드립니다.
키움증권 HTS 5분봉에서 사용하던 수식입니다.
아래 3가지 수식중 2개 이상을 만족하는 종목을 찾는 검색식 부탁드립니다.
1.
A=bbandsup(17,2);
B=bbandsup(40,2);
M=EnvelopeUp(20,2);
(c>ma(h,5) and CrossUp(A,M)) or
(c>ma(h,5) and B>M and CrossUp(A,B))
or (A>B and B>M and CrossUP(C,A))
or (CrossUP(C,A) and CrossUP(C,B) and CrossUP(C,M))
2.
A = supertrend(period, multiplier);
M=((고가+저가)/2)*거래량/100000000;
CROSSUP(C,A) &&
M>2 && C>O
지표 - Period : 15, Multiplier : 3
3.
A=(daylow()+dayhigh())/2;
crossup(C,A) AND
crossup(C, BBANDSUP(20,2))
감사합니다.