안녕하세요. 늘 수고 많으세요.
아래 지표에서 틱수 대신 %로 가능할까요?
특정가격의 오차범위 10% 범위내에서 알람소리나는 걸로 부탁드립니다.
감사합니다.
input : Price1(1.0),Price2(1.5),Price3(2.0),Price4(2.5),Price5(3.0),Price6(3.0),틱수(10);
if C <= Price1+PriceScale*틱수 and C >= Price1-PriceScale*틱수 Then{
Alert("Price1 근접 %.2f",Price1);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price2+PriceScale*틱수 and C >= Price2-PriceScale*틱수 Then{
Alert("Price2 근접 %.2f",Price2);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price3+PriceScale*틱수 and C >= Price3-PriceScale*틱수 Then{
Alert("Price3 근접 %.2f",Price3);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price4+PriceScale*틱수 and C >= Price4-PriceScale*틱수 Then{
Alert("Price4 근접 %.2f",Price4);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price5+PriceScale*틱수 and C >= Price5-PriceScale*틱수 Then{
Alert("Price5 근접 %.2f",Price5);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price6+PriceScale*틱수 and C >= Price6-PriceScale*틱수 Then{
Alert("Price6 근접 %.2f",Price6);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
plot1(Price1);
plot2(Price2);
plot3(Price3);
plot4(Price4);
plot5(Price5);
plot6(Price6);
답변 1
예스스탁
예스스탁 답변
2020-11-26 15:55:48
안녕하세요
예스스탁입니다.
input : Price1(1.0),Price2(1.5),Price3(2.0),Price4(2.5),Price5(3.0),Price6(3.0),per(10);
if C <= Price1*(1+per/100) and C >= Price1*(1-per/100) Then{
Alert("Price1 근접 %.2f",Price1);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price2*(1+per/100)and C >= Price2*(1-per/100) Then{
Alert("Price2 근접 %.2f",Price2);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price3*(1+per/100) and C >= Price3*(1-per/100) Then{
Alert("Price3 근접 %.2f",Price3);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price4*(1+per/100) and C >= Price4*(1-per/100) Then{
Alert("Price4 근접 %.2f",Price4);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price5*(1+per/100) and C >= Price5*(1-per/100) Then{
Alert("Price5 근접 %.2f",Price5);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price6*(1+per/100) and C >= Price6*(1-per/100) Then{
Alert("Price6 근접 %.2f",Price6);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
plot1(Price1);
plot2(Price2);
plot3(Price3);
plot4(Price4);
plot5(Price5);
plot6(Price6);
즐거운 하루되세요
> 육각수 님이 쓴 글입니다.
> 제목 : 문의
> 안녕하세요. 늘 수고 많으세요.
아래 지표에서 틱수 대신 %로 가능할까요?
특정가격의 오차범위 10% 범위내에서 알람소리나는 걸로 부탁드립니다.
감사합니다.
input : Price1(1.0),Price2(1.5),Price3(2.0),Price4(2.5),Price5(3.0),Price6(3.0),틱수(10);
if C <= Price1+PriceScale*틱수 and C >= Price1-PriceScale*틱수 Then{
Alert("Price1 근접 %.2f",Price1);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price2+PriceScale*틱수 and C >= Price2-PriceScale*틱수 Then{
Alert("Price2 근접 %.2f",Price2);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price3+PriceScale*틱수 and C >= Price3-PriceScale*틱수 Then{
Alert("Price3 근접 %.2f",Price3);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price4+PriceScale*틱수 and C >= Price4-PriceScale*틱수 Then{
Alert("Price4 근접 %.2f",Price4);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price5+PriceScale*틱수 and C >= Price5-PriceScale*틱수 Then{
Alert("Price5 근접 %.2f",Price5);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
if C <= Price6+PriceScale*틱수 and C >= Price6-PriceScale*틱수 Then{
Alert("Price6 근접 %.2f",Price6);
PlaySound("C:₩예스트레이더₩data₩Sound₩coin.wav");
}
plot1(Price1);
plot2(Price2);
plot3(Price3);
plot4(Price4);
plot5(Price5);
plot6(Price6);