커뮤니티

텍스트 출력

프로필 이미지
육각수
2014-05-23 18:02:09
228
글번호 75333
답변완료
아래 수식은 지난번 문의에대한 답글로 받은 내용인데 각 가격에 이름을 정하여 챠트에 출력되게 할 수 있을까요? 부탁드립니다. 참 그리고 혹시 팝업창 크기나 위치도 변경도 가능할까요? input : Price1(1.0),Price2(1.5),Price3(2.0),Price4(2.5),Price5(3.0),틱수(5); if C <= Price1+PriceScale*틱수 and C >= Price1+PriceScale*틱수 Then{ Alert("Price1 근접 %.2f",Price1); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price2+PriceScale*틱수 and C >= Price2+PriceScale*틱수 Then{ Alert("Price2 근접 %.2f",Price2); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price3+PriceScale*틱수 and C >= Price3+PriceScale*틱수 Then{ Alert("Price3 근접 %.2f",Price3); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price4+PriceScale*틱수 and C >= Price4+PriceScale*틱수 Then{ Alert("Price4 근접 %.2f",Price4); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price5+PriceScale*틱수 and C >= Price5+PriceScale*틱수 Then{ Alert("Price5 근접 %.2f",Price5); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } plot1(Price1); plot2(Price2); plot3(Price3); plot4(Price4); plot5(Price5);
사용자 함수
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2014-05-26 10:37:54

안녕하세요 예스스탁입니다. 1. 조건만족할때 봉차트에 텍스트를 출력하고자 하시면 텍스트출력함수 이용하시면 됩니다 if C <= Price1+PriceScale*틱수 and C >= Price1+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price1근접:"+Price1); Alert("Price1 근접 %.2f",Price1); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price2+PriceScale*틱수 and C >= Price2+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price2근접:"+Price2); Alert("Price2 근접 %.2f",Price2); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price3+PriceScale*틱수 and C >= Price3+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price3근접:"+Price3); Alert("Price3 근접 %.2f",Price3); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price4+PriceScale*틱수 and C >= Price4+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price4근접:"+Price4); Alert("Price4 근접 %.2f",Price4); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price5+PriceScale*틱수 and C >= Price5+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price5근접:"+Price5); Alert("Price5 근접 %.2f",Price5); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } plot1(Price1); plot2(Price2); plot3(Price3); plot4(Price4); plot5(Price5); 2. 팝업창의 크기나 위치는 따로 조절이 되지 않습니다. 즐거운 하루되세요 > 육각수 님이 쓴 글입니다. > 제목 : 텍스트 출력 > 아래 수식은 지난번 문의에대한 답글로 받은 내용인데 각 가격에 이름을 정하여 챠트에 출력되게 할 수 있을까요? 부탁드립니다. 참 그리고 혹시 팝업창 크기나 위치도 변경도 가능할까요? input : Price1(1.0),Price2(1.5),Price3(2.0),Price4(2.5),Price5(3.0),틱수(5); if C <= Price1+PriceScale*틱수 and C >= Price1+PriceScale*틱수 Then{ Alert("Price1 근접 %.2f",Price1); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price2+PriceScale*틱수 and C >= Price2+PriceScale*틱수 Then{ Alert("Price2 근접 %.2f",Price2); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price3+PriceScale*틱수 and C >= Price3+PriceScale*틱수 Then{ Alert("Price3 근접 %.2f",Price3); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price4+PriceScale*틱수 and C >= Price4+PriceScale*틱수 Then{ Alert("Price4 근접 %.2f",Price4); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price5+PriceScale*틱수 and C >= Price5+PriceScale*틱수 Then{ Alert("Price5 근접 %.2f",Price5); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } plot1(Price1); plot2(Price2); plot3(Price3); plot4(Price4); plot5(Price5);
프로필 이미지

육각수

2014-05-26 12:23:51

답변 감사드려요^^ 근데 제가 원하는 것은 팝업창이 [특정행사가 price1 근접 2.50] 이렇게 뜨는데 price1 대신에 price1을 전고점라고 이름을 정해서 팝어창이 [특정행사가 전고점 근접 2.50] 이렇게 뜨게 가능할까요? > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 텍스트 출력 > 안녕하세요 예스스탁입니다. 1. 조건만족할때 봉차트에 텍스트를 출력하고자 하시면 텍스트출력함수 이용하시면 됩니다 if C <= Price1+PriceScale*틱수 and C >= Price1+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price1근접:"+Price1); Alert("Price1 근접 %.2f",Price1); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price2+PriceScale*틱수 and C >= Price2+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price2근접:"+Price2); Alert("Price2 근접 %.2f",Price2); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price3+PriceScale*틱수 and C >= Price3+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price3근접:"+Price3); Alert("Price3 근접 %.2f",Price3); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price4+PriceScale*틱수 and C >= Price4+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price4근접:"+Price4); Alert("Price4 근접 %.2f",Price4); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price5+PriceScale*틱수 and C >= Price5+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price5근접:"+Price5); Alert("Price5 근접 %.2f",Price5); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } plot1(Price1); plot2(Price2); plot3(Price3); plot4(Price4); plot5(Price5); 2. 팝업창의 크기나 위치는 따로 조절이 되지 않습니다. 즐거운 하루되세요 > 육각수 님이 쓴 글입니다. > 제목 : 텍스트 출력 > 아래 수식은 지난번 문의에대한 답글로 받은 내용인데 각 가격에 이름을 정하여 챠트에 출력되게 할 수 있을까요? 부탁드립니다. 참 그리고 혹시 팝업창 크기나 위치도 변경도 가능할까요? input : Price1(1.0),Price2(1.5),Price3(2.0),Price4(2.5),Price5(3.0),틱수(5); if C <= Price1+PriceScale*틱수 and C >= Price1+PriceScale*틱수 Then{ Alert("Price1 근접 %.2f",Price1); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price2+PriceScale*틱수 and C >= Price2+PriceScale*틱수 Then{ Alert("Price2 근접 %.2f",Price2); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price3+PriceScale*틱수 and C >= Price3+PriceScale*틱수 Then{ Alert("Price3 근접 %.2f",Price3); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price4+PriceScale*틱수 and C >= Price4+PriceScale*틱수 Then{ Alert("Price4 근접 %.2f",Price4); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price5+PriceScale*틱수 and C >= Price5+PriceScale*틱수 Then{ Alert("Price5 근접 %.2f",Price5); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } plot1(Price1); plot2(Price2); plot3(Price3); plot4(Price4); plot5(Price5);
프로필 이미지

