예스스탁
예스스탁 답변
2023-12-20 15:24:23
안녕하세요
예스스탁입니다.
1
input : P1(1.03),P2(0.97);
var : a(False),b(False),d(False),조건(False);
var : 고가(0),저가(0),중심(0),결과(False),결과2(False);
var : s(0),a_cnt(0),b_cnt(0),c_cnt(0);
var : 결과3(False),결과4(False),결과값(False),결과값2(False),cs1(-1);
var : 시가(0),시가2(0),저가이탈(False);
var : d_cnt(0),e_cnt(0),조건2(False),결과값3(False),cs2(-1),결과값4(False);
a=c>c[1]*p1;
b=c>h[1];
d=c[1]<l[2];
조건=a && b && d;
if 조건 Then
{
고가=DAYHIGH();
저가=DAYLOW();
}
중심=(고가+저가)/2;
결과=crossdown(c,저가);
결과2=crossup(c,고가);
s=s+1;
if 조건 Then
a_cnt=s;
if 결과 Then
b_cnt=s;
if 결과2 Then
c_cnt=s;
결과3=a_cnt<b_cnt && b_cnt<c_cnt;
결과4=결과3[1] && 저가>c;
if 조건 Then
cs1 = 0;
if cs1 >= 0 and 결과4 Then
cs1 = cs1+1;
결과값=cs1==1;
결과값2=결과4 && 결과값;
if 결과값2[1] Then
시가=o;
시가2=(시가*p2)*p2;
저가이탈=crossdown(l,시가2);
if 결과값2 Then
d_cnt=s;
if 저가이탈 Then
e_cnt=s;
조건2=d_cnt<e_cnt;
if 결과값2 Then
cs2 = 0;
if cs2 >= 0 and 조건2 Then
cs2 = cs2+1;
결과값3=cs2==1;
결과값4=조건2 && 결과값3;
if 결과값4 Then
Find(1);
2
input : P1(1.03),P2(0.97);
var : a(False),b(False),d(False),조건(False);
var : 고가(0),저가(0),중심(0),결과(False),결과2(False);
var : s(0),a_cnt(0),b_cnt(0),c_cnt(0);
var : 결과3(False),결과4(False),결과값(False),결과값2(False),cs1(-1);
var : 시가(0),시가2(0),저가이탈(False);
var : d_cnt(0),e_cnt(0),조건2(False),결과값3(False),cs2(-1),결과값4(False),tx(0);
a=c>c[1]*p1;
b=c>h[1];
d=c[1]<l[2];
조건=a && b && d;
if 조건 Then
{
고가=DAYHIGH();
저가=DAYLOW();
}
중심=(고가+저가)/2;
결과=crossdown(c,저가);
결과2=crossup(c,고가);
s=s+1;
if 조건 Then
a_cnt=s;
if 결과 Then
b_cnt=s;
if 결과2 Then
c_cnt=s;
결과3=a_cnt<b_cnt && b_cnt<c_cnt;
결과4=결과3[1] && 저가>c;
if 조건 Then
cs1 = 0;
if cs1 >= 0 and 결과4 Then
cs1 = cs1+1;
결과값=cs1==1;
결과값2=결과4 && 결과값;
if 결과값2[1] Then
시가=o;
시가2=(시가*p2)*p2;
저가이탈=crossdown(l,시가2);
if 결과값2 Then
d_cnt=s;
if 저가이탈 Then
e_cnt=s;
조건2=d_cnt<e_cnt;
if 결과값2 Then
cs2 = 0;
if cs2 >= 0 and 조건2 Then
cs2 = cs2+1;
결과값3=cs2==1;
결과값4=조건2 && 결과값3;
if 결과값4 Then
{
tx = Text_New(sDate,sTime,L,"▲");
Text_SetStyle(tx,2,0);
Text_SetColor(tx,Red);
}
즐거운 하루되세요
> 개미는뚠뚠 님이 쓴 글입니다.
> 제목 : 문의드립니다
>
a=c>c(1)*p1;
b=c>h(1);
d=c(1)<l(2);
조건=a && b && d;
고가=VALUEWHEN(1,조건,DAYHIGH());
저가=VALUEWHEN(1,조건,DAYLOW());
중심=(고가+저가)/2;
결과=crossdown(c,저가);
결과2=crossup(c,고가);
s=sum(1);
a_cnt=valuewhen(1,조건,s);
b_cnt=valuewhen(1,결과,s);
c_cnt=valuewhen(1,결과2,s);
결과3=a_cnt<b_cnt && b_cnt<c_cnt;
결과4=결과3(1) && 저가>c;
결과값=countsince(조건,결과4)==1;
결과값2=결과4 && 결과값;
시가=valuewhen(1,결과값2(1),o);
시가2=(시가*p2)*p2;
저가이탈=crossdown(l,시가2);
d_cnt=valuewhen(1,결과값2,s);
e_cnt=valuewhen(1,저가이탈,s);
조건2=d_cnt<e_cnt;
결과값3=countsince(결과값2,조건2)==1;
결과값4=조건2 && 결과값3
p1=1.03
p2=0.97
종목검색식으로 변환 부탁드립니다!
위 조건에 해당하는 봉을 화살표로 표시하는 지표식도 같이 부탁드려요!
추운데 감기조심하세요!