커뮤니티
15163 보충 질문
2010-08-13 16:18:38
796
글번호 31562
15163 지표식에 다음 사항을 보충하려 하는데 잘 안되네요
Plot 외에 소리 출력 및 알림팝업창도 함께 나타나도록 하고 싶읍니다.
소리 경로 ( C:₩예스트리에더31₩data₩alert.wav )
지표식이 2개 인데 모두 부탁 드립니다.
답변 1
예스스탁 예스스탁 답변
2010-08-13 16:32:32
안녕하세요
예스스탁입니다.
1.
var : 상한가(0), UpLimit(0);
var : aaa(0), bbb(0), ccc(0), ddd(0), eee(0),fff(0);
if date >= 19981207 then {
if date < 20050328 && CodeCategory() == 2 then
UpLimit = (BP[0] * 1.12);
Else
UpLimit = (BP[0] * 1.15);
if CodeCategory() == 2 then {
if date >= 20030721 then {
aaa = int(UpLimit/100+0.00001)*100;
bbb = int(UpLimit/100+0.00001)*100;
ccc = int(UpLimit/100+0.00001)*100;
ddd = int(UpLimit/50+0.00001)*50;
eee = int(UpLimit/10+0.00001)*10;
fff = int(UpLimit/5+0.00001)*5;
}
else {
aaa = int(UpLimit/1000+0.00001)*1000;
bbb = int(UpLimit/500+0.00001)*500;
ccc = int(UpLimit/100+0.00001)*100;
ddd = int(UpLimit/50+0.00001)*50;
eee = int(UpLimit/10+0.00001)*10;
fff = int(UpLimit/10+0.00001)*10;
}
}
Else {
aaa = int(UpLimit/1000+0.00001)*1000;
bbb = int(UpLimit/500+0.00001)*500;
ccc = int(UpLimit/100+0.00001)*100;
ddd = int(UpLimit/50+0.00001)*50;
eee = int(UpLimit/10+0.00001)*10;
fff = int(UpLimit/5+0.00001)*5;
}
if CodeCategory() == 1 || CodeCategory() == 2 then {
If BP >= 500000 Then
상한가 = aaa;
Else If BP >= 100000 Then
상한가 = iff(bbb>=500000, aaa, bbb);
Else If BP >= 50000 Then
상한가 = iff(ccc>=100000, bbb, ccc);
Else If BP >= 10000 Then
상한가 = iff(ddd>=50000, ccc, ddd);
Else If BP >= 5000 Then
상한가 = iff(eee>=10000, ddd, eee);
Else
상한가 = iff(fff>=5000, eee, fff);
}
else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF
상한가 = fff;
}
}
if date != date[1] Then
Condition1 = false;
if dayindex > 0 and Condition1 == false and C < 상한가 and dayhigh >= 상한가 Then{
plot1(H);
Condition1 = true;
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
Alert("종가 %.f",c);
}
2.
var1 = TimeToMinutes(stime)%30;
if dayindex == 0 or var1 < var1[1] Then
value1 = C[1];
if CrossDown(c,DayClose(1)*0.95) and value1 < dayopen Then{
plot1(h);
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
Alert("종가 %.f",c);
}
if stime >= 93000 and C <= value1*0.95 and value1 > dayopen Then{
plot1(H);
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
Alert("종가 %.f",c);
}
즐거운 하루되세요
> 미래테크 님이 쓴 글입니다.
> 제목 : 15163 보충 질문
> 15163 지표식에 다음 사항을 보충하려 하는데 잘 안되네요
Plot 외에 소리 출력 및 알림팝업창도 함께 나타나도록 하고 싶읍니다.
소리 경로 ( C:₩예스트리에더31₩data₩alert.wav )
지표식이 2개 인데 모두 부탁 드립니다.
다음글
이전글