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");
PlotBaseLine4(40, "기준선 40");
PlotBaseLine5(60, "기준선 60");
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);
}
.................................................................
상기지표에서 R1선이 R2,R3선을 상향 돌파하면 매수신호를
R1선이 R2,R3선을 하향 돌파하면 매도신호를 나오게 해주세요
그리고 예비신호때 부터 경보음이 울리게 해주세요
감사합니다
답변 1
예스스탁
예스스탁 답변
2024-01-31 17:18:34
안녕하세요
예스스탁입니다.
소리출력함수(playsound)는 함수내에 지정한 경로의 wav파일이 구동됩니다.
아래는 예스트레이더에 기본으로 제공되는 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);
Condition1 = R1 > R2 and R2 > R3;
Condition2 = R1 < R2 and R2 < R3;
if Condition1 == true and Condition1 != Condition1[1] Then
{
Buy();
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
if Condition2 == true and Condition2 != Condition2[1] Then
{
Sell();
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
}
즐거운 하루되세요
> 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");
PlotBaseLine4(40, "기준선 40");
PlotBaseLine5(60, "기준선 60");
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);
}
.................................................................
상기지표에서 R1선이 R2,R3선을 상향 돌파하면 매수신호를
R1선이 R2,R3선을 하향 돌파하면 매도신호를 나오게 해주세요
그리고 예비신호때 부터 경보음이 울리게 해주세요
감사합니다