커뮤니티
문의드립니다.
2012-09-11 12:13:21
216
글번호 54590
일봉,주봉,10분봉을 각각 data1,data2.data3으로 설정했을시
각각 5일선과 10일선에 크로스업이나 다운이 아닌 근접했을경우에 알람을
설정하고자 합니다.
예를 들어 각각의 차트에서 5일이평과,10일이평에 종가가 위로든 아래든
97%정도 근접했을때
알람이 나오도록 설정하고싶습니다.--> (이격도로 표현해야하나요?)
오늘 질문드렸더니
input : N(1);
if data1(abs(Disparity(5)-100) <= N or abs(Disparity(10)-100) <= N ) Then{
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
if data2(abs(Disparity(5)-100) <= N or abs(Disparity(10)-100) <= N ) Then{
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
if data3(abs(Disparity(5)-100) <= N or abs(Disparity(10)-100) <= N ) Then{
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
요렇게 해주셨는데
1. 혹시 단순이평이 아닌 지수이평으로 수정할려면 어떻게 해야할까요?
2. 97%나 98%근접등 이평선근접 %는 어떻게 수정하는지요?
3. 알람과 동시에 표식을 하고싶습니다.
문의드립니다.
답변 1
예스스탁 예스스탁 답변
2012-09-11 13:51:09
안녕하세요
예스스탁입니다.
지수이평으로 이격도를 계산하기 위해서는 풀어서 작성하셔야 합니다.
지표속성창에서 3개의 plot을 모두 점그래프로 설정하시고
차트에 적용하시면 data1,data2,data3에서 조건이 만족하면
소리와 함께 data1의 고가에 점을 찍습니다.
input : P1(5),P2(10),N(98);
if data1(((C/ema(c,P1)*100) < 100 and (C/ema(c,P1)*100) >= N)) or data1(((C/ema(c,P2)*100) < 100 and (C/ema(c,P2)*100) >= N)) Then{
plot1(H);
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
if data2(((C/ema(c,P1)*100) < 100 and (C/ema(c,P1)*100) >= N)) or data2(((C/ema(c,P2)*100) < 100 and (C/ema(c,P2)*100) >= N)) Then{
plot1(H);
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
if data3(((C/ema(c,P1)*100) < 100 and (C/ema(c,P1)*100) >= N)) or data3(((C/ema(c,P2)*100) < 100 and (C/ema(c,P2)*100) >= N)) Then{
plot1(H);
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
각 데이터에 점을 찍고자 하시면
위식을 3개로 분리해서 지표식으로 작성하시고
그래프 모양을 점그래프로 설정하신 후에
각각 차트에 적용 후 해당되는 데이터 위로 마우스로 옮기셔야 합니다.
1. data1
input : P1(5),P2(10),N(98);
if data1(((C/ema(c,P1)*100) < 100 and (C/ema(c,P1)*100) >= N)) or data1(((C/ema(c,P2)*100) < 100 and (C/ema(c,P2)*100) >= N)) Then{
plot1(H);
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
2.data2
input : P1(5),P2(10),N(98);
if data2(((C/ema(c,P1)*100) < 100 and (C/ema(c,P1)*100) >= N)) or data2(((C/ema(c,P2)*100) < 100 and (C/ema(c,P2)*100) >= N)) Then{
plot1(H);
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
3.data3
input : P1(5),P2(10),N(98);
if data3(((C/ema(c,P1)*100) < 100 and (C/ema(c,P1)*100) >= N)) or data3(((C/ema(c,P2)*100) < 100 and (C/ema(c,P2)*100) >= N)) Then{
plot1(H);
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
즐거운 하루되세요
> 엔즈 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 일봉,주봉,10분봉을 각각 data1,data2.data3으로 설정했을시
각각 5일선과 10일선에 크로스업이나 다운이 아닌 근접했을경우에 알람을
설정하고자 합니다.
예를 들어 각각의 차트에서 5일이평과,10일이평에 종가가 위로든 아래든
97%정도 근접했을때
알람이 나오도록 설정하고싶습니다.--> (이격도로 표현해야하나요?)
오늘 질문드렸더니
input : N(1);
if data1(abs(Disparity(5)-100) <= N or abs(Disparity(10)-100) <= N ) Then{
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
if data2(abs(Disparity(5)-100) <= N or abs(Disparity(10)-100) <= N ) Then{
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
if data3(abs(Disparity(5)-100) <= N or abs(Disparity(10)-100) <= N ) Then{
PlaySound("C:₩예스트레이더31₩Data₩alert.wav");
}
요렇게 해주셨는데
1. 혹시 단순이평이 아닌 지수이평으로 수정할려면 어떻게 해야할까요?
2. 97%나 98%근접등 이평선근접 %는 어떻게 수정하는지요?
3. 알람과 동시에 표식을 하고싶습니다.
문의드립니다.
다음글
이전글