커뮤니티

wave쌍바닥

프로필 이미지
고성
2026-10-19 21:36:14
52
글번호 233923
답변완료

쌍바닥(쌍봉) 동그라미 위치를, 음선 끝이 아닌 양선 나오는 봉 하단에 표기.  (1봉 우측)

혹시 setlocation 이나 condition 없는 수식으로는 안될까요?     감사합니다.


input : n1(16);

input : n2(32);

input : obLevel2(57);

input : osLevel2(-57);

var : ap(0),esa(0),d(0),ci(0),tci(0),wt(0);


ap = (h+l+c)/3;

esa = ema(ap, n1);

d = ema(abs(ap - esa), n1);

ci = (ap - esa) / (0.015 * d);

tci = ema(ci, n2);

wt = tci;


plot1(wt, "wt",Iff(wt>wt[1],Red,Blue));

plot2(obLevel2,"과매수",Gray);

plot3(osLevel2,"과매도",Gray);


var : t(0),ll(0),ll1(0),hh(0),hh1(0),tx1(0),tx2(0);


if wt > wt[1] Then

t = 1;

Else

t = -1;

if t == -1 Then

{

if t != t[1] Then

{

ll1 = ll[1];

Condition1 = False;

}

ll = wt;

if Condition1 == False and ll < osLevel2 and ll1 < osLevel2 Then

{

Condition1 = true;

tx1 = Text_New(sdate,sTime,L,"●");

Text_SetColor(tx1,Magenta);

Text_SetStyle(tx1,2,0);

}

if Condition1 == true Then

{

Text_SetLocation(tx1,sDate,sTime,L);

}

}

if t == 1 Then

{

if t != t[1] Then

{

hh1 = hh[1];

Condition2 = False;

}

hh = wt;

if Condition2 == False and hh > obLevel2 and hh1 > obLevel2 Then

{

Condition2 = true;

tx2 = Text_New(sdate,sTime,H,"●");

Text_SetColor(tx2,Green);

Text_SetStyle(tx2,2,1);

}

if Condition2 == true Then

{

Text_SetLocation(tx2,sDate,sTime,H);

}

}


지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2026-10-20 09:44:18

안녕하세요 예스스탁입니다. input : n1(16); input : n2(32); input : obLevel2(57); input : osLevel2(-57); var : ap(0),esa(0),d(0),ci(0),tci(0),wt(0); ap = (h+l+c)/3; esa = ema(ap, n1); d = ema(abs(ap - esa), n1); ci = (ap - esa) / (0.015 * d); tci = ema(ci, n2); wt = tci; plot1(wt, "wt",Iff(wt>wt[1],Red,Blue)); plot2(obLevel2,"과매수",Gray); plot3(osLevel2,"과매도",Gray); var : t(0),ll(0),ll1(0),hh(0),hh1(0),tx1(0),tx2(0); if wt > wt[1] Then t = 1; Else t = -1; if t == -1 Then { if t != t[1] Then { ll1 = ll[1]; if hh > obLevel2 and hh1 > obLevel2 Then { tx2 = Text_New(sdate,sTime,H,"●"); Text_SetColor(tx2,Green); Text_SetStyle(tx2,2,1); } } ll = wt; } if t == 1 Then { if t != t[1] Then { hh1 = hh[1]; if ll < osLevel2 and ll1 < osLevel2 Then { tx1 = Text_New(sdate,sTime,L,"●"); Text_SetColor(tx1,Magenta); Text_SetStyle(tx1,2,0); } } hh = wt; } 즐거운 하루되세요