커뮤니티

문의드립니다

프로필 이미지
새벽에
2025-11-09 00:13:34
57
글번호 227786
답변완료

안녕하세요? 1.사진처럼  신호가발생전   예비신호가 뜰때 알림음 을 받고싶습니다  예스씨스템에서 가능한가요?  만일가능하다면 아래조건문에 추가부탁드립니다 
if Condition1 == true Then {       # 매수/매도청산        if t==-1 Then       If  C > value  Then         {                    Buy();        }              # 매도/매수청산       if t==1 Then       If  C < value  Then         {                    Sell();        }  }
2.첨부수식이 에러가 있습니다 부탁드립니다
#SYSTEM Var: swingHi(0), swingLo(0), prevHiBar(0), prevLoBar(0); swingHi = SwingHigh(1, H, 3, 1, 200); swingLo = SwingLow(1, L, 3, 1, 200); If swingHi > 0 Then Begin prevHiBar = CurrentBar; End; If swingLo > 0 Then Begin prevLoBar = CurrentBar; End; If (prevHiBar = CurrentBar[1]) and (Close < Close[1]) Then Begin Sell("TopOnce"); End; If (prevLoBar = CurrentBar[1]) and (Close > Close[1]) Then Begin Buy("BottomOnce"); End;

시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-11-10 10:58:47

안녕하세요 예스스탁입니다. 1 소리출력함수(playsound)는 함수내에 지정한 경로의 wav파일이 구동됩니다. 아래는 예스트레이더에 기본으로 제공되는 wav파일을 지정했습니다. 원하시는 wav파일의 경로와 이름으로 수정하시기 바랍니다. 게시판에서 식을 복사할 경우 경로명 중 ₩의 폰트가 깨질수 있으므로 ₩는 다시 타이핑하시기 바랍니다. if Condition1 == true Then { # 매수/매도청산 if t==-1 Then If C > value Then { Buy(); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } # 매도/매수청산 if t==1 Then If C < value Then { Sell(); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); } } 2 Var: swingHi(0), swingLo(0), prevHiBar(0), prevLoBar(0),CB(0); swingHi = SwingHigh(1, H, 3, 1, 200); swingLo = SwingLow(1, L, 3, 1, 200); CB = CurrentBar; If swingHi > 0 Then Begin prevHiBar = CurrentBar; End; If swingLo > 0 Then Begin prevLoBar = CurrentBar; End; If (prevHiBar == CB[1]) and (Close < Close[1]) Then Begin Sell("TopOnce"); End; If (prevLoBar == CB[1]) and (Close > Close[1]) Then Begin Buy("BottomOnce"); End; 즐거운 하루되세요