예스스탁
예스스탁 답변
2021-09-02 15:51:01
안녕하세요
예스스탁입니다.
소리출력함수(playsound)는 함수내에 지정한 경로의 wav파일이 구동됩니다.
아래는 예스트레이더에 기본으로 제공되는 wav파일을 지정했습니다.
원하시는 wav파일의 경로와 이름으로 수정하시기 바랍니다.
게시판에서 식을 복사할 경우 경로명 중 ₩의 폰트가 깨질수 있으므로
₩는 다시 타이핑하시기 바랍니다.
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");
즐거운 하루되세요
> 견유학자 님이 쓴 글입니다.
> 제목 : 질문드립니다
> 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개 선에 가격봉이 닿을때 소리가 나오게 하려면 어떻게 해야 할까요