커뮤니티
시스템 관련 문의드립니다
2017-08-07 16:34:33
130
글번호 111864
더운 여름에 답변 감사합니다. 이전 답변에 대한 시스템 관련
재문의입니다.
=====================================================================
1. 1분봉부터 5분봉까지 모든 차트에서 볼린저밴드(20,2)안에 가격이동평균선
15/75/150/300이 모여있고, 1분봉 차트에서 A분에 새로나오는 캔들이 전봉보다
13틱 이상 상승(하락)하고 볼린저밴드 돌파(이탈)시 A+1분 시가매수하고
손절은 이전 A캔들의 저가에 ±3틱으로 잡는다. 익절은 20틱 청산
2. 1분봉에서 가격이동평균선이 골든(데드)크로스가 발생하고 2시간 이후에
다시 데드(골든)크로스가 나면서 1분봉에서 A분에 나오는 캔들이 이전 봉보다
10틱이상 상승(하락)했을때 A+1분에서 매수 진입 / 손절은 A분의 저가에±3틱 / 익절은 20틱 청산
3-1. A분에 나오는 새로운 캔들이 이전 캔들보다 10틱 이상 상승(하락)하면서 이동평균선
150선과 볼린저 밴드(20,2)를 동시에 (돌파)이탈할 경우 시장가 매수(매도) 손절은 이전
캔들의 고가(저가) ±3틱 / 익절은 15틱 청산
3-2. A분에 나오는 새로운 캔들이 이전 캔들보다 10틱 이상 상승(하락)하면서 이동평균선
300선과 볼린저 밴드(20,2)동시에 (돌파)이탈할 경우 시장가 매수(매도) 손절은 이전
캔들의고가(저가) ±3틱 / 익절은 15틱 청산
3-3. A분에 나오는 새로운 캔들이 이전 캔들보다 10틱 이상 상승(하락)하면서 이동평균선
150선과 300선을 동시에 돌파(하락)하면서 볼린저 밴드(20,2) 돌파(이탈)할 경우 시장가
매수(매도) 손절은 이전 캔들의고가(저가) ±3틱 / 익절은 15틱 청산
4-1. 전봉보다 거래량이 많고 20틱 이상 하락하며 볼린저밴드(20,2) 하단을 이탈하고, 종가가 300일선 밑에서 해당 캔들의 2/3가격 이상으로 마감했을때 이후 CCI(9) 지표가 100을 돌파했다가 80으로 하락했을 때 다음 캔들에서 시장가 매도 진입/ 손절은 12틱 / 익절은 18틱
4-2. 전봉보다 거래량이 많고 20틱 이상 상승하며 볼린저밴드(20,2) 상단을 돌파하고, 종가가 300일선 위에서 해당 캔들의 2/3가격 이상으로 마감했을때 이후 CCI(9) 지표가 -97을 돌파했다가 -60으로 상승했을 때 매수 진입 / 손절은 12틱 / 익절은 18틱
===========================================================================
주문이 많긴하지만 잘 부탁드리겠습니다
혹시 추가적으로 설명이 필요한 부분들은 말슴해주시면 차트로 표시해두겠습니다
답변 1
예스스탁 예스스탁 답변
2017-08-08 14:50:11
안녕하세요
예스스탁입니다.
1
1분차트에 2분,3분,4분,5분 데이터를 참조데이터로 추가하고 아래식 적용하시면 됩니다.
참조데이터는
input : BBP(20),dv(2),P1(15),P2(75),P3(150),P4(300);
var : BBup1(0,data1),BBdn1(0,data1),mav11(0,data1),mav12(0,data1),mav13(0,data1),mav14(0,data1);
var : BBup2(0,data2),BBdn2(0,data2),mav21(0,data2),mav22(0,data2),mav23(0,data2),mav24(0,data2);
var : BBup3(0,data3),BBdn3(0,data3),mav31(0,data3),mav32(0,data3),mav33(0,data3),mav34(0,data3);
var : BBup4(0,data4),BBdn4(0,data4),mav41(0,data4),mav42(0,data4),mav43(0,data4),mav44(0,data4);
var : BBup5(0,data5),BBdn5(0,data5),mav51(0,data5),mav52(0,data5),mav53(0,data5),mav54(0,data5);
BBup1 = data1(BollBandUp(BBP,dv));
BBdn1 = data1(BollBandDown(BBP,dv));
mav11 = data1(ma(C,P1));
mav12 = data1(ma(C,P2));
mav13 = data1(ma(C,P3));
mav14 = data1(ma(C,P4));
BBup2 = data2(BollBandUp(BBP,dv));
BBdn2 = data2(BollBandDown(BBP,dv));
mav21 = data2(ma(C,P1));
mav22 = data2(ma(C,P2));
mav23 = data2(ma(C,P3));
mav24 = data2(ma(C,P4));
BBup3 = data3(BollBandUp(BBP,dv));
BBdn3 = data3(BollBandDown(BBP,dv));
mav31 = data3(ma(C,P1));
mav32 = data3(ma(C,P2));
mav33 = data3(ma(C,P3));
mav34 = data3(ma(C,P4));
BBup4 = data4(BollBandUp(BBP,dv));
BBdn4 = data4(BollBandDown(BBP,dv));
mav41 = data4(ma(C,P1));
mav42 = data4(ma(C,P2));
mav43 = data4(ma(C,P3));
mav44 = data4(ma(C,P4));
BBup5 = data5(BollBandUp(BBP,dv));
BBdn5 = data5(BollBandDown(BBP,dv));
mav51 = data5(ma(C,P1));
mav52 = data5(ma(C,P2));
mav53 = data5(ma(C,P3));
mav54 = data5(ma(C,P4));
if bbup1 > max(mav11,mav12,mav13,mav14) and min(mav11,mav12,mav13,mav14) > BBdn1 and
bbup2 > max(mav21,mav22,mav23,mav24) and min(mav21,mav22,mav23,mav24) > BBdn2 and
bbup3 > max(mav31,mav32,mav33,mav34) and min(mav31,mav32,mav33,mav34) > BBdn3 and
bbup4 > max(mav41,mav42,mav43,mav44) and min(mav41,mav42,mav43,mav44) > BBdn4 and
bbup5 > max(mav51,mav52,mav53,mav54) and min(mav51,mav52,mav53,mav54) > BBdn5 then{
if data1(C>=C[1]+PriceScale*13 and crossup(C,BBup1)) Then
buy("b",AtMarket);
if data1(C<=C[1]-PriceScale*13 and CrossDown(C,BBdn1)) Then
sell("s",AtMarket);
}
if MarketPosition == 1 Then
exitlong("bx",AtStop,L[BarsSinceEntry+1]-PriceScale*3);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,H[BarsSinceEntry+1]+PriceScale*3);
SetStopProfittarget(PriceScale*20,PointStop);
2
input : P1(5),P2(20);
var : S1(0),D1(0),TM(0),TF(0),UD(0),UT(0),DD(0),DT(0);
var : mav1(0),mav2(0),T(0);
mav1 = ma(c,P1);
mav2 = ma(C,P2);
if bdate != bdate[1] Then{
S1 = TimeToMinutes(100000);
D1 = sdate;
}
if D1 > 0 then{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
if Crossup(mav1,mav2) Then{
T = 1;
UD = bdate;
UT = TM;
}
if CrossDown(mav1,mav2) Then{
T = -1;
DD = bdate;
DT = TM;
}
if T == -1 and DD == UD and DT >= UT+120 and C >= C[1]+PriceScale*10 Then
buy("b",AtMarket);
if T == 1 and UD == DD and UT >= DT+120 and C <= C[1]-PriceScale*10 Then
Sell("s",AtMarket);
if MarketPosition == 1 Then
exitlong("bx",AtStop,L[BarsSinceEntry+1]-PriceScale*3);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,H[BarsSinceEntry+1]+PriceScale*3);
SetStopProfittarget(PriceScale*20,PointStop);
}
3-1
input : BBP(20),Dv(2),P1(150);
var : mav1(0),bbup(0),bbdn(0);
BBup = BollBandUp(BBP,dv);
BBdn = BollBandDown(BBP,dv);
mav1 = ma(c,P1);
if C >= C[1]+PriceScale*10 and
crossup(c,mav1) and crossup(c,bbup) Then
buy("b");
if C <= C[1]-PriceScale*10 and
CrossDown(c,mav1) and CrossDown(c,bbdn) Then
sell("s");
if MarketPosition == 1 Then
exitlong("bx",AtStop,L[BarsSinceEntry+1]-PriceScale*3);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,H[BarsSinceEntry+1]+PriceScale*3);
SetStopProfittarget(PriceScale*15,PointStop);
3-2
input : BBP(20),Dv(2),P1(300);
var : mav1(0),bbup(0),bbdn(0);
BBup = BollBandUp(BBP,dv);
BBdn = BollBandDown(BBP,dv);
mav1 = ma(c,P1);
if C >= C[1]+PriceScale*10 and
crossup(c,mav1) and crossup(c,bbup) Then
buy("b");
if C <= C[1]-PriceScale*10 and
CrossDown(c,mav1) and CrossDown(c,bbdn) Then
sell("s");
if MarketPosition == 1 Then
exitlong("bx",AtStop,L[BarsSinceEntry+1]-PriceScale*3);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,H[BarsSinceEntry+1]+PriceScale*3);
SetStopProfittarget(PriceScale*15,PointStop);
3-3
input : BBP(20),Dv(2),P1(150),P2(300);
var : mav1(0),mav2(0),bbup(0),bbdn(0);
BBup = BollBandUp(BBP,dv);
BBdn = BollBandDown(BBP,dv);
mav1 = ma(c,P1);
mav2 = ma(C,P2);
if C >= C[1]+PriceScale*10 and
crossup(c,mav1) and crossup(c,mav2) and crossup(c,bbup) Then
buy("b");
if C <= C[1]-PriceScale*10 and
CrossDown(c,mav1) and CrossDown(c,mav2) and CrossDown(c,bbdn) Then
sell("s");
if MarketPosition == 1 Then
exitlong("bx",AtStop,L[BarsSinceEntry+1]-PriceScale*3);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,H[BarsSinceEntry+1]+PriceScale*3);
SetStopProfittarget(PriceScale*15,PointStop);
4-1
input : BBP(20),Dv(2),P1(300),CCIP(9);
var : mav1(0),bbup(0),bbdn(0),CCIv(0),T(0);
BBup = BollBandUp(BBP,dv);
BBdn = BollBandDown(BBP,dv);
mav1 = ma(c,P1);
CCIv = CCI(CCIP);
if CrossUp(C,BBdn) Then{
T = 1;
}
if CrossDown(C,BBdn) Then{
T = -1;
if C <= C[1]-PriceScale*20 and V > V[1] and C < mav1 and C <= H-(H-L)*(2/3) Then
T = -2;
}
if T == -2 and crossup(CCIv,100) Then
T = -3;
if T == -3 and CrossDown(CCIV,80) Then{
T = -4;
sell("s",AtMarket);
}
SetStopLoss(PriceScale*12,PointStop);
SetStopProfittarget(PriceScale*15,PointStop);
4-2
input : BBP(20),Dv(2),P1(300),CCIP(9);
var : mav1(0),bbup(0),bbdn(0),CCIv(0),T(0);
BBup = BollBandUp(BBP,dv);
BBdn = BollBandDown(BBP,dv);
mav1 = ma(c,P1);
CCIv = CCI(CCIP);
if CrossUp(C,BBdn) Then{
T = 1;
if C >= C[1]+PriceScale*20 and V > V[1] and C > mav1 and C >= L+(H-L)*(2/3) Then
T = 2;
}
if CrossDown(C,BBdn) Then{
T = -1;
}
if T == 2 and CrossDown(CCIv,-97) Then
T = 3;
if T == 3 and CrossUp(CCIV,-60) Then{
T = 4;
buy("b",AtMarket);
}
SetStopLoss(PriceScale*12,PointStop);
SetStopProfittarget(PriceScale*15,PointStop);
4-3 위 2개 합친수식
input : BBP(20),Dv(2),P1(300),CCIP(9);
var : mav1(0),bbup(0),bbdn(0),CCIv(0),T(0);
BBup = BollBandUp(BBP,dv);
BBdn = BollBandDown(BBP,dv);
mav1 = ma(c,P1);
CCIv = CCI(CCIP);
if CrossUp(C,BBdn) Then{
T = 1;
if C >= C[1]+PriceScale*20 and V > V[1] and C > mav1 and C >= L+(H-L)*(2/3) Then
T = 2;
}
if CrossDown(C,BBdn) Then{
T = -1;
if C <= C[1]-PriceScale*20 and V > V[1] and C < mav1 and C <= H-(H-L)*(2/3) Then
T = -2;
}
if T == 2 and CrossDown(CCIv,-97) Then
T = 3;
if T == -2 and crossup(CCIv,100) Then
T = -3;
if T == 3 and CrossUp(CCIV,-60) Then{
T = 4;
buy("b",AtMarket);
}
if T == -3 and CrossDown(CCIV,80) Then{
T = -4;
sell("s",AtMarket);
}
SetStopLoss(PriceScale*12,PointStop);
SetStopProfittarget(PriceScale*15,PointStop);
즐거운 하루되세요
> 백수공백 님이 쓴 글입니다.
> 제목 : 시스템 관련 문의드립니다
> 더운 여름에 답변 감사합니다. 이전 답변에 대한 시스템 관련
재문의입니다.
=====================================================================
1. 1분봉부터 5분봉까지 모든 차트에서 볼린저밴드(20,2)안에 가격이동평균선
15/75/150/300이 모여있고, 1분봉 차트에서 A분에 새로나오는 캔들이 전봉보다
13틱 이상 상승(하락)하고 볼린저밴드 돌파(이탈)시 A+1분 시가매수하고
손절은 이전 A캔들의 저가에 ±3틱으로 잡는다. 익절은 20틱 청산
2. 1분봉에서 가격이동평균선이 골든(데드)크로스가 발생하고 2시간 이후에
다시 데드(골든)크로스가 나면서 1분봉에서 A분에 나오는 캔들이 이전 봉보다
10틱이상 상승(하락)했을때 A+1분에서 매수 진입 / 손절은 A분의 저가에±3틱 / 익절은 20틱 청산
3-1. A분에 나오는 새로운 캔들이 이전 캔들보다 10틱 이상 상승(하락)하면서 이동평균선
150선과 볼린저 밴드(20,2)를 동시에 (돌파)이탈할 경우 시장가 매수(매도) 손절은 이전
캔들의 고가(저가) ±3틱 / 익절은 15틱 청산
3-2. A분에 나오는 새로운 캔들이 이전 캔들보다 10틱 이상 상승(하락)하면서 이동평균선
300선과 볼린저 밴드(20,2)동시에 (돌파)이탈할 경우 시장가 매수(매도) 손절은 이전
캔들의고가(저가) ±3틱 / 익절은 15틱 청산
3-3. A분에 나오는 새로운 캔들이 이전 캔들보다 10틱 이상 상승(하락)하면서 이동평균선
150선과 300선을 동시에 돌파(하락)하면서 볼린저 밴드(20,2) 돌파(이탈)할 경우 시장가
매수(매도) 손절은 이전 캔들의고가(저가) ±3틱 / 익절은 15틱 청산
4-1. 전봉보다 거래량이 많고 20틱 이상 하락하며 볼린저밴드(20,2) 하단을 이탈하고, 종가가 300일선 밑에서 해당 캔들의 2/3가격 이상으로 마감했을때 이후 CCI(9) 지표가 100을 돌파했다가 80으로 하락했을 때 다음 캔들에서 시장가 매도 진입/ 손절은 12틱 / 익절은 18틱
4-2. 전봉보다 거래량이 많고 20틱 이상 상승하며 볼린저밴드(20,2) 상단을 돌파하고, 종가가 300일선 위에서 해당 캔들의 2/3가격 이상으로 마감했을때 이후 CCI(9) 지표가 -97을 돌파했다가 -60으로 상승했을 때 매수 진입 / 손절은 12틱 / 익절은 18틱
===========================================================================
주문이 많긴하지만 잘 부탁드리겠습니다
혹시 추가적으로 설명이 필요한 부분들은 말슴해주시면 차트로 표시해두겠습니다
이전글