커뮤니티

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

프로필 이미지
leekss1
2016-08-29 15:21:40
90
글번호 101453
답변완료
Input : Period(5),Period1(1),Period2(10),Period10(0.1),상승축소(1),하락축소(1); Var : value(0),va(0),va10(0); // value = ma(bids,period)-ma(asks,period)+Period10+5000; va= ma(bids,period1)-ma(asks,period1)+Period10+5000; value = wma(va,5); va10 = wma(va,20); if value > value[1] and va < va[1] Then va = va+상승축소; else if value < value[1] and va > va[1] Then va = va-하락축소; Else va = va; If value > value[1] Then { Plot1(value, "5매수총잔량 우위"); Plot2(0, "5매도총잔량 우위"); } Else{ Plot1(0, "5매수총잔량 우위"); Plot2(value, "5매도총잔량 우위"); } If va > va[1] Then { Plot3(va, "1매수총잔량 우위"); Plot4(0, "1매도총잔량 우위"); } Else{ Plot3(0, "1매수총잔량 우위"); Plot4(va, "1매도총잔량 우위"); } PlotBaseLine1(value,"기준선1"); PlotBaseLine2(va,"기준선2"); PlotBaseLine3(va10,"기준선10"); //점찍기 If value > value[1] and value[1] < value[2] and value[2] < value[3] Then { Plot6(value, "매수점");} If value < value[1] and value[1] > value[2] and value[2] > value[3] Then { Plot7(value, "매도점");} //소리 if value > value[1] and value[1] < value[2] and value[2] < value[3] Then { PlaySound("C:₩예스트레이더₩data₩Sound₩bubbles.wav"); } //소리 if value < value[1] and value[1] > value[2] and value[2] > value[3] Then { PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav" ); } //전고점전저점 //var: Left(3),Right(3); //If SwingHigh(1, h, Left, Right, Left+Right+1) <> -1 Then // Plot8(High[Right],"SwingHigh"); //If SwingLow(1, l, Left, Right, Left+Right+1) <> -1 Then // Plot9(Low[Right],"SwingLo 왜두번째봉에서도 소리가나죠? value의 뒤로10봉안에 전고점끼리연결하는선만들기 value의 뒤로10봉안에 전저점끼리연결하는선만들기 부탁드립니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-08-30 15:01:28

안녕하세요 예스스탁입니다. 1 해당식 value가 2봉연속 하락후 상승하거나 2봉연속 상승후 하락하면 소리가 출력되게 작성되어 있습니다. 이전봉은 전일봉도 포함됩니다. 당일값만 이용하신 다면 아래와 같이 소리출력부분 조건문에 당일 몇번째 봉이후에 소리가 출력하게 하셔야 합니다. //소리 if value > value[1] and value[1] < value[2] and value[2] < value[3] and dayindex >= 3 Then { PlaySound("C:₩예스트레이더₩data₩Sound₩bubbles.wav"); } //소리 if value < value[1] and value[1] > value[2] and value[2] > value[3] and dayindex >= 3 Then { PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav" ); } 2 과거봉과의 연결선은 가능하지 않습니다. 과거봉과 연결하려면 추세선함수를 이용해야 하는데 해당 함수가 봉의 값으로만 지정가능하고 봉 위에만 적용이 됩니다. 즐거운 하루되세요 > leekss1 님이 쓴 글입니다. > 제목 : 수식부탁드립니다--------------- > Input : Period(5),Period1(1),Period2(10),Period10(0.1),상승축소(1),하락축소(1); Var : value(0),va(0),va10(0); // value = ma(bids,period)-ma(asks,period)+Period10+5000; va= ma(bids,period1)-ma(asks,period1)+Period10+5000; value = wma(va,5); va10 = wma(va,20); if value > value[1] and va < va[1] Then va = va+상승축소; else if value < value[1] and va > va[1] Then va = va-하락축소; Else va = va; If value > value[1] Then { Plot1(value, "5매수총잔량 우위"); Plot2(0, "5매도총잔량 우위"); } Else{ Plot1(0, "5매수총잔량 우위"); Plot2(value, "5매도총잔량 우위"); } If va > va[1] Then { Plot3(va, "1매수총잔량 우위"); Plot4(0, "1매도총잔량 우위"); } Else{ Plot3(0, "1매수총잔량 우위"); Plot4(va, "1매도총잔량 우위"); } PlotBaseLine1(value,"기준선1"); PlotBaseLine2(va,"기준선2"); PlotBaseLine3(va10,"기준선10"); //점찍기 If value > value[1] and value[1] < value[2] and value[2] < value[3] Then { Plot6(value, "매수점");} If value < value[1] and value[1] > value[2] and value[2] > value[3] Then { Plot7(value, "매도점");} //소리 if value > value[1] and value[1] < value[2] and value[2] < value[3] Then { PlaySound("C:₩예스트레이더₩data₩Sound₩bubbles.wav"); } //소리 if value < value[1] and value[1] > value[2] and value[2] > value[3] Then { PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav" ); } //전고점전저점 //var: Left(3),Right(3); //If SwingHigh(1, h, Left, Right, Left+Right+1) <> -1 Then // Plot8(High[Right],"SwingHigh"); //If SwingLow(1, l, Left, Right, Left+Right+1) <> -1 Then // Plot9(Low[Right],"SwingLo 왜두번째봉에서도 소리가나죠? value의 뒤로10봉안에 전고점끼리연결하는선만들기 value의 뒤로10봉안에 전저점끼리연결하는선만들기 부탁드립니다