커뮤니티

수정부탁드립니다.

프로필 이미지
라몬
2024-10-07 22:18:17
687
글번호 184060
답변완료
안녕하세요 아래 수식중 전환선위, 아래 캔들색상표시만 색상이 동일하게 나오는데 어떤 이유인지요? 수정 부탁드립니다. input : Period(5),Length(5); var : TLen(0),tx1(0),tx2(0),tx3(0); var1 = ma(C,5); TLen = Ceiling((Length + 1) * .5); var2 = ma(ma(C, TLen), TLen); var3 == (highest(H,9)+lowest(L,9))/2; if c > var1 Then { tx1 = Text_New(sDate,sTime,L,NewLine+"★"); Text_SetStyle(tx1,2,0); Text_SetColor(Tx1,Red); } if c > var2 Then { tx2 = Text_New(sDate,sTime,L,NewLine+NewLine+"●"); Text_SetStyle(tx2,2,0); Text_SetColor(Tx2,Red); } if c > var3 Then { tx3 = Text_New(sDate,sTime,L,NewLine+NewLine+NewLine+"■"); Text_SetStyle(tx3,2,0); Text_SetColor(Tx3,Red); } if c < var1 Then { tx1 = Text_New(sDate,sTime,L,NewLine+"★"); Text_SetStyle(tx1,2,0); Text_SetColor(Tx1,Blue); } if c < var2 Then { tx2 = Text_New(sDate,sTime,L,NewLine+NewLine+"●"); Text_SetStyle(tx2,2,0); Text_SetColor(Tx2,Blue); } if c < var3 Then { tx3 = Text_New(sDate,sTime,L,NewLine+NewLine+NewLine+"■"); Text_SetStyle(tx3,2,0); Text_SetColor(Tx3,Blue); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-10-08 14:18:07

안녕하세요 예스스탁입니다. 수정한 식입니다. input : Period(5),Length(5); var : TLen(0),tx1(0),tx2(0),tx3(0); var1 = ma(C,5); TLen = Ceiling((Length + 1) * .5); var2 = ma(ma(C, TLen), TLen); var3 = (highest(H,9)+lowest(L,9))/2; if c > var1 Then { tx1 = Text_New(sDate,sTime,L,NewLine+"★"); Text_SetStyle(tx1,2,0); Text_SetColor(Tx1,Red); } if c > var2 Then { tx2 = Text_New(sDate,sTime,L,NewLine+NewLine+"●"); Text_SetStyle(tx2,2,0); Text_SetColor(Tx2,Red); } if c > var3 Then { tx3 = Text_New(sDate,sTime,L,NewLine+NewLine+NewLine+"■"); Text_SetStyle(tx3,2,0); Text_SetColor(Tx3,Red); } if c < var1 Then { tx1 = Text_New(sDate,sTime,L,NewLine+"★"); Text_SetStyle(tx1,2,0); Text_SetColor(Tx1,Blue); } if c < var2 Then { tx2 = Text_New(sDate,sTime,L,NewLine+NewLine+"●"); Text_SetStyle(tx2,2,0); Text_SetColor(Tx2,Blue); } if c < var3 Then { tx3 = Text_New(sDate,sTime,L,NewLine+NewLine+NewLine+"■"); Text_SetStyle(tx3,2,0); Text_SetColor(Tx3,Blue); } 즐거운 하루되세요 > 라몬 님이 쓴 글입니다. > 제목 : 수정부탁드립니다. > 안녕하세요 아래 수식중 전환선위, 아래 캔들색상표시만 색상이 동일하게 나오는데 어떤 이유인지요? 수정 부탁드립니다. input : Period(5),Length(5); var : TLen(0),tx1(0),tx2(0),tx3(0); var1 = ma(C,5); TLen = Ceiling((Length + 1) * .5); var2 = ma(ma(C, TLen), TLen); var3 == (highest(H,9)+lowest(L,9))/2; if c > var1 Then { tx1 = Text_New(sDate,sTime,L,NewLine+"★"); Text_SetStyle(tx1,2,0); Text_SetColor(Tx1,Red); } if c > var2 Then { tx2 = Text_New(sDate,sTime,L,NewLine+NewLine+"●"); Text_SetStyle(tx2,2,0); Text_SetColor(Tx2,Red); } if c > var3 Then { tx3 = Text_New(sDate,sTime,L,NewLine+NewLine+NewLine+"■"); Text_SetStyle(tx3,2,0); Text_SetColor(Tx3,Red); } if c < var1 Then { tx1 = Text_New(sDate,sTime,L,NewLine+"★"); Text_SetStyle(tx1,2,0); Text_SetColor(Tx1,Blue); } if c < var2 Then { tx2 = Text_New(sDate,sTime,L,NewLine+NewLine+"●"); Text_SetStyle(tx2,2,0); Text_SetColor(Tx2,Blue); } if c < var3 Then { tx3 = Text_New(sDate,sTime,L,NewLine+NewLine+NewLine+"■"); Text_SetStyle(tx3,2,0); Text_SetColor(Tx3,Blue); }