커뮤니티

색상 좀 요청 드립니다.

프로필 이미지
요타
2021-05-03 23:38:24
865
글번호 148651
답변완료
* 항상 많은 도움에 고맙습니다. * 아래 지표 스톡에서 "StoD" 지표가 80 이상이면 "RED" 80~ 20 이면 무색 20 이하면 GREEN 색상으로 부탁 좀 드립니다. Input : Period(12), Period1(5), Period2(5); var : StoK(0),StoD(0); StoK = StochasticsK(Period,Period1); StoD = StochasticsD(Period,Period1,Period2); Plot1(StoK, "StochasticsK"); Plot2(StoD, "StochasticsD"); PlotBaseLine1(20, "기준선20"); PlotBaseLine2(80, "기준선80"); 고맙습니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-05-04 13:58:35

안녕하세요 예스스탁입니다. 무색이 stod를 표시하지 않는것이면 1번 검정이나 별도의 색으로 표시되기를 원하시면 2번식 이용하시면 됩니다. 1 Input : Period(12), Period1(5), Period2(5); var : StoK(0),StoD(0); StoK = StochasticsK(Period,Period1); StoD = StochasticsD(Period,Period1,Period2); Plot1(StoK, "StochasticsK"); if stod >= 80 Then Plot2(StoD, "StochasticsD",RED); Else if stod <= 20 Then Plot2(StoD, "StochasticsD",GREEN); Else NoPlot(2); PlotBaseLine1(20, "기준선20"); PlotBaseLine2(80, "기준선80"); 2 Input : Period(12), Period1(5), Period2(5); var : StoK(0),StoD(0); StoK = StochasticsK(Period,Period1); StoD = StochasticsD(Period,Period1,Period2); Plot1(StoK, "StochasticsK"); if stod >= 80 Then Plot2(StoD, "StochasticsD",RED); Else if stod <= 20 Then Plot2(StoD, "StochasticsD",GREEN); Else Plot2(StoD, "StochasticsD",BLACK); PlotBaseLine1(20, "기준선20"); PlotBaseLine2(80, "기준선80"); 즐거운 하루되세요 > 요타 님이 쓴 글입니다. > 제목 : 색상 좀 요청 드립니다. > * 항상 많은 도움에 고맙습니다. * 아래 지표 스톡에서 "StoD" 지표가 80 이상이면 "RED" 80~ 20 이면 무색 20 이하면 GREEN 색상으로 부탁 좀 드립니다. Input : Period(12), Period1(5), Period2(5); var : StoK(0),StoD(0); StoK = StochasticsK(Period,Period1); StoD = StochasticsD(Period,Period1,Period2); Plot1(StoK, "StochasticsK"); Plot2(StoD, "StochasticsD"); PlotBaseLine1(20, "기준선20"); PlotBaseLine2(80, "기준선80"); 고맙습니다.