커뮤니티

부탁드립니다

프로필 이미지
와우리
2025-11-19 08:22:45
54
글번호 228195
답변완료

var : tx1(0),tx2(0); if abs(c-o) <= (h-L)*(1/3) Then { if c > o Then { tx1 = Text_New(sDate,sTime,l,"●"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,Red); } if c < o Then { tx1 = Text_New(sDate,sTime,h,"●"); Text_SetStyle(tx1,2,1); Text_SetColor(tx1,Blue); } } if abs(c-o) <= (h-L)*(1/5) Then { if c > o Then { tx2 = Text_New(sDate,sTime,l-PriceScale*5,"●"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,Magenta); } if c < o Then { tx2 = Text_New(sDate,sTime,h+PriceScale*5,"●"); Text_SetStyle(tx2,2,1); Text_SetColor(tx2,Cyan); } } 위의 수식에서 음양봉 기준이 아닌 꼬리기준으로 수정 부탁드립니다 - 아래꼬리가 길면 아래꼬리 아래에  빨강점을  - 윗꼬리가 길면 윗꼬리 위에 파랑점으로  - 비율이 같다면 음양봉 기분으로 수정부탁드립니다

지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-11-19 13:43:42

안녕하세요 예스스탁입니다. var : tx1(0),tx2(0); var : uptail(0),dntail(0); uptail = h-max(c,o); dntail = min(c,o)-l; if abs(c-o) <= (h-L)*(1/3) Then { if dntail > uptail or (dntail == uptail and C > O) Then { tx1 = Text_New(sDate,sTime,l,"●"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,Red); } if dntail < uptail or (dntail == uptail and C < O)Then { tx1 = Text_New(sDate,sTime,h,"●"); Text_SetStyle(tx1,2,1); Text_SetColor(tx1,Blue); } } if abs(c-o) <= (h-L)*(1/5) Then { if dntail > uptail or (dntail == uptail and C > O)Then { tx2 = Text_New(sDate,sTime,l-PriceScale*5,"●"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,Magenta); } if dntail < uptail or (dntail == uptail and C < O) Then { tx2 = Text_New(sDate,sTime,h+PriceScale*5,"●"); Text_SetStyle(tx2,2,1); Text_SetColor(tx2,Cyan); } } 즐거운 하루되세요