답변완료
문의 드립니다
input : StartTime(200000),EndTime(40000);
var : Tcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
Inputs: VtyPercent(0.05),ATRperiod(5);
If MarketPosition() <> 1 Then
Buy ("Vty_LE", AtStop, Close + (VtyPercent * ATR(ATRperiod)));
If MarketPosition() <> -1 Then
Sell ("Vty_SE)", AtStop, Close - (VtyPercent * ATR(ATRperiod)));
If MarketPosition() == 1 Then
Buy ("Vty_LE1", AtStop, Close + (VtyPercent * ATR(ATRperiod)));
If MarketPosition() == -1 Then
Sell ("Vty_SE1)", AtStop, Close - (VtyPercent * ATR(ATRperiod)));
늘 수고하십니다.
수식어 문의는 3가지 입니다.
1.
매매 청산시간 04시 30분
2.
진입신호후 손실 20틱일때 반대포지션으로 주문되는 수식어로
횟수 15회를 포함 하고 싶습니다.
3.
if문을 for문으로 변경
미리 감사드립니다.
2022-12-21
1142
글번호 164748
시스템
답변완료
시스템에서 반영이 않됩니다 봐주세요
안녕하세요!!
# 표시 줄을 삽입하였는데 시스템에서 반영되지 않아서요
다시한번 검토 부탁드립니다.
감사합니다^^
매도후 매수청산
진입조건
1. 고가가 5평선, 20평선, 볼린저밴드 이평선 보다 크고
종가가 5평선, 20평선, 볼린저밴드 이평보다 작고
5평선이 전5평선보다 작고
cci 시그날이 전 시그날 보다 작고
stod가 전 stod 보다 작다.
2. 시가가 5평보다 크고 종가가 5평보다 작고
5평선이 전5평선보다 작고
20평선이 전20평선보다 작고
볼린저밴드 이평이 볼린저밴드 전 이평보다 작다.
위와 같은 조건을 삽입하려 합니다.
if MarketPosition >= 0 and
# h > mav1 and h > mav2 and h > BBmd and
# c < mav1 and c < mav2 and c < BBmd and
# mav1 < mav1[1] and
# ccis < ccis[1] and
# stod < stod[1] and
# bbup < bbup[1] and
# c < o and
Scond1 == true Then
Sell("S");
if MarketPosition == -1 Then
{
if CountIf(C>mav1,2) == 2 and
(C[1] >= O[1] and C > O) Then
ExitShort("sx1");
if CCIV > CCIS and stok > stod Then
ExitShort("sx2");
if L <= bbdn and bbdn > bbdn[1] Then
ExitShort("sx3");
if bbmd-mav1 > 51 and C >= O Then
ExitShort("sx4");
if c >= BBmd Then
ExitShort("sx5");
}
}
2022-12-21
1129
글번호 164746
시스템