커뮤니티

수식에서 글자크기를 조정할려면(큰것을 중간크기로)

프로필 이미지
정밀타격수
2019-04-19 10:39:31
228
글번호 127925
답변완료
시스템에서 ===>
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-04-18 09:17:42

안녕하세요 예스스탁입니다. 1 신호의 이름은 수식안에서 크기 조절이 되지 않습니다. 수식에서 텍스트함수로 출력한 텍스트를 제외하고 차트의 모든 글자는 차트창속성의 글꼴탭에서 지정한 크기로 출력됩니다. 2 수식에 텍스트로 출력되는 내용만 크기 조정할수 있게 외부변수처리해 드립니다. input : Period(10),글자크기(12); if crossup(data1("C"), ma(data1("C"),Period)) then{ buy("매수"); } if crossdown(data1("C"), ma(data1("C"),Period)) then { sell("매도"); } var : RR(0),tx1(0),tx2(0); if MarketPosition == 1 Then { rr = (C-EntryPrice)/PriceScale; Text_Delete(tx1); tx1 = Text_New(sdate,stime,H+PriceScale*1,NumToStr(RR,0)+"틱수익중"); Text_SetStyle(tx1,2,2); Text_SetSize(tx1,글자크기); } if MarketPosition == -1 Then{ rr = (EntryPrice-C)/PriceScale; Text_Delete(tx2); tx2 = Text_New(sdate,stime,L-PriceScale*1,NumToStr(RR,0)+"틱수익중"); Text_SetStyle(tx2,2,2); Text_SetSize(tx1,글자크기); } 즐거운 하루되세요 > 정밀타격수 님이 쓴 글입니다. > 제목 : 수식에서 글자크기를 조정할려면(큰것을 중간크기로) > 시스템에서 ===>10이평선돌파 수익중 신호---에서 글자크기를 수정할려구합니다 어떻게 수식을 수정하면될까요 ------------------------------->첨부파일화면 참조하시구요 input : Period(10); if crossup(data1("C"), ma(data1("C"),Period)) then{ buy("매수"); } if crossdown(data1("C"), ma(data1("C"),Period)) then { sell("매도"); } var : RR(0),tx1(0),tx2(0); if MarketPosition == 1 Then{ rr = (C-EntryPrice)/PriceScale; Text_Delete(tx1); tx1 = Text_New(sdate,stime,H+PriceScale*1,NumToStr(RR,0)+"틱수익중"); Text_SetStyle(tx1,2,2); } if MarketPosition == -1 Then{ rr = (EntryPrice-C)/PriceScale; Text_Delete(tx2); tx2 = Text_New(sdate,stime,L-PriceScale*1,NumToStr(RR,0)+"틱수익중"); Text_SetStyle(tx2,2,2); }