아래 시스템시간은 해외선물시간입니다
14:30에 당일진입청산후
14:30~15:00 에서신호가 발생하고 있습니다
수정부탁드립니다
그리고 당일익절 검증도 부탁드립니다.
#########################
##### 당일익절 설정 #####
#########################
input : 당일손익(100);
var : NP(0),PreNP(0),dayPL(0),DollerToTick(0);
NP = NetProfit;
if stime == 170000 or (stime > 150000 and stime[1] < 150000) then
PreNP = NP[1];
#당일 손익(포인트)
DayPL = NetProfit-PreNP ;
### 동일방향 재진입금지/전일 마지막신호와 무관하게 진입 ###
var : entrycnt(0);
if stime == 170000 or (stime > 170000 and stime[1] < 170000) Then # 현지시간_뉴욕 17:00 장시작 #
Entrycnt = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
Entrycnt = Entrycnt+1;
if (stime >= 170000 or stime < 15000) and (DayPL < 당일손익*PriceScale) Then { # 현지시간_뉴욕 17:00 장시작~익일 15:00 장종료
매매시스템
#당일청산#
if stime == 143000 or (stime > 143000 and stime[1] < 143000) Then{
exitlong("당일매수청산");
ExitShort("당일매도청산");
}
}
감사합니다
답변 1
예스스탁
예스스탁 답변
2016-03-30 11:51:47
안녕하세요
예스스탁입니다.
14시30분에 청산하므로
진입을 14시 30분 이전까지만 가능하게 하셔야 합니다.
전반적으로 수식내 시간설정이 잘못된 부분이 많습니다.
17시 시작 다음날 14시 30분 청산으로 보고 수정해 드립니다.
input : 당일손익(100);
var : NP(0),PreNP(0),dayPL(0),DollerToTick(0);
NP = NetProfit;
if stime == 170000 or (stime > 170000 and stime[1] < 170000) then
PreNP = NP[1];
#당일 손익(포인트)
DayPL = NetProfit-PreNP ;
## 동일방향 재진입금지/전일 마지막신호와 무관하게 진입 ###
var : entrycnt(0);
if stime == 170000 or (stime > 170000 and stime[1] < 170000) Then # 현지시간_뉴욕 17:00 장시작 #
Entrycnt = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
Entrycnt = Entrycnt+1;
if (stime >= 170000 or stime < 143000) and (DayPL < 당일손익*PriceScale) Then { # 현지시간_뉴욕 17:00 장시작~익일 15:00 장종료
매매시스템
}
#당일청산#
if stime == 143000 or (stime > 143000 and stime[1] < 143000) Then{
exitlong("당일매수청산");
ExitShort("당일매도청산");
}
즐거운 하루되세요
> 조민철 님이 쓴 글입니다.
> 제목 : 시스템 가동시간 검증
> 아래 시스템시간은 해외선물시간입니다
14:30에 당일진입청산후
14:30~15:00 에서신호가 발생하고 있습니다
수정부탁드립니다
그리고 당일익절 검증도 부탁드립니다.
#########################
##### 당일익절 설정 #####
#########################
input : 당일손익(100);
var : NP(0),PreNP(0),dayPL(0),DollerToTick(0);
NP = NetProfit;
if stime == 170000 or (stime > 150000 and stime[1] < 150000) then
PreNP = NP[1];
#당일 손익(포인트)
DayPL = NetProfit-PreNP ;
### 동일방향 재진입금지/전일 마지막신호와 무관하게 진입 ###
var : entrycnt(0);
if stime == 170000 or (stime > 170000 and stime[1] < 170000) Then # 현지시간_뉴욕 17:00 장시작 #
Entrycnt = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
Entrycnt = Entrycnt+1;
if (stime >= 170000 or stime < 15000) and (DayPL < 당일손익*PriceScale) Then { # 현지시간_뉴욕 17:00 장시작~익일 15:00 장종료
매매시스템
#당일청산#
if stime == 143000 or (stime > 143000 and stime[1] < 143000) Then{
exitlong("당일매수청산");
ExitShort("당일매도청산");
}
}
감사합니다