커뮤니티
색깔표현
2010-12-06 15:16:12
507
글번호 34097
9가지 이평선을 설정하고 색깔을 구현하려고 하는데, 차트상에서는 5가지 외에는 색깔이 안나오네요. 9가지 다 색깔 표현 하려면 어떻게 해야 하나요?
Input : Period1(5), Period2(15), Period3(33), Period4(50), Period5(60), Period6(75), Period7(100), Period8(120), Period9(150);
var : Sma1(0),Sma2(0),Sma3(0),Sma4(0),Sma5(0),Sma6(0),Sma7(0),Sma8(0),Sma9(0);
Sma1 = ma(C,Period1);
Sma2 = ma(C,Period2);
Sma3 = ma(C,Period3);
Sma4 = ma(C,Period4);
Sma5 = ma(C,Period5);
Sma6 = ma(C,Period6);
Sma7 = ma(C,Period7);
Sma8 = ma(C,Period8);
Sma9 = ma(C,Period9);
Plot1(Sma1, "이동평균1");
Plot2(Sma2, "이동평균2");
Plot3(Sma3, "이동평균3");
Plot4(Sma4, "이동평균4");
Plot5(Sma5, "이동평균5");
Plot6(Sma5, "이동평균6");
Plot7(Sma5, "이동평균7");
Plot8(Sma5, "이동평균8");
Plot9(Sma5, "이동평균9");
답변 1
예스스탁 예스스탁 답변
2010-12-06 15:34:52
안녕하세요
예스스탁입니다.
plot5~plot9가 모두 Sma9를 그리도록 작성되어 있습니다.
수정한 식입니다.
Input : Period1(5), Period2(15), Period3(33), Period4(50), Period5(60), Period6(75), Period7(100), Period8(120), Period9(150);
var : Sma1(0),Sma2(0),Sma3(0),Sma4(0),Sma5(0),Sma6(0),Sma7(0),Sma8(0),Sma9(0);
Sma1 = ma(C,Period1);
Sma2 = ma(C,Period2);
Sma3 = ma(C,Period3);
Sma4 = ma(C,Period4);
Sma5 = ma(C,Period5);
Sma6 = ma(C,Period6);
Sma7 = ma(C,Period7);
Sma8 = ma(C,Period8);
Sma9 = ma(C,Period9);
Plot1(Sma1, "이동평균1");
Plot2(Sma2, "이동평균2");
Plot3(Sma3, "이동평균3");
Plot4(Sma4, "이동평균4");
Plot5(Sma5, "이동평균5");
Plot6(Sma6, "이동평균6");
Plot7(Sma7, "이동평균7");
Plot8(Sma8, "이동평균8");
Plot9(Sma9, "이동평균9");
즐거운 하루되세요
> 룽퐈 님이 쓴 글입니다.
> 제목 : 색깔표현
> 9가지 이평선을 설정하고 색깔을 구현하려고 하는데, 차트상에서는 5가지 외에는 색깔이 안나오네요. 9가지 다 색깔 표현 하려면 어떻게 해야 하나요?
Input : Period1(5), Period2(15), Period3(33), Period4(50), Period5(60), Period6(75), Period7(100), Period8(120), Period9(150);
var : Sma1(0),Sma2(0),Sma3(0),Sma4(0),Sma5(0),Sma6(0),Sma7(0),Sma8(0),Sma9(0);
Sma1 = ma(C,Period1);
Sma2 = ma(C,Period2);
Sma3 = ma(C,Period3);
Sma4 = ma(C,Period4);
Sma5 = ma(C,Period5);
Sma6 = ma(C,Period6);
Sma7 = ma(C,Period7);
Sma8 = ma(C,Period8);
Sma9 = ma(C,Period9);
Plot1(Sma1, "이동평균1");
Plot2(Sma2, "이동평균2");
Plot3(Sma3, "이동평균3");
Plot4(Sma4, "이동평균4");
Plot5(Sma5, "이동평균5");
Plot6(Sma5, "이동평균6");
Plot7(Sma5, "이동평균7");
Plot8(Sma5, "이동평균8");
Plot9(Sma5, "이동평균9");