예스스탁
예스스탁 답변
2025-12-22 11:15:35
안녕하세요
예스스탁입니다.
1
기존식은 2개값이 1%이내라는 내용입니다.
1%돌파가 2개값의 폭이 1%이하였다가 1%를 넘어가는 내용이면 아래와 같습니다.
input : 기간(10),기간1(10);
var : M10(0),M240(0),HH(Nan),LL(Nan);
M10=Ma(c,기간);
M240=Ma(c,240);
if CrossUp(M10,M240) Then
HH = M10;
Else
{
if M10 > HH Then
HH = M10;
}
if CrossDown(M10,M240) Then
LL = M10;
Else
{
if M10 < LL Then
LL = M10;
}
Condition1 = max(HH,LL) <= min(HH,LL)*1.01;
if CrossUp(C,max(HH,LL)) and Condition1 == true Then
Find(1);
2
input : 기간(10);
var : ma10(0),ma240(0),ll(Nan);
Ma10=Ma(c,기간);
Ma240=Ma(c,240);
if CrossDown(ma10,ma240) Then
ll = ma10;
Else
{
if ma10 < ll Then
ll = ma10;
}
input : 기간5(240);
var : m240(0);
m240=MA(c, 기간5);
input : short(12),long(26),signal(9);
var :A1(0),A2(0);
A1= MACD(short,long);
A2 =Ema(MACD(short,long),signal);
Input:sto1(7),sto2(3),sto3(3);
var : B1(0),B2(0);
B1 = stochasticsK(sto1,sto2);
B2 = stochasticsD(sto1,sto2,sto3);
if A1 < -0.1 and A2 < -0.08 and A1[2] > A1[1] and
A1[1] < A1 and 1 < B1 and B1< 45 and 1 < B2 and B2 < 45 and
LL > 0 and m240 > LL Then
Find(1);
즐거운 하루되세요