예스스탁
예스스탁 답변
2024-01-15 18:24:28
안녕하세요
예스스탁입니다.
1
소리출력함수(playsound)는 함수내에 지정한 경로의 wav파일이 구동됩니다.
아래는 예스트레이더에 기본으로 제공되는 wav파일을 지정했습니다.
원하시는 wav파일의 경로와 이름으로 수정하시기 바랍니다.
게시판에서 식을 복사할 경우 경로명 중 ₩의 폰트가 깨질수 있으므로 ₩는 다시 타이핑하시기 바랍니다.
매수신호발생,매도신호발생과 같은 wav파일은 저희프로그램에서는 제공되지 않습니다.
사용자분 pc안에 있는 wav파일이면 모든 파일 지정이 가능하므로
해당 음성이 나오는 wav파일이 있다면 해당파일의 경로와 파일명 지정해 주시면 됩니다.
input : P1(7),P2(14),P3(21);
var : R1(0),R2(0),R3(0),TX(0);
R1 = RSI(P1);
R2 = RSI(P2);
R3 = RSI(P3);
Plot1(R1, "RSI1");
Plot2(R2, "RSI2");
Plot3(R3, "RSI3");
PlotBaseLine1(30, "기준선 30");
PlotBaseLine2(50, "기준선 50");
PlotBaseLine3(70, "기준선 70");
Condition1 = R1 > R2 and R2 > R3;
Condition2 = R1 < R2 and R2 < R3;
if Condition1 == true and Condition1 != Condition1[1] Then
{
TX = Text_New_Self(sDate,sTime,R3,"▲");
Text_SetStyle(TX,2,0);
Text_SetColor(TX,Red);
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
if Condition2 == true and Condition2 != Condition2[1] Then
{
TX = Text_New_Self(sDate,sTime,R3,"▼");
Text_SetStyle(TX,2,1);
Text_SetColor(TX,Blue);
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
2
input : P1(7),P2(14),P3(21);
var : R1(0,Data2),R2(0,Data2),R3(0,Data2),TX(0);
var : cond1(False,Data2),cond2(False,Data2);
R1 = data2(RSI(P1));
R2 = data2(RSI(P2));
R3 = data2(RSI(P3));
Plot1(R1, "RSI1");
Plot2(R2, "RSI2");
Plot3(R3, "RSI3");
PlotBaseLine1(30, "기준선 30");
PlotBaseLine2(50, "기준선 50");
PlotBaseLine3(70, "기준선 70");
cond1 = R1 > R2 and R2 > R3;
cond2 = R1 < R2 and R2 < R3;
if cond1 == true and cond1 != cond1[1] Then
{
TX = Text_New_Self(sDate,sTime,R3,"▲");
Text_SetStyle(TX,2,0);
Text_SetColor(TX,Red);
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
if cond2 == true and cond2 != cond2[1] Then
{
TX = Text_New_Self(sDate,sTime,R3,"▼");
Text_SetStyle(TX,2,1);
Text_SetColor(TX,Blue);
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
3
input : P1(7),P2(14),P3(21);
var : R1(0),R2(0),R3(0),TX(0);
R1 = RSI(P1);
R2 = RSI(P2);
R3 = RSI(P3);
Condition1 = R1 > R2 and R2 > R3;
Condition2 = R1 < R2 and R2 < R3;
if Condition1 == true and Condition1 != Condition1[1] Then
{
Buy();
}
if Condition2 == true and Condition2 != Condition2[1] Then
{
Sell();
}
즐거운 하루되세요
> zmfha 님이 쓴 글입니다.
> 제목 : 문의드립니다
> input : P1(7),P2(14),P3(21);
var : R1(0),R2(0),R3(0),TX(0);
R1 = RSI(P1);
R2 = RSI(P2);
R3 = RSI(P3);
Plot1(R1, "RSI1");
Plot2(R2, "RSI2");
Plot3(R3, "RSI3");
PlotBaseLine1(30, "기준선 30");
PlotBaseLine2(50, "기준선 50");
PlotBaseLine3(70, "기준선 70");
Condition1 = R1 > R2 and R2 > R3;
Condition2 = R1 < R2 and R2 < R3;
if Condition1 == true and Condition1 != Condition1[1] Then
{
TX = Text_New_Self(sDate,sTime,R3,"▲");
Text_SetStyle(TX,2,0);
Text_SetColor(TX,Red);
}
if Condition2 == true and Condition2 != Condition2[1] Then
{
TX = Text_New_Self(sDate,sTime,R3,"▼");
Text_SetStyle(TX,2,1);
Text_SetColor(TX,Blue);
}
.....................................................
1. 상기수식에서 삼각형 모양이 나올때 소리가 날수 있도록 수정 부탁드립니다
빨간색 삼각형은 -> 매수신호발생으로
파란색 삼각형은 -> 매도신호발생으로 각각 소리가 나올수 있도록 수정 부탁드립니다
(형식은 지표식인데 소리가 날 수 있도록)
2. 상기 수식을 데이타2용으로 수정 부탁드립니다
3. 상기수식을 시스템식으로 수정 부탁드립니다
감사합니다