답변완료
전환 부탁드립니다
키움 수식 변환 부탁드려요
1.
V > avg(V, Period) * Multiple
&&
V > V(1) * Multiple
&&
o<c
&&
c-o>(h-c)*1.2
Period 5
Multiple 3.0
라인설정 막대
2.
수식1
c>=c(1)*1.15
and v>=v(1)*몇배
and v>=거래량
and highest(H, HH,1)<C
수식2
c>=c(1)*1.2
and v>=v(1)*몇배
and v>=거래량
and highest(H, HH,1)<C
수식3
c>=c(1)*1.29
and v>=v(1)*몇배
and v>=거래량
and highest(H, HH,1)<C
몇배 10
거래량 1000000
HH 20
라인설정 막대 (Red Blue Green)
-----------------------------------------------
될수 있으면 1,2번에 맞는 검색식도 부탁드려요.
감사합니다.
2023-12-04
876
글번호 174576
지표
답변완료
수식수정 및 질문 드려요
안녕하세요?
수정 : 아래수식에서 캔들봉이 마감될때 진입이 될수있게 부탁드립니다.
질문1 : length가 어떤길이인지 알수있을까요?
질문2 : 두번째질문은, 현재 캔들30분봉이상으로 셋팅하여 거래를하면
실제거래와 성능보고서와 차이가 많이나서요.
주로 성능보고서 수익이 실제로는 손실인경우가 꽤있어요.
캔들주기가 길어서 그런것인지, 수식에 어떤문제가 있는건지 꼭 찾아야하는데 ㅠㅠ
혹시 전문가 분들이시니, 어떤원인일 것이다 라고 몇가지만이라도 말씀해주시면 참고하고 싶습니다.
감사합니다.
inputs: Length(10), Pval(0.05),당일청산(153000);
input : 익절틱수(10), 손절틱수(10), 진입횟수(3);
var : entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1 ;
if entry < 진입횟수 then Sell("CBI", AtStop, Lowest(Low, Length) - Pval);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
SetStopEndofday(당일청산);
2023-12-04
697
글번호 174573
시스템
답변완료
문의드립니다.
안녕하십니까? 날씨가 정말 추운데 이렇게 도움을 받을 곳이 있어서 따뜻한 느낌이 듭니다.
항상 건강 조심하시기 바랍니다.
질문) 아래 수식으로 돌파 자동매매를 해보고 있는데요 프로그램을 끄고 다시 켜면
돌파가 아니라 이미 돌파된 것들도 매수가 되더라고요
아래 수식에다가 이미 돌파된 것이 아니라 딱 crossup될 때만 매수가 될수 있게 구현 가능할까요?
input : length(21),hh(8),mult(2),k(2);
var : src(0),n(0),tx(0),sume(0),i(0),j(0),y2(0),sum(0),sumw(0),w(0),mae(0),A(0),A1(0),A2(0),A3(0);
src = Close;
n = barindex;
sume = 0;
for i = 0 to length-1
{
sum = 0;
sumw = 0;
for j = 0 to length-1
{
w = exp(-(pow(i-j,2)/(hh*hh*2)));
sum = sum+src[j]*w;
sumw = sumw+w;
}
y2 = sum/sumw;
sume = sume+abs(src[i] - y2);
}
mae = sume/length*mult;
A=y2;
A1=y2+mae;
A2=y2-mae;
input : keyvalue(1),atrperiod(10);
var : xATR(0),nLoss(0),xATRTrailingStop(0),pos(0),xcolor(0);
src = close ;
xATR = atr(atrperiod);
nLoss = keyvalue * xATR;
xATRTrailingStop = iff(src > xATRTrailingStop[1] and src[1] > xATRTrailingStop[1], max(xATRTrailingStop[1], src - nLoss),
iff(src < xATRTrailingStop[1] and src[1] < xATRTrailingStop[1], min(xATRTrailingStop[1], src + nLoss),
iff(src > xATRTrailingStop[1], src - nLoss, src + nLoss)));
pos = iff(src[1] < xATRTrailingStop[1] and src > xATRTrailingStop[1], 1,
iff(src[1] > xATRTrailingStop[1] and src < xATRTrailingStop[1], -1,pos[1]));
input : 기간(5);
var : Tema1(0),Tema2(0),Tema3(0),TemaM(0);
Tema1= EmA(close, 기간);
Tema2= EmA(Tema1, 기간);
Tema3= EmA(Tema2, 기간);
TemaM= 3 * Tema1 -3 * Tema2 + Tema3;
IF pos==1 && CROSSUP(TemaM,A1) && CROSSUP(xATRTrailingStop,A1) && C>O TheN
Find(1);
주봉매매를 해보더라도 이미 돌파된 것들이 매수되더라고요 ^^
항상 감사합니다.
2023-12-04
977
글번호 174570
검색