커뮤니티

수정부탁드립니다-----------------------------------

프로필 이미지
leekss1
2023-08-01 10:18:18
987
글번호 171109
답변완료
//주의신호를 0 으로 입력해도 계속 소리가나네요 수정 부탁드립니다 수고하세요 input : 주의신호(0),Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); plot1(StMomentum1); plot2(StMomentum2); PlotBaseLine1(40,"과열"); PlotBaseLine2(-40,"침체"); if StMomentum1 > StMomentum1[1] Then { if 주의신호 == 1 then { PlaySound("C:₩Users₩user₩Desktop₩Sound₩상30초.wav"); } } if StMomentum1 < StMomentum1[1] Then { if 주의신호 == 1 then { PlaySound("C:₩Users₩user₩Desktop₩Sound₩하20초.wav"); } }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-08-01 16:14:32

안녕하세요 예스스탁입니다. 해당식 적용해 보았지만 주의신호가 1이면 소리가 출력되고 0이면 소리가 나지 않습니다. 수식이 차트에 적용되어 있는 상태에서 편집기에서 외부변수를 변경하셔도 적용이 되지 않습니다. 편집기에서 수식상 0으로 지정했으면 식을 다시 적용하셔야 합니다 수식이 차트에 적용된 상태에서는 속성창을 열어서 변수값을 적용해 주셔야 합니다. 즐거운 하루되세요 > leekss1 님이 쓴 글입니다. > 제목 : 수정부탁드립니다----------------------------------- > //주의신호를 0 으로 입력해도 계속 소리가나네요 수정 부탁드립니다 수고하세요 input : 주의신호(0),Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); plot1(StMomentum1); plot2(StMomentum2); PlotBaseLine1(40,"과열"); PlotBaseLine2(-40,"침체"); if StMomentum1 > StMomentum1[1] Then { if 주의신호 == 1 then { PlaySound("C:₩Users₩user₩Desktop₩Sound₩상30초.wav"); } } if StMomentum1 < StMomentum1[1] Then { if 주의신호 == 1 then { PlaySound("C:₩Users₩user₩Desktop₩Sound₩하20초.wav"); } }