커뮤니티

질문드립니다

프로필 이미지
견유학자
2022-04-11 23:23:12
1222
글번호 157944
답변완료
> 견유학자 님이 쓴 글입니다. > 제목 : 질문드립니다 > Plot1(Data2(OpenD(0)),"d2시가"); Plot2(Data2(highD(1)),"d2고가"); Plot3(Data2(lowD(1)),"d2저가"); Plot4(Data3(OpenD(0)),"d3시가"); Plot5(Data3(highD(1)),"d3고가"); Plot6(Data3(lowD(1)),"d3저가"); Plot7(Data4(OpenD(0)),"d4시가"); Plot8(Data4(highD(1)),"d4고가"); Plot9(Data4(lowD(1)),"d4저가"); 이상의 9개 선에 가격봉이 닿을때 소리가 나오게 하려면 어떻게 해야 할까요 라는 질문에 대해 아래의 수식을 주셨었는데요 문제는 위의 수식과는 달리, 아래의 수식을 적용하면 참조데이터의 선들이 본차트로 들어가질 않습니다. 원래는 본차트 1개에 참조차트 3개의 선들이 다 들어가도록 적용된 것들이었거든요. 그리고 그 음성들은 당연히 본차트의 가격이 그 선들(값들)에 닿았을 때 소리가 나길 원했던 것입니다. 혹시 제가 뭔가 잘못 적용한걸까요? 아래는 전에 주셨던 답글 수식 Plot1(Data2(OpenD(0)),"d2시가"); Plot2(Data2(highD(1)),"d2고가"); Plot3(Data2(lowD(1)),"d2저가"); Plot4(Data3(OpenD(0)),"d3시가"); Plot5(Data3(highD(1)),"d3고가"); Plot6(Data3(lowD(1)),"d3저가"); Plot7(Data4(OpenD(0)),"d4시가"); Plot8(Data4(highD(1)),"d4고가"); Plot9(Data4(lowD(1)),"d4저가"); var : O2(0,Data1),h2(0,Data1),l2(0,Data1); var : O3(0,Data1),h3(0,Data1),l3(0,Data1); var : O4(0,Data1),h4(0,Data1),l4(0,Data1); O2 = Data2(OpenD(0)); H2 = Data2(highD(1)); L2 = Data2(lowD(1)); O3 = Data3(OpenD(0)); H3 = Data3(highD(1)); L3 = Data3(lowD(1)); O4 = Data4(OpenD(0)); H4 = Data4(highD(1)); L4 = Data4(lowD(1)); if (h >= O2 and h[1] < O2[1]) or (L <= O2 and L[1] > O2[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= H2 and h[1] < H2[1]) or (L <= H2 and L[1] > H2[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= L2 and h[1] < L2[1]) or (L <= L2 and L[1] > L2[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= O3 and h[1] < O3[1]) or (L <= O3 and L[1] > O3[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= H3 and h[1] < H3[1]) or (L <= H3 and L[1] > H3[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= L3 and h[1] < L3[1]) or (L <= L3 and L[1] > L3[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= O4 and h[1] < O4[1]) or (L <= O4 and L[1] > O4[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= H4 and h[1] < H4[1]) or (L <= H4 and L[1] > H4[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= L4 and h[1] < L4[1]) or (L <= L4 and L[1] > L4[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); 답변 부탁드립니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-04-12 11:14:35

안녕하세요 예스스탁입니다. 수식에 별도로 문제가 있는 부분은 없습니다. 올리신 plot수식에 소리출력만 추가한 내용입니다. 첨부된 그림과 같이 정상적으로 적용되고 있습니다. 즐거운 하루되세요 > 견유학자 님이 쓴 글입니다. > 제목 : 질문드립니다 > > 견유학자 님이 쓴 글입니다. > 제목 : 질문드립니다 > Plot1(Data2(OpenD(0)),"d2시가"); Plot2(Data2(highD(1)),"d2고가"); Plot3(Data2(lowD(1)),"d2저가"); Plot4(Data3(OpenD(0)),"d3시가"); Plot5(Data3(highD(1)),"d3고가"); Plot6(Data3(lowD(1)),"d3저가"); Plot7(Data4(OpenD(0)),"d4시가"); Plot8(Data4(highD(1)),"d4고가"); Plot9(Data4(lowD(1)),"d4저가"); 이상의 9개 선에 가격봉이 닿을때 소리가 나오게 하려면 어떻게 해야 할까요 라는 질문에 대해 아래의 수식을 주셨었는데요 문제는 위의 수식과는 달리, 아래의 수식을 적용하면 참조데이터의 선들이 본차트로 들어가질 않습니다. 원래는 본차트 1개에 참조차트 3개의 선들이 다 들어가도록 적용된 것들이었거든요. 그리고 그 음성들은 당연히 본차트의 가격이 그 선들(값들)에 닿았을 때 소리가 나길 원했던 것입니다. 혹시 제가 뭔가 잘못 적용한걸까요? 아래는 전에 주셨던 답글 수식 Plot1(Data2(OpenD(0)),"d2시가"); Plot2(Data2(highD(1)),"d2고가"); Plot3(Data2(lowD(1)),"d2저가"); Plot4(Data3(OpenD(0)),"d3시가"); Plot5(Data3(highD(1)),"d3고가"); Plot6(Data3(lowD(1)),"d3저가"); Plot7(Data4(OpenD(0)),"d4시가"); Plot8(Data4(highD(1)),"d4고가"); Plot9(Data4(lowD(1)),"d4저가"); var : O2(0,Data1),h2(0,Data1),l2(0,Data1); var : O3(0,Data1),h3(0,Data1),l3(0,Data1); var : O4(0,Data1),h4(0,Data1),l4(0,Data1); O2 = Data2(OpenD(0)); H2 = Data2(highD(1)); L2 = Data2(lowD(1)); O3 = Data3(OpenD(0)); H3 = Data3(highD(1)); L3 = Data3(lowD(1)); O4 = Data4(OpenD(0)); H4 = Data4(highD(1)); L4 = Data4(lowD(1)); if (h >= O2 and h[1] < O2[1]) or (L <= O2 and L[1] > O2[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= H2 and h[1] < H2[1]) or (L <= H2 and L[1] > H2[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= L2 and h[1] < L2[1]) or (L <= L2 and L[1] > L2[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= O3 and h[1] < O3[1]) or (L <= O3 and L[1] > O3[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= H3 and h[1] < H3[1]) or (L <= H3 and L[1] > H3[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= L3 and h[1] < L3[1]) or (L <= L3 and L[1] > L3[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= O4 and h[1] < O4[1]) or (L <= O4 and L[1] > O4[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= H4 and h[1] < H4[1]) or (L <= H4 and L[1] > H4[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if (h >= L4 and h[1] < L4[1]) or (L <= L4 and L[1] > L4[1]) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); 답변 부탁드립니다.