커뮤니티

그물망 알람지표 추가 관련 문의합니다.

프로필 이미지
정구지
2019-01-29 21:56:29
182
글번호 125729
답변완료
다음주 설을 맞이하여 즐거운 명절을 보내기를 기원합니다. 항상 저희 파생인들을 위하여 가르침을 주심에 감사드립니다. 저번에 제가 문의 해드린 아래의 지표를 너무 잘 이용하고 있어 깊이 감사하게 생각합니다. 이 번에는 여기에 추가하여 알람을 더 만들고 싶어서 문의드립니다. 1. 아래의 그물망식은 봉이 그물망 내부에 있다고 밖으로(아래쪽으로 통과하는 경우 또는 위쪽으로 통과한 경우 동일) 통과한 후 일정틱수(아래식은 3틱- 설정으로 변경가능)를 돌파하면 알람이 울리는 수식인데, 2. 저는 여기에 추가하여 반대로 틱봉이 그물망 안에서 그물망의 맨위 또는 맨 아래 부분을 통과하기 전에 (일정틱수(설정가능 하도록 틱수를 조정)전에) 알람이 울리도록 하는 식을 추가하고 싶습니다. 참고 : 아래는 기존 그물망 알람 지표입니다. Input : Period(5),틱(3); var : cnt(0),hh(0),ll(0); Array : mav[51](0); hh = 0; ll = 0; for cnt = 1 to 50 { mav[cnt] = ma(C,Period*cnt); if mav[cnt] > 0 then { if hh == 0 or (hh > 0 and mav[cnt] > hh) Then hh = mav[cnt]; if ll == 0 or (ll > 0 and mav[cnt] < ll) Then ll = mav[cnt]; } } Plot1(mav[1], "이동평균1"); Plot2(mav[2], "이동평균2"); Plot3(mav[3], "이동평균3"); Plot4(mav[4], "이동평균4"); Plot5(mav[5], "이동평균5"); Plot6(mav[6], "이동평균6"); Plot7(mav[7], "이동평균7"); Plot8(mav[8], "이동평균8"); Plot9(mav[9], "이동평균9"); Plot10(mav[10], "이동평균10"); Plot11(mav[11], "이동평균11"); Plot12(mav[12], "이동평균12"); Plot13(mav[13], "이동평균13"); Plot14(mav[14], "이동평균14"); Plot15(mav[15], "이동평균15"); Plot16(mav[16], "이동평균16"); Plot17(mav[17], "이동평균17"); Plot18(mav[18], "이동평균18"); Plot19(mav[19], "이동평균19"); Plot20(mav[20], "이동평균20"); Plot21(mav[21], "이동평균21"); Plot22(mav[22], "이동평균22"); Plot23(mav[23], "이동평균23"); Plot24(mav[24], "이동평균24"); Plot25(mav[25], "이동평균25"); Plot26(mav[26], "이동평균26"); Plot27(mav[27], "이동평균27"); Plot28(mav[28], "이동평균28"); Plot29(mav[29], "이동평균29"); Plot30(mav[30], "이동평균30"); Plot31(mav[31], "이동평균31"); Plot32(mav[32], "이동평균32"); Plot33(mav[33], "이동평균33"); Plot34(mav[34], "이동평균34"); Plot35(mav[35], "이동평균35"); Plot36(mav[36], "이동평균36"); Plot37(mav[37], "이동평균37"); Plot38(mav[38], "이동평균38"); Plot39(mav[39], "이동평균39"); Plot40(mav[40], "이동평균30"); Plot41(mav[41], "이동평균41"); Plot42(mav[42], "이동평균42"); Plot43(mav[43], "이동평균43"); Plot44(mav[44], "이동평균44"); Plot45(mav[45], "이동평균45"); Plot46(mav[46], "이동평균46"); Plot47(mav[47], "이동평균47"); Plot48(mav[48], "이동평균48"); Plot49(mav[49], "이동평균49"); Plot50(mav[50], "이동평균50"); if crossup(C,HH+PriceScale*틱) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if CrossDown(C,LL-PriceScale*틱) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-01-30 11:14:50

