항상 감사드립니다.
아래 지표를 각각 월고 월저 기준가 오차범위 3%(변수로 변경 가능) 근접시 팝업창 뜨면서 알람 울리게 부탁드립니다.
input : 입력일(20210215);
var : 기준가(0),월고(0),월저(0);
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(월저);
감사합니다.
답변 1
예스스탁
예스스탁 답변
2021-03-24 13:56:58
안녕하세요
예스스탁입니다.
input : 입력일(20210215);
var : 기준가(0),월고(0),월저(0);
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(월저);
Condition1 = C <= 월고*1.05 and C >= 월고*0.95;
Condition2 = C <= 월저*1.05 and C >= 월저*0.95;
Condition3 = C <= 기준가*1.05 and C >= 기준가*0.95;
if Condition1 == true and Condition1[1] == False Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
Alert("월고근접");
}
if Condition2 == true and Condition2[1] == False Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
Alert("월저근접");
}
if Condition3 == true and Condition3[1] == False Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
Alert("기준가근접");
}
즐거운 하루되세요
> 육각수 님이 쓴 글입니다.
> 제목 : 문의
> 항상 감사드립니다.
아래 지표를 각각 월고 월저 기준가 오차범위 3%(변수로 변경 가능) 근접시 팝업창 뜨면서 알람 울리게 부탁드립니다.
input : 입력일(20210215);
var : 기준가(0),월고(0),월저(0);
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(월저);
감사합니다.