커뮤니티
오류가없는데 다른위치에서 소리가나옵니다
2016-08-31 19:59:45
82
글번호 101562
Input : Period1(1),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 va > va[1]+0 and value > value[1]-500 and va[2] < va[3]-50 and dayindex >= 3 Then
{
Plot6(va, "매수점");}
//소리
if va > va[1]+0 and value > value[1]-500 and va[2] < va[3]-50 and dayindex >= 3 Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩bubbles.wav"); }
If va < va[1]+5 and value > value[1] and dayindex >= 2 Then
{
Plot7(va, "매도점");}
//소리
if va < va[1]+5 and value > value[1] and dayindex >= 2 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],"SwingLow");
plot6,plot7 가 나올때 소리도 같이나와야하는데 장중에 실행하면 plot6,plot7 과
소리가 일치하지 않아요 수정부탁드립니다
답변 1
예스스탁 예스스탁 답변
2016-09-01 13:30:21
안녕하세요
예스스탁입니다.
올려주신식에서
bubbles.wav파일이 없어
alert.wav로 대체하고 테스트해보았지만
정상적으로 점이 찍히는 곳에서만 소리가 발생합니다.
지정한 경로에 지정한 wav파일이 있는지 확인하시고
게시판에서 수식을 복사하면 경로면에 ₩의 폰트가 깨질수 있으므로
₩는 다시 타이핑하시기 바랍니다.
또한 해당식이 다른 차트에 적용이 되어 있는지도 확인하시기 바랍니다.
매수점과 매도점 조건내용을 별로 작성하실 필요는 없으므로
아래와 같이 합치셔도 됩니다.
Input : Period1(1),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 va > va[1]+0 and value > value[1]-500 and va[2] < va[3]-50 and dayindex >= 3 Then
{
Plot6(va, "매수점");
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
If va < va[1]+5 and value > value[1] and dayindex >= 2 Then
{
Plot7(va, "매도점");
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav" );
}
즐거운 하루되세요
> leekss1 님이 쓴 글입니다.
> 제목 : 오류가없는데 다른위치에서 소리가나옵니다
> Input : Period1(1),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 va > va[1]+0 and value > value[1]-500 and va[2] < va[3]-50 and dayindex >= 3 Then
{
Plot6(va, "매수점");}
//소리
if va > va[1]+0 and value > value[1]-500 and va[2] < va[3]-50 and dayindex >= 3 Then
{
PlaySound("C:₩예스트레이더₩data₩Sound₩bubbles.wav"); }
If va < va[1]+5 and value > value[1] and dayindex >= 2 Then
{
Plot7(va, "매도점");}
//소리
if va < va[1]+5 and value > value[1] and dayindex >= 2 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],"SwingLow");
plot6,plot7 가 나올때 소리도 같이나와야하는데 장중에 실행하면 plot6,plot7 과
소리가 일치하지 않아요 수정부탁드립니다
다음글
이전글