안녕하세요 예스스탁입니다. Input : Period(5),틱1(3),틱2(3); var : cnt(0),hh(0),ll(0); Array : mav[51](0); hh = 0; ll = 0; for cnt = 1 to 50 { mav[cnt] = ma(C,Period*cnt); if mav[cnt] > 0 then { if hh == 0 or (hh > 0 and mav[cnt] > hh) Then hh = mav[cnt]; if ll == 0 or (ll > 0 and mav[cnt] < ll) Then ll = mav[cnt]; } } Plot1(mav[1], "이동평균1"); Plot2(mav[2], "이동평균2"); Plot3(mav[3], "이동평균3"); Plot4(mav[4], "이동평균4"); Plot5(mav[5], "이동평균5"); Plot6(mav[6], "이동평균6"); Plot7(mav[7], "이동평균7"); Plot8(mav[8], "이동평균8"); Plot9(mav[9], "이동평균9"); Plot10(mav[10], "이동평균10"); Plot11(mav[11], "이동평균11"); Plot12(mav[12], "이동평균12"); Plot13(mav[13], "이동평균13"); Plot14(mav[14], "이동평균14"); Plot15(mav[15], "이동평균15"); Plot16(mav[16], "이동평균16"); Plot17(mav[17], "이동평균17"); Plot18(mav[18], "이동평균18"); Plot19(mav[19], "이동평균19"); Plot20(mav[20], "이동평균20"); Plot21(mav[21], "이동평균21"); Plot22(mav[22], "이동평균22"); Plot23(mav[23], "이동평균23"); Plot24(mav[24], "이동평균24"); Plot25(mav[25], "이동평균25"); Plot26(mav[26], "이동평균26"); Plot27(mav[27], "이동평균27"); Plot28(mav[28], "이동평균28"); Plot29(mav[29], "이동평균29"); Plot30(mav[30], "이동평균30"); Plot31(mav[31], "이동평균31"); Plot32(mav[32], "이동평균32"); Plot33(mav[33], "이동평균33"); Plot34(mav[34], "이동평균34"); Plot35(mav[35], "이동평균35"); Plot36(mav[36], "이동평균36"); Plot37(mav[37], "이동평균37"); Plot38(mav[38], "이동평균38"); Plot39(mav[39], "이동평균39"); Plot40(mav[40], "이동평균30"); Plot41(mav[41], "이동평균41"); Plot42(mav[42], "이동평균42"); Plot43(mav[43], "이동평균43"); Plot44(mav[44], "이동평균44"); Plot45(mav[45], "이동평균45"); Plot46(mav[46], "이동평균46"); Plot47(mav[47], "이동평균47"); Plot48(mav[48], "이동평균48"); Plot49(mav[49], "이동평균49"); Plot50(mav[50], "이동평균50"); #상단+틱1 상향돌파시 소리출력 if crossup(C,HH+PriceScale*틱1) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); #하단-틱1 하향이탈시 소리출력 if CrossDown(C,LL-PriceScale*틱1) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); #상단-틱2 상향돌파시 소리출력 if crossup(C,HH+PriceScale*틱2) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); #하단+틱2 하향이탈시 소리출력 if CrossDown(C,LL-PriceScale*틱2) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); 즐거운 하루되세요 > 정구지 님이 쓴 글입니다. > 제목 : 그물망 알람지표 추가 관련 문의합니다. > 다음주 설을 맞이하여 즐거운 명절을 보내기를 기원합니다. 항상 저희 파생인들을 위하여 가르침을 주심에 감사드립니다. 저번에 제가 문의 해드린 아래의 지표를 너무 잘 이용하고 있어 깊이 감사하게 생각합니다. 이 번에는 여기에 추가하여 알람을 더 만들고 싶어서 문의드립니다. 1. 아래의 그물망식은 봉이 그물망 내부에 있다고 밖으로(아래쪽으로 통과하는 경우 또는 위쪽으로 통과한 경우 동일) 통과한 후 일정틱수(아래식은 3틱- 설정으로 변경가능)를 돌파하면 알람이 울리는 수식인데, 2. 저는 여기에 추가하여 반대로 틱봉이 그물망 안에서 그물망의 맨위 또는 맨 아래 부분을 통과하기 전에 (일정틱수(설정가능 하도록 틱수를 조정)전에) 알람이 울리도록 하는 식을 추가하고 싶습니다. 참고 : 아래는 기존 그물망 알람 지표입니다. Input : Period(5),틱(3); var : cnt(0),hh(0),ll(0); Array : mav[51](0); hh = 0; ll = 0; for cnt = 1 to 50 { mav[cnt] = ma(C,Period*cnt); if mav[cnt] > 0 then { if hh == 0 or (hh > 0 and mav[cnt] > hh) Then hh = mav[cnt]; if ll == 0 or (ll > 0 and mav[cnt] < ll) Then ll = mav[cnt]; } } Plot1(mav[1], "이동평균1"); Plot2(mav[2], "이동평균2"); Plot3(mav[3], "이동평균3"); Plot4(mav[4], "이동평균4"); Plot5(mav[5], "이동평균5"); Plot6(mav[6], "이동평균6"); Plot7(mav[7], "이동평균7"); Plot8(mav[8], "이동평균8"); Plot9(mav[9], "이동평균9"); Plot10(mav[10], "이동평균10"); Plot11(mav[11], "이동평균11"); Plot12(mav[12], "이동평균12"); Plot13(mav[13], "이동평균13"); Plot14(mav[14], "이동평균14"); Plot15(mav[15], "이동평균15"); Plot16(mav[16], "이동평균16"); Plot17(mav[17], "이동평균17"); Plot18(mav[18], "이동평균18"); Plot19(mav[19], "이동평균19"); Plot20(mav[20], "이동평균20"); Plot21(mav[21], "이동평균21"); Plot22(mav[22], "이동평균22"); Plot23(mav[23], "이동평균23"); Plot24(mav[24], "이동평균24"); Plot25(mav[25], "이동평균25"); Plot26(mav[26], "이동평균26"); Plot27(mav[27], "이동평균27"); Plot28(mav[28], "이동평균28"); Plot29(mav[29], "이동평균29"); Plot30(mav[30], "이동평균30"); Plot31(mav[31], "이동평균31"); Plot32(mav[32], "이동평균32"); Plot33(mav[33], "이동평균33"); Plot34(mav[34], "이동평균34"); Plot35(mav[35], "이동평균35"); Plot36(mav[36], "이동평균36"); Plot37(mav[37], "이동평균37"); Plot38(mav[38], "이동평균38"); Plot39(mav[39], "이동평균39"); Plot40(mav[40], "이동평균30"); Plot41(mav[41], "이동평균41"); Plot42(mav[42], "이동평균42"); Plot43(mav[43], "이동평균43"); Plot44(mav[44], "이동평균44"); Plot45(mav[45], "이동평균45"); Plot46(mav[46], "이동평균46"); Plot47(mav[47], "이동평균47"); Plot48(mav[48], "이동평균48"); Plot49(mav[49], "이동평균49"); Plot50(mav[50], "이동평균50"); if crossup(C,HH+PriceScale*틱) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); if CrossDown(C,LL-PriceScale*틱) Then PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");