커뮤니티
수정부탁드립니다.
2016-10-10 20:46:46
134
글번호 102769
운영자님
감사합니다. 추가 조건식 적용 부탁드립니다.
1. 설정한 거래마감 시각에 보유한 물량에 대해서 청산되도록 부탁드립니다.
2. 아래식의 매수조건에 이격도(20) 가 101 이하일때만 매수되도록
추가 변경 부탁드립니다.
2. 20 이평선이 횡보를 보일때 진입이 안되도록 할 순 없나요?
수고하세요
input : 거래시간1(1), 시작시간1(150000), 끝시간1(045900);
input : P1(5),P2(20);
var : AA(0),BB(0);
if 거래시간1 == 1 then
condition3 = (stime>=시작시간1 or stime<=끝시간1);
Else if 거래시간1 == 2 then
condition3 = (stime>=시작시간1 and stime<=끝시간1);
Else
condition3 = true;
AA = ma(C,P1);
BB = ma(C,P2);
if MarketPosition == 0 and TotalTrades == TotalTrades[1] and
Condition3 == true and
BB > BB[1] and C < AA and C < BB and C < O Then
buy();
SetStopProfittarget(PriceScale*60,PointStop);
SetStopLoss(PriceScale*15,PointStop);
답변 2
예스스탁 예스스탁 답변
2016-10-11 09:39:36
안녕하세요
예스스탁입니다.
횡보와 같은 부분은 사용자분이 조건내용을 지정해 주셔야 합니다.
아래식에는 N개봉의 20이평 최고가가 최저가 대비 X틱이상 클때만 진입하게
작성해 드렸습니다.
input : 거래시간1(1), 시작시간1(150000), 끝시간1(045900);
input : P1(5),P2(20),N(20),X(10);
var : AA(0),BB(0),DD(0);
if 거래시간1 == 1 then
condition3 = (stime>=시작시간1 or stime<=끝시간1);
Else if 거래시간1 == 2 then
condition3 = (stime>=시작시간1 and stime<=끝시간1);
Else
condition3 = true;
AA = ma(C,P1);
BB = ma(C,P2);
DD = Disparity(P2);
if MarketPosition == 0 and TotalTrades == TotalTrades[1] and
Condition3 == true and
BB > BB[1] and C < AA and C < BB and C < O and
DD <= 101 and
highest(BB,N) >= Lowest(BB,N)+PriceScale*X Then
buy();
SetStopProfittarget(PriceScale*60,PointStop);
SetStopLoss(PriceScale*15,PointStop);
if stime == 끝시간1 or (stime > 끝시간1 and stime[1] < 끝시간1) Then{
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitShort();
}
즐거운 하루되세요
> 고박사122 님이 쓴 글입니다.
> 제목 : 수정부탁드립니다.
> 운영자님
감사합니다. 추가 조건식 적용 부탁드립니다.
1. 설정한 거래마감 시각에 보유한 물량에 대해서 청산되도록 부탁드립니다.
2. 아래식의 매수조건에 이격도(20) 가 101 이하일때만 매수되도록
추가 변경 부탁드립니다.
2. 20 이평선이 횡보를 보일때 진입이 안되도록 할 순 없나요?
수고하세요
input : 거래시간1(1), 시작시간1(150000), 끝시간1(045900);
input : P1(5),P2(20);
var : AA(0),BB(0);
if 거래시간1 == 1 then
condition3 = (stime>=시작시간1 or stime<=끝시간1);
Else if 거래시간1 == 2 then
condition3 = (stime>=시작시간1 and stime<=끝시간1);
Else
condition3 = true;
AA = ma(C,P1);
BB = ma(C,P2);
if MarketPosition == 0 and TotalTrades == TotalTrades[1] and
Condition3 == true and
BB > BB[1] and C < AA and C < BB and C < O Then
buy();
SetStopProfittarget(PriceScale*60,PointStop);
SetStopLoss(PriceScale*15,PointStop);
고박사122
2016-10-12 22:41:58
감사합니다.
아래 이격도, 익절틱수 , 손절틱수 부분을 직접 지정할 수 있도록 Input 수식에 넣어주세요
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수정부탁드립니다.
> 안녕하세요
예스스탁입니다.
횡보와 같은 부분은 사용자분이 조건내용을 지정해 주셔야 합니다.
아래식에는 N개봉의 20이평 최고가가 최저가 대비 X틱이상 클때만 진입하게
작성해 드렸습니다.
input : 거래시간1(1), 시작시간1(150000), 끝시간1(045900);
input : P1(5),P2(20),N(20),X(10);
var : AA(0),BB(0),DD(0);
if 거래시간1 == 1 then
condition3 = (stime>=시작시간1 or stime<=끝시간1);
Else if 거래시간1 == 2 then
condition3 = (stime>=시작시간1 and stime<=끝시간1);
Else
condition3 = true;
AA = ma(C,P1);
BB = ma(C,P2);
DD = Disparity(P2);
if MarketPosition == 0 and TotalTrades == TotalTrades[1] and
Condition3 == true and
BB > BB[1] and C < AA and C < BB and C < O and
DD <= 101 and
highest(BB,N) >= Lowest(BB,N)+PriceScale*X Then
buy();
SetStopProfittarget(PriceScale*60,PointStop);
SetStopLoss(PriceScale*15,PointStop);
if stime == 끝시간1 or (stime > 끝시간1 and stime[1] < 끝시간1) Then{
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitShort();
}
즐거운 하루되세요
> 고박사122 님이 쓴 글입니다.
> 제목 : 수정부탁드립니다.
> 운영자님
감사합니다. 추가 조건식 적용 부탁드립니다.
1. 설정한 거래마감 시각에 보유한 물량에 대해서 청산되도록 부탁드립니다.
2. 아래식의 매수조건에 이격도(20) 가 101 이하일때만 매수되도록
추가 변경 부탁드립니다.
2. 20 이평선이 횡보를 보일때 진입이 안되도록 할 순 없나요?
수고하세요
input : 거래시간1(1), 시작시간1(150000), 끝시간1(045900);
input : P1(5),P2(20);
var : AA(0),BB(0);
if 거래시간1 == 1 then
condition3 = (stime>=시작시간1 or stime<=끝시간1);
Else if 거래시간1 == 2 then
condition3 = (stime>=시작시간1 and stime<=끝시간1);
Else
condition3 = true;
AA = ma(C,P1);
BB = ma(C,P2);
if MarketPosition == 0 and TotalTrades == TotalTrades[1] and
Condition3 == true and
BB > BB[1] and C < AA and C < BB and C < O Then
buy();
SetStopProfittarget(PriceScale*60,PointStop);
SetStopLoss(PriceScale*15,PointStop);