커뮤니티

질문드립니다

프로필 이미지
견유학자
2022-05-17 01:13:31
1187
글번호 158915
답변완료
안녕하세요. 다음 수식은 1개의 본차트에 3개의 참조차트(data 2,3,4) 데이터의 당일시가, 전일고가, 전일 저가를 넣은 뒤 본차트의 가격이 참조차트의 총 9개 선에 닿을 시 음성신호가 나오도록 만든 것입니다. 아무 문제 없이 사용 중이구요. 그런데 여기에 전일종가/전일시가 를 추가하려했는데 분명히 제대로 넣은 것 같은데 음성신호가 제대로 나오질 않습니다. 그 두가지만 추가해주실 수 있으실까요? 감사합니다. 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:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H2 and h[1] < H2[1]) or (L <= H2 and L[1] > H2[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L2 and h[1] < L2[1]) or (L <= L2 and L[1] > L2[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O3 and h[1] < O3[1]) or (L <= O3 and L[1] > O3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H3 and h[1] < H3[1]) or (L <= H3 and L[1] > H3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L3 and h[1] < L3[1]) or (L <= L3 and L[1] > L3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O4 and h[1] < O4[1]) or (L <= O4 and L[1] > O4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H4 and h[1] < H4[1]) or (L <= H4 and L[1] > H4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L4 and h[1] < L4[1]) or (L <= L4 and L[1] > L4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-05-17 13:06:38

안녕하세요 예스스탁입니다. 게시판에서 식 복사하시면 경로 중 ₩의 폰트가 깨질수 있으므로 다시 타이핑하시기 바랍니다. Plot1(Data2(OpenD(0)),"d2당일시가"); Plot2(Data2(highD(1)),"d2전일고가"); Plot3(Data2(lowD(1)),"d2전일저가"); Plot4(Data2(CloseD(1)),"d2전일종가"); Plot5(Data2(OpenD(1)),"d2전일시가"); Plot6(Data3(OpenD(0)),"d3당일시가"); Plot7(Data3(highD(1)),"d3전일고가"); Plot8(Data3(lowD(1)),"d3전일저가"); Plot9(Data3(CloseD(1)),"d3전일종가"); Plot10(Data3(OpenD(1)),"d3전일시가"); Plot11(Data4(OpenD(0)),"d4당일시가"); Plot12(Data4(highD(1)),"d4전일고가"); Plot13(Data4(lowD(1)),"d4전일저가"); Plot14(Data4(CloseD(1)),"d4전일종가"); Plot15(Data4(OpenD(1)),"d4전일시가"); var : O2(0,Data1),h2(0,Data1),l2(0,Data1),C2(0,Data1),O21(0,Data1); var : O3(0,Data1),h3(0,Data1),l3(0,Data1),C3(0,Data1),O31(0,Data1); var : O4(0,Data1),h4(0,Data1),l4(0,Data1),C4(0,Data1),O41(0,Data1); O2 = Data2(OpenD(0)); H2 = Data2(highD(1)); L2 = Data2(lowD(1)); C2 = Data2(CloseD(1)); O21 = Data2(OpenD(1)); O3 = Data3(OpenD(0)); H3 = Data3(highD(1)); L3 = Data3(lowD(1)); C3 = Data3(CloseD(1)); O31 = Data3(OpenD(1)); O4 = Data4(OpenD(0)); H4 = Data4(highD(1)); L4 = Data4(lowD(1)); C4 = Data4(CloseD(1)); O41 = Data4(OpenD(1)); if (h >= O2 and h[1] < O2[1]) or (L <= O2 and L[1] > O2[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H2 and h[1] < H2[1]) or (L <= H2 and L[1] > H2[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L2 and h[1] < L2[1]) or (L <= L2 and L[1] > L2[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= C2 and h[1] < C2[1]) or (L <= C2 and L[1] > C2[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O21 and h[1] < O21[1]) or (L <= O21 and L[1] > O21[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O3 and h[1] < O3[1]) or (L <= O3 and L[1] > O3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H3 and h[1] < H3[1]) or (L <= H3 and L[1] > H3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L3 and h[1] < L3[1]) or (L <= L3 and L[1] > L3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= C3 and h[1] < C3[1]) or (L <= C3 and L[1] > C3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O31 and h[1] < O31[1]) or (L <= O31 and L[1] > O31[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O4 and h[1] < O4[1]) or (L <= O4 and L[1] > O4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H4 and h[1] < H4[1]) or (L <= H4 and L[1] > H4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L4 and h[1] < L4[1]) or (L <= L4 and L[1] > L4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= C4 and h[1] < C4[1]) or (L <= C4 and L[1] > C4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O41 and h[1] < O41[1]) or (L <= O41 and L[1] > O41[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); 즐거운 하루되세요 > 견유학자 님이 쓴 글입니다. > 제목 : 질문드립니다 > 안녕하세요. 다음 수식은 1개의 본차트에 3개의 참조차트(data 2,3,4) 데이터의 당일시가, 전일고가, 전일 저가를 넣은 뒤 본차트의 가격이 참조차트의 총 9개 선에 닿을 시 음성신호가 나오도록 만든 것입니다. 아무 문제 없이 사용 중이구요. 그런데 여기에 전일종가/전일시가 를 추가하려했는데 분명히 제대로 넣은 것 같은데 음성신호가 제대로 나오질 않습니다. 그 두가지만 추가해주실 수 있으실까요? 감사합니다. 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:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H2 and h[1] < H2[1]) or (L <= H2 and L[1] > H2[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L2 and h[1] < L2[1]) or (L <= L2 and L[1] > L2[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O3 and h[1] < O3[1]) or (L <= O3 and L[1] > O3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H3 and h[1] < H3[1]) or (L <= H3 and L[1] > H3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L3 and h[1] < L3[1]) or (L <= L3 and L[1] > L3[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= O4 and h[1] < O4[1]) or (L <= O4 and L[1] > O4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= H4 and h[1] < H4[1]) or (L <= H4 and L[1] > H4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav"); if (h >= L4 and h[1] < L4[1]) or (L <= L4 and L[1] > L4[1]) Then PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");