커뮤니티

부탁드립니다

프로필 이미지
파생돌이
2025-09-10 16:13:17
118
글번호 193891
답변완료
수고하십니다 아래수식에서 신호색이 다똑같이 나와서 전체적으로수식수정부탁드립니다 input : 기간(14); var : S(0),R(0),u40(0),u30(0),순번조건(False),u50(0),u140(0); var : cs(Nan),조건(False),조건1(False),조건2(False),tx1(0),tx2(0); var : tx11(0),tx22(0); S=Accum(1); R=Rsi(기간);//14 if CrossDown(R,40) Then u40 = S; if CrossDown(R,30) Then u30 = S; 순번조건=U40<u30 ; if 순번조건 && 순번조건[1] == False Then cs = 0; if CrossUp(R,30) Then cs = cs+1; 조건= cs==1; 조건1= cs==2; 조건2= cs==3; if 조건 and 조건[1] ==False Then { tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,darkRed); Text_SetBold(Tx1,4); Text_SetSize(tx1,15); tx2 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,darkRed); } if 조건1 and 조건1[1] ==False Then { tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,darkRed); Text_SetBold(Tx1,4); Text_SetSize(tx1,15); tx2 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,darkRed); } if 조건2 and 조건2[1] ==False Then { tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,darkRed); Text_SetBold(Tx1,4); Text_SetSize(tx1,15); tx2 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,darkRed); } //======================================================== if CrossDown(R,50) Then u50 = S; if CrossDown(R,40) Then u140 = S; 순번조건=U50<u140 ; if 순번조건 && 순번조건[1] == False Then cs = 0; if CrossUp(R,40) Then cs = cs+1; 조건= cs==1; 조건1= cs==2; 조건2= cs==3; if 조건 and 조건[1] ==False Then { tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx11,2,0); Text_SetColor(tx11,Red); Text_SetBold(Tx11,4); Text_SetSize(tx11,15); tx22 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx22,2,0); Text_SetColor(tx22,Red); } if 조건1 and 조건1[1] ==False Then { tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx11,2,0); Text_SetColor(tx11,Red); Text_SetBold(Tx11,4); Text_SetSize(tx11,15); tx22 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx22,2,0); Text_SetColor(tx22,Red); } if 조건2 and 조건2[1] ==False Then { tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx11,2,0); Text_SetColor(tx11,Red); Text_SetBold(Tx11,4); Text_SetSize(tx11,15); tx22= Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx22,2,0); Text_SetColor(tx22,Red); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-09-11 09:54:57

안녕하세요 예스스탁입니다. Text_SetColor(tx1,darkRed); Text_SetColor(tx2,darkRed); 각 조건식에 보시면 위와 같이 색상이 지정하는 함수가 있습니다. 해당 함수에 색상예약어 이용해서 원하시는 색상으로 변경하시면 됩니다. 해당 부분은 저희가 변경해 드리지 않습니다. 즐거운 하루되세요 > 파생돌이 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 수고하십니다 아래수식에서 신호색이 다똑같이 나와서 전체적으로수식수정부탁드립니다 input : 기간(14); var : S(0),R(0),u40(0),u30(0),순번조건(False),u50(0),u140(0); var : cs(Nan),조건(False),조건1(False),조건2(False),tx1(0),tx2(0); var : tx11(0),tx22(0); S=Accum(1); R=Rsi(기간);//14 if CrossDown(R,40) Then u40 = S; if CrossDown(R,30) Then u30 = S; 순번조건=U40<u30 ; if 순번조건 && 순번조건[1] == False Then cs = 0; if CrossUp(R,30) Then cs = cs+1; 조건= cs==1; 조건1= cs==2; 조건2= cs==3; if 조건 and 조건[1] ==False Then { tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,darkRed); Text_SetBold(Tx1,4); Text_SetSize(tx1,15); tx2 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,darkRed); } if 조건1 and 조건1[1] ==False Then { tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,darkRed); Text_SetBold(Tx1,4); Text_SetSize(tx1,15); tx2 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,darkRed); } if 조건2 and 조건2[1] ==False Then { tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,darkRed); Text_SetBold(Tx1,4); Text_SetSize(tx1,15); tx2 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,darkRed); } //======================================================== if CrossDown(R,50) Then u50 = S; if CrossDown(R,40) Then u140 = S; 순번조건=U50<u140 ; if 순번조건 && 순번조건[1] == False Then cs = 0; if CrossUp(R,40) Then cs = cs+1; 조건= cs==1; 조건1= cs==2; 조건2= cs==3; if 조건 and 조건[1] ==False Then { tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx11,2,0); Text_SetColor(tx11,Red); Text_SetBold(Tx11,4); Text_SetSize(tx11,15); tx22 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx22,2,0); Text_SetColor(tx22,Red); } if 조건1 and 조건1[1] ==False Then { tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx11,2,0); Text_SetColor(tx11,Red); Text_SetBold(Tx11,4); Text_SetSize(tx11,15); tx22 = Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx22,2,0); Text_SetColor(tx22,Red); } if 조건2 and 조건2[1] ==False Then { tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲"); Text_SetStyle(tx11,2,0); Text_SetColor(tx11,Red); Text_SetBold(Tx11,4); Text_SetSize(tx11,15); tx22= Text_new_Self(sdate,sTime,R,"▲"); Text_SetStyle(tx22,2,0); Text_SetColor(tx22,Red); }