항상 많은 도움 감사합니다.
아래 두가지 지표를 잘 쓰고 있긴한데 수치는 맞는데 알람소리가 안 나요.
다른 지표들은 알람소리가 잘 나는데....
수치는 맞으니까 아쉬운대로 계속 쓰다가 답답해서 다시 문의 드립니다.
알람소리 나게 부탁드립니다.
1.월고 월저 기준가
input : 입력일(20211210),Per(3);
var : 기준가(0,Data2),월고(0,Data2),월저(0,Data2);
var : cond1(False,Data2),cond2(False,Data2),cond3(False,Data2);
if data2(sdate == 입력일) Then
기준가 = data2(lowD(0));
if data2(sdate >= 입력일) Then
{
if Data2(월고 == 0 or (월고 > 0 and H > 월고)) Then
월고 = data2(h);
if data2(월저 == 0 or (월저 > 0 and L < 월저)) Then
월저 = data2(l);
}
if 기준가 > 0 Then
Plot1(기준가);
if 월고 > 0 Then
Plot2(월고);
if 월저 > 0 Then
Plot3(월저);
Cond1 = Data2(C<=기준가*(1+Per/100) and C >= 기준가*(1-Per/100));
Cond2 = Data2(C<=월고*(1+Per/100) and C >= 월고*(1-Per/100));
Cond3 = Data2(C<=월저*(1+Per/100) and C >= 월저*(1-Per/100));
if cond1 == true and cond1[1] == False Then
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
if cond2 == true and cond2[1] == False Then
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
if cond3 == true and cond3[1] == False Then
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
2.특정일 저가
input : 날짜(20211210),Per1(3);
var : D2L(0,data2),scond1(False,Data2);
if data2(sdate == 날짜) Then
{
D2L = data2(LowD(0));
}
plot1(D2L);
scond1 = Data2(C) <= D2L*(1+Per1/100) and Data2(C) >= D2L*(1-Per1/100);
if scond1 == true and scond1[1] == true Then
PlaySound("C:₩예스트레이더₩data₩sound₩accept.wav");
답변 1
예스스탁
예스스탁 답변
2021-12-10 11:38:02
안녕하세여
예스스탁입니다.
1
올려주신 수식들 외부변수를 조정해서 적용해 본 결과 소릭가 정상적으로 출력되고 있습니다.
지정하신 조건이 전봉에서는 false이고 현재봉 true일때만 소리가 발생하는 내용입니다.
2
소리출력함수(playsound)는 함수내에 지정한 경로의 wav파일이 구동됩니다.
아래는 수식에서는 예스트레이더에 기본으로 제공되는 wav파일이 지정되어 있습니다.
다른 예스트레이더가 아닌 다른 프로그램을 사용하시면 경로와 파일명을 변경하셔야 합니다.
떠한 게시판에서 식을 복사할 경우 경로명 중 ₩의 폰트가 깨질수 있으므로
₩는 다시 타이핑하시기 바랍니다.
즐거운 하루되세요
> 육각수 님이 쓴 글입니다.
> 제목 : 문의
> 항상 많은 도움 감사합니다.
아래 두가지 지표를 잘 쓰고 있긴한데 수치는 맞는데 알람소리가 안 나요.
다른 지표들은 알람소리가 잘 나는데....
수치는 맞으니까 아쉬운대로 계속 쓰다가 답답해서 다시 문의 드립니다.
알람소리 나게 부탁드립니다.
1.월고 월저 기준가
input : 입력일(20211210),Per(3);
var : 기준가(0,Data2),월고(0,Data2),월저(0,Data2);
var : cond1(False,Data2),cond2(False,Data2),cond3(False,Data2);
if data2(sdate == 입력일) Then
기준가 = data2(lowD(0));
if data2(sdate >= 입력일) Then
{
if Data2(월고 == 0 or (월고 > 0 and H > 월고)) Then
월고 = data2(h);
if data2(월저 == 0 or (월저 > 0 and L < 월저)) Then
월저 = data2(l);
}
if 기준가 > 0 Then
Plot1(기준가);
if 월고 > 0 Then
Plot2(월고);
if 월저 > 0 Then
Plot3(월저);
Cond1 = Data2(C<=기준가*(1+Per/100) and C >= 기준가*(1-Per/100));
Cond2 = Data2(C<=월고*(1+Per/100) and C >= 월고*(1-Per/100));
Cond3 = Data2(C<=월저*(1+Per/100) and C >= 월저*(1-Per/100));
if cond1 == true and cond1[1] == False Then
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
if cond2 == true and cond2[1] == False Then
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
if cond3 == true and cond3[1] == False Then
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
2.특정일 저가
input : 날짜(20211210),Per1(3);
var : D2L(0,data2),scond1(False,Data2);
if data2(sdate == 날짜) Then
{
D2L = data2(LowD(0));
}
plot1(D2L);
scond1 = Data2(C) <= D2L*(1+Per1/100) and Data2(C) >= D2L*(1-Per1/100);
if scond1 == true and scond1[1] == true Then
PlaySound("C:₩예스트레이더₩data₩sound₩accept.wav");