예스스탁
예스스탁 답변
2024-03-14 14:26:21
안녕하세요
예스스탁입니다.
수식안에서 그래프 종류는 지정할 수 없습니다.
지표수식들은 각 지표속성에서 점그래프로 직접 지정하셔야 합니다.
종목검색은 속성에서 검색에 필요한 최소기간에 500봉 지정하고 검색하시기 바랍니다.
1-1 지표
input : N(5);
var : cnt(0),sum(0);
Array : cond[10](False);
var1 = ma(C,20);
Var2 = ma(C,240);
if sDate != sDate[1] Then
{
Condition1 = False;
Condition2 = False;
Condition3 = False;
For cnt = 9 DownTo 1
{
cond[cnt] = cond[cnt-1];
}
cond[0] = False;
}
if Bdate == Bdate[1] and V >= V[1]*100 Then
Condition1 = true;
if CrossUp(C,var1) Then
Condition2 = true;
if CrossUp(var1,Var2) Then
Condition3 = true;
if Condition1 and Condition2 and Condition3 Then
cond[0] = true;
sum = 0;
For cnt = 1 to N
{
if cond[cnt] == true Then
sum = sum+1;
}
if sum == 0 and cond[0] == true Then
Plot1(ma(C,120));
1-2
input : N(5);
var : cnt(0),sum(0);
Array : cond[10](False);
var1 = ma(C,20);
Var2 = ma(C,240);
if sDate != sDate[1] Then
{
Condition1 = False;
Condition2 = False;
Condition3 = False;
For cnt = 9 DownTo 1
{
cond[cnt] = cond[cnt-1];
}
cond[0] = False;
}
if Bdate == Bdate[1] and V >= V[1]*100 Then
Condition1 = true;
if CrossUp(C,var1) Then
Condition2 = true;
if CrossUp(var1,Var2) Then
Condition3 = true;
if Condition1 and Condition2 and Condition3 Then
cond[0] = true;
sum = 0;
For cnt = 1 to N
{
if cond[cnt] == true Then
sum = sum+1;
}
if sum == 0 and cond[0] == true Then
Find(1);
2-1 지표
input : P(5),N(5);
var : cnt(0),sum(0),sum1(0),sum2(0),dma1(0),dma2(0);
Array : cond[10](False);
sum1 = 0;
sum2 = 0;
For cnt = 0 to P-1
{
sum1 = sum1+ DayClose(cnt);
sum2 = sum2+ DayClose(cnt+1);
}
dma1 = sum1/P;
dma2 = sum2/P;
var1 = ma(C,20);
Var2 = ma(C,240);
if sDate != sDate[1] Then
{
Condition1 = False;
Condition2 = False;
Condition3 = False;
For cnt = 9 DownTo 1
{
cond[cnt] = cond[cnt-1];
}
cond[0] = False;
}
if Bdate == Bdate[1] and V >= V[1]*100 Then
Condition1 = true;
if CrossUp(C,var1) Then
Condition2 = true;
if CrossUp(var1,Var2) Then
Condition3 = true;
if Condition1 and Condition2 and Condition3 Then
cond[0] = true;
sum = 0;
For cnt = 1 to N
{
if cond[cnt] == true Then
sum = sum+1;
}
if sum == 0 and cond[0] == true and c > dma1 and DayClose(1) < dma2 Then
Plot1(ma(C,120));
2
input : P(5),N(5);
var : cnt(0),sum(0),sum1(0),sum2(0),dma1(0),dma2(0);
Array : cond[10](False);
sum1 = 0;
sum2 = 0;
For cnt = 0 to P-1
{
sum1 = sum1+ DayClose(cnt);
sum2 = sum2+ DayClose(cnt+1);
}
dma1 = sum1/P;
dma2 = sum2/P;
var1 = ma(C,20);
Var2 = ma(C,240);
if sDate != sDate[1] Then
{
Condition1 = False;
Condition2 = False;
Condition3 = False;
For cnt = 9 DownTo 1
{
cond[cnt] = cond[cnt-1];
}
cond[0] = False;
}
if Bdate == Bdate[1] and V >= V[1]*100 Then
Condition1 = true;
if CrossUp(C,var1) Then
Condition2 = true;
if CrossUp(var1,Var2) Then
Condition3 = true;
if Condition1 and Condition2 and Condition3 Then
cond[0] = true;
sum = 0;
For cnt = 1 to N
{
if cond[cnt] == true Then
sum = sum+1;
}
if sum == 0 and cond[0] == true and c > dma1 and DayClose(1) < dma2 Then
find(1);
즐거운 하루되세요
> qaz74 님이 쓴 글입니다.
> 제목 : 지표식 및 종목검색식 부탁드립니다.
> 안녕하세요?
1. 30분봉에서 오늘중에
a) 전봉대비 거래량이 10배증가한적이 1번이상 있고
b) 주가가 20ma를 돌파한적도 1번이상 있고
c) 20ma가 240ma를 돌파한적도 1번이상 있다.
2. 일봉에서 주가가 5일선을 돌파했다.
0 5일만에 처음 30분봉상 1을 만족(a+b+c) 하는 30분봉 지표식 과 종목 검색식
0 1을 만족(a+b+c) 하는 30분봉 지표식 과 종목 검색식
0 1과 2를 모두 만족 (1(a and b and c) and 2 )하는
30분봉 지표식 과 종목 검색식 부탁드립니다.
* 지표식은 120ma에 점으로 표시하고 싶습니다.
감사합니다.