답변완료
예스종목검색 및 시스템 매매 적용입니다.
항상 고맙고 감사드립니다...
아래수식은 키움에서 작성한 신호수식입니다..
1.예스트레이더 종목검색
2.예스트레이더 시스템 매매적용
위 2가지로 적용하고자 합니다..
변환부탁드립니다..
A=((((highest(high,longPeriod)+lowest(low,longPeriod
))/2
+BBandsUp(Period,D1))/2
+
((highest(high,longPeriod)+lowest(low,longPeriod))/2
+BBandsDown(Period,D1))/2)/2);
crossup(C,A)
**지표조건
- longPeriod 52
- Period 14
- D1 5
- shortPeriod 9
2024-09-06
696
글번호 183248
검색
답변완료
수고하십니다.
A=BBandsUp(20,2);
A1=BBandsDown(20,2);
A2=Eavg(C, 40);
A3=MA(C,50);
A4=Eavg(C, 15);
B=((RSI(R기간)- lowest(RSI(R기간),S기간)) / (highest(RSI(R기간),S기간)-(lowest(RSI(R기간),S기간))))*100;
(A2>=A3 OR A4>=A3) && (L<= A1*1.01 OR L(1)<= A1(1)*1.01) && (B<=20 OR B(1)<=20) && C>O
R기간 13
S기간 10
미리 감사드립니다
2024-09-06
633
글번호 183245
종목검색
답변완료
수식 문의 드립니다
아래의 수식 if data2(crossup(C,superTrend)) then buy();
if data2(crossdown(C,superTrend)) then exitlong();
매수진입 superTrend에 주가가 닿을때 매수진입 매수청산 superTrend에 주가가 닿을때 매수청산 되도록 수식 작성 부탁 드립니다.
( if MarketPosition == 0 and data2(h < superTrend) Then Buy("b",AtStop,superTrend);
위와 같이 작성 하니 실행이 안됩니다 //원하는 수식은 data2챠트에서 주가가
superTrend 아래에서 상승하여 data2의 superTrend에 닿을때 data1에서 매수 진입되고,
반대의 경우 매수 청산되도록 원합니다)
input : starttime(90500),endtime(150000),XTime(151500);
var : Tcond(false,Data2);
if Data2((sdate != sdate[1] and stime >= starttime) or
(sdate == sdate[1] and stime >= starttime and stime[1] < starttime)) then
{
Tcond = true;
}
if Data2((sdate != sdate[1] and stime >= endtime) or
(sdate == sdate[1] and stime >= endtime and stime[1] < endtime)) then
{
Tcond = false;
}
input : ntime(10),factor(3), AtrPeriod(10);
var : S1(0,Data2),D1(0,Data2),TM(0,Data2),TF(0,Data2),HH(0,Data2),LL(0,Data2),C1(0,Data2);
var : src(0,Data2), AtrV(0,Data2),ATRv1(0,Data2),upperBand(0,Data2),lowerBand(0,Data2), prevLowerBand(0,Data2), prevUpperBand(0,Data2);
var : prevSuperTrend(0,Data2), superTrend(0,Data2), direction(0,Data2),alpha(0,Data2),source(0,Data2);
if Bdate != Bdate[1] Then
{
S1 = data2(TimeToMinutes(stime));
D1 = data2(sdate);
}
if D1 > 0 then
{
if data2(sdate == D1) Then
TM = data2(TimeToMinutes(stime)-S1);
Else
TM = data2(TimeToMinutes(stime)+1440-S1);
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
HH = data2(H);
LL = data2(L);
C1 = data2(C[1]);
ATRV1 = ATRV[1];
prevSuperTrend = superTrend[1];
prevLowerBand = lowerBand[1];
prevUpperBand = upperBand[1];
}
if data2(H) > HH Then
HH = data2(H);
if data2(L) < LL Then
LL = data2(L);
src = (HH+LL)/2;
if C1 > 0 Then
{
alpha = 1 / AtrPeriod ;
source = max(HH - LL, abs(HH - C1), abs(LL - C1));
ATrV = alpha * source + (1 - alpha) * ATrV1;
upperBand = src + factor * AtrV;
lowerBand = src - factor * AtrV;
if lowerBand > prevLowerBand or C1 < prevLowerBand Then
lowerBand = lowerBand;
Else
lowerBand = prevLowerBand;
if upperBand < prevUpperBand or C1 > prevUpperBand Then
upperBand = upperBand;
Else
upperBand = prevUpperBand;
if prevSuperTrend == prevUpperBand Then
{
if data2(C) > upperBand Then
direction = -1;
Else
direction = 1;
}
Else
{
if data2(C) < lowerBand Then
direction = 1;
Else
direction = -1;
}
if direction == -1 Then
superTrend = lowerBand;
Else
superTrend = upperBand;
}
}
if Tcond == true then
{
if data2(crossup(C,superTrend)) then
buy();
if data2(crossdown(C,superTrend)) then
exitlong();
}
SetStopEndofday(XTime);
2024-09-06
858
글번호 183229
시스템