커뮤니티

수식부탁드립니다

프로필 이미지
장군777
2023-01-18 16:01:42
601
글번호 165541
답변완료
Input : Period(20), Period1(10), Period2(10); var : StoK(0),StoD(0),tx1(0); StoK = StochasticsK(Period,Period1); StoD = StochasticsD(Period,Period1,Period2); if crossup(stod,50) Then Text_New(sdate,stime,H,"■"); if crossdown(stod,50) Then Text_New(sdate,stime,H,"■"); 위 식에서 crossup(stod,50)식의 ■은 빨간색 추가, crossdown(stod,50)식의 ■은 녹색으로 표시가능할까요?
강조
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-01-19 10:53:18

안녕하세요 예스스탁입니다. Input : Period(20), Period1(10), Period2(10); var : StoK(0),StoD(0),tx(0); StoK = StochasticsK(Period,Period1); StoD = StochasticsD(Period,Period1,Period2); if crossup(stod,50) Then { tx = Text_New(sdate,stime,H,"■"); Text_SetColor(tx,Red); } if crossdown(stod,50) Then { tx = Text_New(sdate,stime,H,"■"); Text_SetColor(tx,Blue); } 즐거운 하루되세요 > 장군777 님이 쓴 글입니다. > 제목 : 수식부탁드립니다 > Input : Period(20), Period1(10), Period2(10); var : StoK(0),StoD(0),tx1(0); StoK = StochasticsK(Period,Period1); StoD = StochasticsD(Period,Period1,Period2); if crossup(stod,50) Then Text_New(sdate,stime,H,"■"); if crossdown(stod,50) Then Text_New(sdate,stime,H,"■"); 위 식에서 crossup(stod,50)식의 ■은 빨간색 추가, crossdown(stod,50)식의 ■은 녹색으로 표시가능할까요?