답변완료
playsound 관련 문의
수고 하십니다.
아래와 같이 playsound를 지정하였는데
조건 만족중에 동일한 기계음?만 띵띵....하고 나오고
조건 완성시[봉완성시] 지정한 알람 소리가 나지 않는 경우
무슨 문제일까요? [경로는 이상 없습니다...]
수고 하세요.....
######### PlaySound test
input : af(0.02), maxAF(0.2);
var91 = SAR(af,maxAF);
if var91 > C Then
Plot91(var91, "SAR",BLUE);
Else
Plot91(var91, "SAR",RED);
if crossup(C,var91) Then
PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav");
if CrossDown(c,var91) Then
PlaySound("C:₩예스트레이더₩data₩Sound₩accept.wav");
2022-05-17
1176
글번호 158916
지표
답변완료
질문드립니다
안녕하세요. 다음 수식은 1개의 본차트에 3개의 참조차트(data 2,3,4) 데이터의 당일시가, 전일고가, 전일 저가를 넣은 뒤 본차트의 가격이 참조차트의 총 9개 선에 닿을 시 음성신호가 나오도록 만든 것입니다. 아무 문제 없이 사용 중이구요.
그런데 여기에 전일종가/전일시가 를 추가하려했는데 분명히 제대로 넣은 것 같은데 음성신호가 제대로 나오질 않습니다. 그 두가지만 추가해주실 수 있으실까요?
감사합니다.
Plot1(Data2(OpenD(0)),"d2당일시가");
Plot2(Data2(highD(1)),"d2고가");
Plot3(Data2(lowD(1)),"d2저가");
Plot4(Data3(OpenD(0)),"d3당일시가");
Plot5(Data3(highD(1)),"d3고가");
Plot6(Data3(lowD(1)),"d3저가");
Plot7(Data4(OpenD(0)),"d4당일시가");
Plot8(Data4(highD(1)),"d4고가");
Plot9(Data4(lowD(1)),"d4저가");
var : O2(0,Data1),h2(0,Data1),l2(0,Data1);
var : O3(0,Data1),h3(0,Data1),l3(0,Data1);
var : O4(0,Data1),h4(0,Data1),l4(0,Data1);
O2 = Data2(OpenD(0));
H2 = Data2(highD(1));
L2 = Data2(lowD(1));
O3 = Data3(OpenD(0));
H3 = Data3(highD(1));
L3 = Data3(lowD(1));
O4 = Data4(OpenD(0));
H4 = Data4(highD(1));
L4 = Data4(lowD(1));
if (h >= O2 and h[1] < O2[1]) or (L <= O2 and L[1] > O2[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
if (h >= H2 and h[1] < H2[1]) or (L <= H2 and L[1] > H2[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
if (h >= L2 and h[1] < L2[1]) or (L <= L2 and L[1] > L2[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
if (h >= O3 and h[1] < O3[1]) or (L <= O3 and L[1] > O3[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
if (h >= H3 and h[1] < H3[1]) or (L <= H3 and L[1] > H3[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
if (h >= L3 and h[1] < L3[1]) or (L <= L3 and L[1] > L3[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
if (h >= O4 and h[1] < O4[1]) or (L <= O4 and L[1] > O4[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
if (h >= H4 and h[1] < H4[1]) or (L <= H4 and L[1] > H4[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
if (h >= L4 and h[1] < L4[1]) or (L <= L4 and L[1] > L4[1]) Then
PlaySound("C:₩NHTrader₩data₩Sound₩optionFIRST.wav");
2022-05-17
1186
글번호 158915
지표
답변완료
수식작성 부탁드립니다.
안녕하세요 운영자님,
디음의 지표는 Stochastic RSI Slow 입니다.
K선이 D선을 상향돌파시 매수
K선이 D선을 하향돌파시 매도로 시스템 신호 부탁드립니다.
###Stochastic RSI Slow
Input: period(20), period1(12), period2(12);
Var: K선(0), D선(0);
K선 = ema(((RSI(period) - Lowest(RSI(period),period)) / ((Highest(RSI(period),period)) - Lowest(RSI(period),period))),period1)*100 ;
D선 = ema(ema(((RSI(period) - Lowest(RSI(period),period)) / ((Highest(RSI(period),period)) - Lowest(RSI (period),period))),period1),period2)*100 ;
plot1(K선);
plot2(D선);
2022-05-16
1215
글번호 158913
시스템
답변완료
수식 문의드립니다
아래 수식은 어떤 수식으로 사용하는지 문의합니다(설명 부탁합니다)
if TotalTrades > TotalTrades[1] then
{
BXcond = false;
SXcond = false;
if (IsExitName("bl",0) == true or IsExitName("bp",0) == true or IsExitName("bx",0) == true or IsExitName("bx",0) == true) Then
BXcond = true;
if (IsExitName("sl",0) == true or IsExitName("sp",0) == true or IsExitName("sx",0) == true or IsExitName("sx",0) == true) Then
SXcond = true;
}
2022-05-16
1377
글번호 158911
사용자 함수
답변완료
수식문의드립니다.
항상수고하십니다. 다름이아니라
input : Length(5);
var : Hdate0(0), Hdate1(0), Htime0(0), Htime1(0), Hval(0), TL1(0);
var : Ldate0(0), Ldate1(0), Ltime0(0), Ltime1(0), Lval(0), TL2(0);
var1 = SwingHigh(1, H, Length, Length, Length*2+1);
var2 = SwingLow(1, L, Length, Length, Length*2+1);
if var1 == -1 Then
var1 = var1[1];
if Var2 == -1 Then
var2 = Var2[1];
if var1 <> var1[1] Then {
TL_delete(TL1);
Hdate0 = sdate;
Hdate1 = sDate[Length];
Htime0 = stime;
Htime1 = sTime[Length];
Hval = H[Length];
TL1 = TL_New(Hdate1, Htime1, Hval, Hdate0, Htime0, Hval);
}
TL_SetColor(TL1, MAGENTA);
TL_SetExtRight(TL1,true);
TL_SetSize(TL1,2);
if var2 <> var2[1] Then {
TL_delete(TL2);
Ldate0 = sdate;
Ldate1 = sDate[Length];
Ltime0 = stime;
Ltime1 = sTime[Length];
Lval = L[Length];
TL2 = TL_New(Ldate1, Ltime1, Lval, Ldate0, Ltime0, Lval);
}
TL_SetColor(TL2, GREEN);
TL_SetExtRight(TL2,true);
TL_SetSize(TL2,2);
# 그래프 종류 속성 점그래프
Plot1(var1,"swHigh",MAGENTA,0,4);
Plot2(var2,"swLow",GREEN,0,4);
Plot3(var1,"swHigh확장",MAGENTA,0,4);
Plot4(var2,"swLow확장",GREEN,0,4);
FixPlotShift(1,-Length);
FixPlotShift(2,-Length);
수식에서 스윙하이 스윙로우일때 가격표시와 함께 파동선표시를 할수있는지 문의드립니다.
2022-05-16
967
글번호 158909
지표