예스스탁 예스스탁 답변

2014-05-26 14:43:25

안녕하세요 예스스탁입니다. 팝업창의 메세지를 수정했습니다. if C <= Price1+PriceScale*틱수 and C >= Price1+PriceScale*틱수 Then{ Alert("특정행사가가 전고점 근접 %.2f",Price1); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price2+PriceScale*틱수 and C >= Price2+PriceScale*틱수 Then{ Alert("특정행사가가 전고점 근접 %.2f",Price2); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price3+PriceScale*틱수 and C >= Price3+PriceScale*틱수 Then{ Alert("특정행사가가 전고점 근접 %.2f",Price3); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price4+PriceScale*틱수 and C >= Price4+PriceScale*틱수 Then{ Alert("특정행사가가 전고점 근접 %.2f",Price4); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price5+PriceScale*틱수 and C >= Price5+PriceScale*틱수 Then{ Alert("특정행사가가 전고점 근접 %.2f",Price5); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } plot1(Price1); plot2(Price2); plot3(Price3); plot4(Price4); plot5(Price5); 즐거운 하루되세요 > 육각수 님이 쓴 글입니다. > 제목 : Re : Re : 텍스트 출력 > 답변 감사드려요^^ 근데 제가 원하는 것은 팝업창이 [특정행사가 price1 근접 2.50] 이렇게 뜨는데 price1 대신에 price1을 전고점라고 이름을 정해서 팝어창이 [특정행사가 전고점 근접 2.50] 이렇게 뜨게 가능할까요? > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 텍스트 출력 > 안녕하세요 예스스탁입니다. 1. 조건만족할때 봉차트에 텍스트를 출력하고자 하시면 텍스트출력함수 이용하시면 됩니다 if C <= Price1+PriceScale*틱수 and C >= Price1+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price1근접:"+Price1); Alert("Price1 근접 %.2f",Price1); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price2+PriceScale*틱수 and C >= Price2+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price2근접:"+Price2); Alert("Price2 근접 %.2f",Price2); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price3+PriceScale*틱수 and C >= Price3+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price3근접:"+Price3); Alert("Price3 근접 %.2f",Price3); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price4+PriceScale*틱수 and C >= Price4+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price4근접:"+Price4); Alert("Price4 근접 %.2f",Price4); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price5+PriceScale*틱수 and C >= Price5+PriceScale*틱수 Then{ Text_New(Sdate,Stime,H,"Price5근접:"+Price5); Alert("Price5 근접 %.2f",Price5); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } plot1(Price1); plot2(Price2); plot3(Price3); plot4(Price4); plot5(Price5); 2. 팝업창의 크기나 위치는 따로 조절이 되지 않습니다. 즐거운 하루되세요 > 육각수 님이 쓴 글입니다. > 제목 : 텍스트 출력 > 아래 수식은 지난번 문의에대한 답글로 받은 내용인데 각 가격에 이름을 정하여 챠트에 출력되게 할 수 있을까요? 부탁드립니다. 참 그리고 혹시 팝업창 크기나 위치도 변경도 가능할까요? input : Price1(1.0),Price2(1.5),Price3(2.0),Price4(2.5),Price5(3.0),틱수(5); if C <= Price1+PriceScale*틱수 and C >= Price1+PriceScale*틱수 Then{ Alert("Price1 근접 %.2f",Price1); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price2+PriceScale*틱수 and C >= Price2+PriceScale*틱수 Then{ Alert("Price2 근접 %.2f",Price2); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price3+PriceScale*틱수 and C >= Price3+PriceScale*틱수 Then{ Alert("Price3 근접 %.2f",Price3); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price4+PriceScale*틱수 and C >= Price4+PriceScale*틱수 Then{ Alert("Price4 근접 %.2f",Price4); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } if C <= Price5+PriceScale*틱수 and C >= Price5+PriceScale*틱수 Then{ Alert("Price5 근접 %.2f",Price5); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } plot1(Price1); plot2(Price2); plot3(Price3); plot4(Price4); plot5(Price5);