예스스탁
예스스탁 답변
2021-12-13 14:29:17
안녕하세요
예스스탁입니다.
Alert함수로 팝업창이 발생합니다.
아래수식의 Alert에 ""안에 출력메세지를 직접 지정하시면 됩니다.
팝업창 발생위치는 화면 우측하단이고 위치는 별도로 조절되지 않습니다.
자도으로 사라지지 않으므로 팝업이 뜨면 x를 눌러 없애주셔야 합니다.
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");
Alert("Cond1 조건충족");
}
if cond2 == true and cond2[1] == False Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
Alert("Cond2 조건충족");
}
if cond3 == true and cond3[1] == False Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
Alert("Cond3 조건충족");
}
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");
Alert("scond1 조건충족");
}
즐거운 하루되세요
> 육각수 님이 쓴 글입니다.
> 제목 : 문의
> 항상 감사드립니다.
아래지표 2가지 모두 팝업창이 뜨게 부탁드려요.
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");