답변완료
문의합니다.
게시판에서 본 수식인데 시스템 수식을 종목검색식으로 바꾸려고 합니다.
스윙하이, 스윙로우로 박스권을 구한 후,
종가가 박스권을 상향 돌파하거나, 전저점 부근에 도달한 종목을 검색하려고 합니다.
1. 아래 수식에서 잘못된 점이 무엇인가요?
2. 스윙하이, 스윙로우의 반환되는 결과값이 무엇인가요?
input: LeftL(5), RightL(5), period(200);
var : k(0),HH(0),LL(0),MM(0),Xcond(False);
Array: swingH[5](0), swingL[5](0), cntH[5](0), cntL[5](0);​
for k = 1 to 4;
{
if swingHigh(k, C, LeftL, RightL, period) != -1 then
swingH[k] = C;
cntH = cntH +1;
if SwingLow(k, C, LeftL, RightL, period) then != -1 then
swingL[k] = C;
cntL = cntL +1;
}
if SwingH[3] > 0 and SwingL[3] > 0 Then
{
if max(swingH[2],swingH[3],swingH[4]) <= swingH[1] * 1.03 and
min(swingH[2],swingH[3],swingH[4]) >= swingH[1] * 0.97 and
max(swingL[2],swingL[3],swingL[4]) <= swingL[1] * 1.03 and
min(swingL[2],swingL[3],swingL[4]) >= swingL[1] * 0.97 Then
{
HH = SwingH[1];
LL = SwingL[1];;
}
if (CrossUp(C,HH) and abs(HH/LL-1) <= 0.15 and cntH>=2) or
(abs((C/LL)-1) <= 0.05 and abs(HH/LL-1) > 0.3 and cntL >=2) Then
Find(1);
2024-01-31
1023
글번호 176244
검색
답변완료
문의드립니다...
항상고맙고 감사합니다..
아래 1번)2번)3번) 수식은 예스트레이더 종목검색식인데, 여기에 추가적으로
1분봉상 캔들이 시가 아래(마이너스0.5~2%)에 있다가 시가를 막돌파하는 조건(우선조건)하고 and
(부조건)시가가격보다 플러스0.5%~2%상승한 곳에서 종목검색이 되도록 각각추가 해주시면 정말 감사하겠습니다..
1번)
var : A(0),A1(0);
A = DAYHIGH[1] - DAYLOW[1];
A1 = DAYOPEN()+A*0.5;
if CrossUp(C,A1) Then
Find(1);
2번)
var : A(0),B(0),BB(0),En(0),S(0),대금(0),X(0),Y(0),Z(0),전거래량(0);
A=ADX(11);
B=Accum(v*((Pow((C-L),2) - Pow((H-C),2))/(H-L)));
BB=BollBandUp(10,2);
En=EnvelopeUp(10,2);
S=(highest(high,26)+lowest(low,26))/2;
대금=V*(H+O+L+C)/4;
X=Accum(v);
if sDate != sDate[1] Then
{
Y=X[1];
전거래량=Z[1];
}
Z=X-Y;
if Highest(H,3)[1]<=C and
ma(C,5)>ma(C,20) and
ma(C,20)>ma(C,60) and
BB>En and
C>BB and
C>En and
A>A[1] and
C>S and
B>=B[1] and
V>V[1]*1.5 and
(대금>2000000000 or X>전거래량) Then
Find(1);
3번)
var : a(0);
a=((dayhigh(1)+daylow(1)+dayclose(1))/3)+(dayhigh(1)-daylow(1));
if crossup(c,a) Then
Find(1);
2024-01-31
1003
글번호 176243
종목검색
답변완료
부탁드립니다.
적용가능하도록 변형 부탁 드립니다.
length = input(10, minval=1, title="BB Periods")
dev = input(1, minval=0.0001, title="Deviations")
//MACD
fastLength = input(12, minval=1)
slowLength=input(26,minval=1)
signalLength=input(9,minval=1)
fastMA = ema(close, fastLength)
slowMA = ema(close, slowLength)
macd = fastMA - slowMA
//BollingerBands
Std = stdev(macd, length)
Upper = (Std * dev + (sma(macd, length)))
Lower = ((sma(macd, length)) - (Std * dev))
Band1 = plot(Upper, color=gray, style=line, linewidth=2,title="Upper Band")
Band2 = plot(Lower, color=gray, style=line, linewidth=2,title="lower Band")
fill(Band1, Band2, color=blue, transp=75,title="Fill")
mc = macd >= Upper ? lime:red
// Indicator
plot(macd, color=mc, style =circles,linewidth = 3)
zeroline = 0
plot(zeroline,color= orange,linewidth= 2,title="Zeroline")
2024-01-31
839
글번호 176242
지표
답변완료
시스템식 부탁드립니다.
항상 도움 주셔서 감사합니다.
요청 시스템식 :
매수의 경우
매수진입이후 진입가격 아래로 하락시 일정배수로 추가 매수진입 이후
전체 손익이 20틱 이상 수익 발생시 전체 청산하는 시스템식입니다.
단, 가격이 하락하여 추가 진입시 마지막 진입한 계약이 20틱 상승시
해당 계약만 익절청산 후 다시 일정배수로 진입하고 싶습니다.
아래 시스템식은 마지막 진입 계약이 20틱 익절 청산 된후
가격이 하락하면 재 진입시 기존 배수가 연속되어 진입 됩니다.
저는 익절청산 되었을 경우 배수가 마지막 배수에 이어서 진입 되었으면 합니다.
세부사항은 첨부이미지 참고 부탁드립니다.
종목 : 해외선물
input : Pst(1); // 매수,매도
input : multi(0.5);
input : gap(20),gapmulti(0.5), pt(20),sl(200),pt2(20);
var : vol(0),v1(0),t(0);
value1 = gap/PointValue;
value2 = pt/PointValue;
value3 = sl/PointValue;
#------------------------------------
# 매수 전략
#------------------------------------
if pst == 1 Then
{
if MarketPosition == 0 and TotalTrades == TotalTrades[1] Then
{
vol = 1;
Buy("b",OnClose,Def,vol);
}
if MarketPosition == 1 Then
{
if CurrentContracts > CurrentContracts[1] Then
{
v1 = CurrentContracts-CurrentContracts[1];
if MaxEntries == 1 Then
t = value1 ;
Else
t = t+Round(t*gapmulti,0);
}
vol = Round(v1+v1*multi,0);
Buy("bb",AtLimit,EntryPrice(0)-PriceScale*(value1*MaxEntries),vol);
ExitLong("bp",AtLimit,AvgEntryPrice+PriceScale*Value2);
}
}
#------------------------------------
# 매도 전략
#------------------------------------
if pst == -1 Then
{
if MarketPosition == 0 and TotalTrades == TotalTrades[1] Then
{
vol = 1;
Sell("s",OnClose,Def,vol);
}
if MarketPosition == -1 Then
{
if CurrentContracts > CurrentContracts[1] Then
{
v1 = CurrentContracts-CurrentContracts[1];
if MaxEntries == 1 Then
t = value1 ;
Else
t = t+Round(t*gapmulti,0);
}
vol = Round(v1+v1*multi,0);
Sell("ss",AtLimit,EntryPrice(0)+PriceScale*(value1*MaxEntries),vol);
ExitShort("sp",AtLimit,AvgEntryPrice-PriceScale*Value2);
}
}
#--------------------------------------------
SetStopProfittarget(pt2*PriceScale,PointStop);
2024-02-01
598
글번호 176241
시스템
답변완료
예스트레이더 종목검색식으로 작성요청합니다.
항상 답변주셔서 감사합니다...
아래수식은 키움에서 신호검색입니다.
이것을 예스트레이더 종목검색으로 작성부탁드립니다..
=======================================================
MID=MA(C,20);
MID1=MA(V,20);
dev = 2 * stdev(C,20);
dev1 = 2 * stdev(V,20);
RNG=ATR(20);
A=upperBB = MID + dev;
A1=lowerBB = MID - dev;
A2=VUPBB = MID1 + dev1;
A3=VDNBB = MID1 - dev1;
B=MID+1.5*RNG;
B1=MID-1.5*RNG;
A<B AND A1>B1 AND LRS(20)>0 AND
O<C
2024-01-30
900
글번호 176239
검색
답변완료
수식전환
아래 수식을 예스랭귀지로 전환 부탁드립니다
A= CountSince(CrossDown(OBV(),eavg(OBV(),9)), CrossUp(OBV(),eavg(OBV(),9)));
A==1 and CrossUp(OBV(),eavg(OBV(),9))
and OBV()>eavg(OBV(),9)and v>v(1)*2
2024-01-30
617
글번호 176236
강조