커뮤니티
문의드립니다
2016-10-19 04:07:35
117
글번호 103063
1.
input : P(10);
var : MM(0),T(0);
MM = (highest(H,P)+lowest(L,P))/2;
if T == 0 and C > MM Then
T = 1;
if T == 0 and C < MM Then
T = -1;
if T == 1 and CrossDown(C,lowest(L,P)[1]) Then
T = 0;
if T == -1 and CrossUp(C,highest(H,P)[1]) Then
T = 0;
if T == 1 Then
PlotPaintBar(H,L,"강조",red);
if T == -1 Then
PlotPaintBar(H,L,"강조",blue);
앞전 글에서 남겨주신 수식들을 제가 직접조합하니...엉망진창이 되버리는군요..
하 염치불구 하고 이제 마지막으로 여쭈어뵙고
...문의가 없을듯합니다..
1번 위 강조식에서 빨간색 표시나는곳에 매수신호 파랑색 표시나는곳에 매도신호
1-1번 위 강조식에서 신호뜨고 난뒤 진입3계약 한뒤 익절 5틱,10틱 분활청산 추가
스위칭 날경우 일괄청산후 다시 신호발생
2번 위 강조식에서 빨간색 표시나는곳에 매수신호 파랑색 표시나오는곳에 매도신호
위 회색부분에서 그전(빨강이였다가 회색이 나오면 매수청산 매도청산은 그반대)
2-1번 위 강조식에서 2번 문의에다가 그대로 진입3계약 익절5틱,10틱분할청산 추가
스위칭 날경우 일괄청산후 다시 신호발생
위 4가지 시스템에 밑에 4가지가 다드러갔으면좋겠습니다 감사합니다
#아침9시부터 캔들봉의 색깔로 바로신호 발생
#오후3시 됬을경우 그날자 신호 자동청산발생
#국내선물같은경우 틱수로 하여 그날 제가원하는 당일 수익을 얻은후
그날 신호 강제청산 (예: 1틱가치 0.05 원하는수익 10틱 0.25)신호 더이상 발생금지
위 1틱가치를(당일수익) 외부변수 가능하게 해주셨으면합니다
항생지수 에도 같이 1틱가치를 이용하여 이용해보고싶습니다
# 아침9시부터 오후3시까지 시간설정
위부수정 가능하게 부탁좀드리겠습니다
답변 1
예스스탁 예스스탁 답변
2016-10-19 10:54:04
안녕하세요
예스스탁입니다.
1.
input : P(10),익절틱수1(5),익절틱수2(10),당일수익틱수(20),시작시간(90000),종료시간(150000);
var : MM(0),T(0);
var : NP(0),N1(0),Tcond(false),당일수익(0),Didx(0);
var : daypl(0),Xcond(false),Bcond(false),Scond(false);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
Tcond = true;
Xcond = false;
N1 = Np;
Didx = 0;
}
if stime == 종료시간 or (stime > 종료시간 and stime[1] < 종료시간) Then{
Tcond = false;
ExitLong("bx");
ExitShort("sx");
}
if TotalTrades > TotalTrades[1] and (IsExitName("bdp",1) == true or IsExitName("sdp",1) == true) Then
Xcond = true;
daypl = NP-N1;
당일수익 = PriceScale*당일수익틱수;
Didx = Didx+1;
MM = (highest(H,P)+lowest(L,P))/2;
if T == 0 and C > MM Then
T = 1;
if T == 0 and C < MM Then
T = -1;
if T == 1 and CrossDown(C,lowest(L,P)[1]) Then
T = 0;
if T == -1 and CrossUp(C,highest(H,P)[1]) Then
T = 0;
if Tcond == true and Xcond == false then{
if Didx == 1 and T == 1 Then
buy("b1",OnClose,def,1);
if Didx == 1 and T == -1 Then
sell("s1",OnClose,def,1);
if Didx >= 2 and T == 1 and T[1] != 1 Then
buy("b",OnClose,def,1);
if Didx >= 2 and T == -1 and T[1] != -1 Then
sell("s",OnClose,def,1);
}
if MarketPosition == 1 Then{
ExitLong("bdp",AtLimit,EntryPrice+당일수익-daypl);
}
if MarketPosition == -1 Then{
ExitShort("sdp",AtLimit,EntryPrice-당일수익+daypl);
}
2
input : P(10),익절틱수1(5),익절틱수2(10),당일수익틱수(20),시작시간(90000),종료시간(150000);
var : MM(0),T(0);
var : NP(0),N1(0),Tcond(false),당일수익(0),Didx(0);
var : daypl(0),Xcond(false),Bcond(false),Scond(false);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
Tcond = true;
Xcond = false;
N1 = Np;
Didx = 0;
}
if stime == 종료시간 or (stime > 종료시간 and stime[1] < 종료시간) Then{
Tcond = false;
ExitLong("bx");
ExitShort("sx");
}
if TotalTrades > TotalTrades[1] and (IsExitName("bdp",1) == true or IsExitName("sdp",1) == true) Then
Xcond = true;
daypl = NP-N1;
당일수익 = PriceScale*당일수익틱수;
Didx = Didx+1;
MM = (highest(H,P)+lowest(L,P))/2;
if T == 0 and C > MM Then
T = 1;
if T == 0 and C < MM Then
T = -1;
if T == 1 and CrossDown(C,lowest(L,P)[1]) Then
T = 0;
if T == -1 and CrossUp(C,highest(H,P)[1]) Then
T = 0;
if Tcond == true and Xcond == false then{
if Didx == 1 and T == 1 Then
buy("b1",OnClose,def,3);
if Didx == 1 and T == -1 Then
sell("s1",OnClose,def,3);
if Didx >= 2 and T == 1 and T[1] != 1 Then
buy("b",OnClose,def,3);
if Didx >= 2 and T == -1 and T[1] != -1 Then
sell("s",OnClose,def,3);
}
if MarketPosition == 1 Then{
ExitLong("bp1",atlimit,EntryPrice+PriceScale*익절틱수1,"",1,1);
ExitLong("bp2",atlimit,EntryPrice+PriceScale*익절틱수2,"",1,1);
ExitLong("bdp",AtLimit,EntryPrice+당일수익-daypl);
}
if MarketPosition == -1 Then{
ExitShort("sp1",atlimit,EntryPrice-PriceScale*익절틱수1,"",1,1);
ExitShort("sp2",atlimit,EntryPrice-PriceScale*익절틱수2,"",1,1);
ExitShort("sdp",AtLimit,EntryPrice-당일수익+daypl);
}
3
input : P(10),익절틱수1(5),익절틱수2(10),당일수익틱수(20),시작시간(90000),종료시간(150000);
var : MM(0),T(0);
var : NP(0),N1(0),Tcond(false),당일수익(0),Didx(0);
var : daypl(0),Xcond(false),Bcond(false),Scond(false);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
Tcond = true;
Xcond = false;
N1 = Np;
Didx = 0;
}
if stime == 종료시간 or (stime > 종료시간 and stime[1] < 종료시간) Then{
Tcond = false;
ExitLong("bx");
ExitShort("sx");
}
if TotalTrades > TotalTrades[1] and (IsExitName("bdp",1) == true or IsExitName("sdp",1) == true) Then
Xcond = true;
daypl = NP-N1;
당일수익 = PriceScale*당일수익틱수;
Didx = Didx+1;
MM = (highest(H,P)+lowest(L,P))/2;
if T == 0 and C > MM Then
T = 1;
if T == 0 and C < MM Then
T = -1;
if T == 1 and CrossDown(C,lowest(L,P)[1]) Then
T = 0;
if T == -1 and CrossUp(C,highest(H,P)[1]) Then
T = 0;
if Tcond == true and Xcond == false then{
if Didx == 1 and T == 1 Then
buy("b1",OnClose,def,1);
if Didx == 1 and T == -1 Then
sell("s1",OnClose,def,1);
if Didx >= 2 and T == 1 and T[1] != 1 Then
buy("b",OnClose,def,1);
if Didx >= 2 and T == -1 and T[1] != -1 Then
sell("s",OnClose,def,1);
}
if MarketPosition == 1 Then{
if T != 1 Then
ExitLong("bx1");
ExitLong("bdp",AtLimit,EntryPrice+당일수익-daypl);
}
if MarketPosition == -1 Then{
if T != -1 Then
ExitShort("sx1");
ExitShort("sdp",AtLimit,EntryPrice-당일수익+daypl);
}
4
input : P(10),익절틱수1(5),익절틱수2(10),당일수익틱수(20),시작시간(90000),종료시간(150000);
var : MM(0),T(0);
var : NP(0),N1(0),Tcond(false),당일수익(0),Didx(0);
var : daypl(0),Xcond(false),Bcond(false),Scond(false);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
Tcond = true;
Xcond = false;
N1 = Np;
Didx = 0;
}
if stime == 종료시간 or (stime > 종료시간 and stime[1] < 종료시간) Then{
Tcond = false;
ExitLong("bx");
ExitShort("sx");
}
if TotalTrades > TotalTrades[1] and (IsExitName("bdp",1) == true or IsExitName("sdp",1) == true) Then
Xcond = true;
daypl = NP-N1;
당일수익 = PriceScale*당일수익틱수;
Didx = Didx+1;
MM = (highest(H,P)+lowest(L,P))/2;
if T == 0 and C > MM Then
T = 1;
if T == 0 and C < MM Then
T = -1;
if T == 1 and CrossDown(C,lowest(L,P)[1]) Then
T = 0;
if T == -1 and CrossUp(C,highest(H,P)[1]) Then
T = 0;
if Tcond == true and Xcond == false then{
if Didx == 1 and T == 1 Then
buy("b1",OnClose,def,3);
if Didx == 1 and T == -1 Then
sell("s1",OnClose,def,3);
if Didx >= 2 and T == 1 and T[1] != 1 Then
buy("b",OnClose,def,3);
if Didx >= 2 and T == -1 and T[1] != -1 Then
sell("s",OnClose,def,3);
}
if MarketPosition == 1 Then{
if T != 1 Then
ExitLong("bx1");
ExitLong("bp1",atlimit,EntryPrice+PriceScale*익절틱수1,"",1,1);
ExitLong("bp2",atlimit,EntryPrice+PriceScale*익절틱수2,"",1,1);
ExitLong("bdp",AtLimit,EntryPrice+당일수익-daypl);
}
if MarketPosition == -1 Then{
if T != -1 Then
ExitShort("sx1");
ExitShort("sp1",atlimit,EntryPrice-PriceScale*익절틱수1,"",1,1);
ExitShort("sp2",atlimit,EntryPrice-PriceScale*익절틱수2,"",1,1);
ExitShort("sdp",AtLimit,EntryPrice-당일수익+daypl);
}
즐거운 하루되세요
> 곽민수 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 1.
input : P(10);
var : MM(0),T(0);
MM = (highest(H,P)+lowest(L,P))/2;
if T == 0 and C > MM Then
T = 1;
if T == 0 and C < MM Then
T = -1;
if T == 1 and CrossDown(C,lowest(L,P)[1]) Then
T = 0;
if T == -1 and CrossUp(C,highest(H,P)[1]) Then
T = 0;
if T == 1 Then
PlotPaintBar(H,L,"강조",red);
if T == -1 Then
PlotPaintBar(H,L,"강조",blue);
앞전 글에서 남겨주신 수식들을 제가 직접조합하니...엉망진창이 되버리는군요..
하 염치불구 하고 이제 마지막으로 여쭈어뵙고
...문의가 없을듯합니다..
1번 위 강조식에서 빨간색 표시나는곳에 매수신호 파랑색 표시나는곳에 매도신호
1-1번 위 강조식에서 신호뜨고 난뒤 진입3계약 한뒤 익절 5틱,10틱 분활청산 추가
스위칭 날경우 일괄청산후 다시 신호발생
2번 위 강조식에서 빨간색 표시나는곳에 매수신호 파랑색 표시나오는곳에 매도신호
위 회색부분에서 그전(빨강이였다가 회색이 나오면 매수청산 매도청산은 그반대)
2-1번 위 강조식에서 2번 문의에다가 그대로 진입3계약 익절5틱,10틱분할청산 추가
스위칭 날경우 일괄청산후 다시 신호발생
위 4가지 시스템에 밑에 4가지가 다드러갔으면좋겠습니다 감사합니다
#아침9시부터 캔들봉의 색깔로 바로신호 발생
#오후3시 됬을경우 그날자 신호 자동청산발생
#국내선물같은경우 틱수로 하여 그날 제가원하는 당일 수익을 얻은후
그날 신호 강제청산 (예: 1틱가치 0.05 원하는수익 10틱 0.25)신호 더이상 발생금지
위 1틱가치를(당일수익) 외부변수 가능하게 해주셨으면합니다
항생지수 에도 같이 1틱가치를 이용하여 이용해보고싶습니다
# 아침9시부터 오후3시까지 시간설정
위부수정 가능하게 부탁좀드리겠습니다
다음글
이전글