답변완료
재문의 드립니다.
보내주신 서식으로 시뮬레이션을 했으나 생각과 다른 매매가 이루어져 다시 여쭙습니다.
다시 문의 드립니다.
1. 미국 미니 나스닥100 5분봉
2. 미국시간으로 19:30분에 시스템 시작
3. 미국시간으로 그 다음날 01:20분에 청산 (약 6시간만 매매, 그 외의 시간은 아무런 매매가 이루지지 않음)
4. 5분봉 기준으로 19:30분부터 3개의 봉이 지나고 4개째 봉부터 매수/매도 체결
input : StartTime(093000),EndTime(065500);
input: tt(150000);
var: chkP(3), reChkP(10), stopChk(20);
var: HH(0), LL(0), BS(0), SS(0);
var: dayChk(0);
var : Tcond(False),ii(0);
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);
}
}
if BarIndex == 0 then ClearDebug();
if bdate !=Bdate[1] Then
ii = 0;
Else
ii = ii +1;
if ii == chkP then
{
HH = Highest(Max(C,O), chkP+1);
LL = Lowest(Min(C,O), chkP+1);
#if date == 20240612 then messageLog("--HH %.2f, LL: %.2f", HH, LL);
}
#if High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then messageLog("HH %.2f, High: %.2f", HH, High);
if Tcond == true and
ii >= chkP
and Time < 95000
and sDate == NextBarSdate
and EntryDate(0) < Date
and EntryDate(1) < Date
Then {
Buy("B1", AtStop, HH);
Sell("S1", AtStop, LL);
}
//if dayChk == 0 and High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then {
// messageLog("HH %.2f, High: %.2f", HH, High);
// dayChk = 1;
//}
if ExitDate(1) == Date and Time < 150000 and Tcond == true
// and LatestEntryName(1) != "B2"
// and LatestEntryName(1) != "S2"
// and LatestEntryName(0) != "B2"
// and LatestEntryName(0) != "S2"
Then {
if ii < reChkP Then {
HH = Highest(Max(C,O), ii+1);
LL = Lowest(Min(C,O), ii+1);
}
Else {
HH = Highest(Max(C,O), reChkP);
LL = Lowest(Min(C,O), reChkP);
}
Buy("B2", AtStop, HH);
Sell("S2", AtStop, LL);
}
if (MarketPosition == 1) Then {
if ii < stopChk Then {
BS = Lowest(Min(C,O), ii+1);
}
Else {
BS = Lowest(Min(C,O), stopChk);
}
ExitLong("EL", AtStop, BS);
}
if (MarketPosition == -1) Then {
if ii < stopChk Then {
SS = Highest(Max(C,O), ii+1);
}
Else {
SS = Highest(Max(C,O), stopChk);
}
#messageLog(" SS %.2f", SS);
ExitShort("ES", AtStop, SS);
}
2025-01-02
525
글번호 186822
시스템
답변완료
수식작성 부탁요..
HC=(O+C+H+L)/4;
HR=sum(if(HC-HC(1)>0,HC-HC(1),0),9)/sum(if(HC-HC(1)>0,HC-HC(1),HC(1)-HC),9)*100;
HRS=eavg(HR(9),3);
CROSSdown(HR,HRS)
감사합니다.
2025-01-02
453
글번호 186818
종목검색
답변완료
수식수정요청
안녕하세요 늘 도움 감사합니다
아래의 수식에서 현재 진행 봉 시가에서 수평선과 가격이 나오도록 추가 부탁 드립니다.
var : TL1(0),TL2(0);
var : TX1(0),TX2(0);
if C > O Then
{
var1 = O;
TL_Delete(TL1);
TL1 = TL_New(sDate,sTime,var1,NextBarSdate,NextBarStime,var1);
TL_SetColor(TL1,Red);
TL_SetExtRight(TL1,true);
Text_Delete(TX1);
TX1 = Text_New(NextBarSdate,NextBarStime,var1,NumToStr(var1,2));
Text_SetStyle(TX1,0,0);
}
Else
{
Text_SetLocation(TX1,NextBarSdate,NextBarStime,var1);
}
if C < O Then
{
TL_Delete(TL2);
var2 = H;
TL2 = TL_New(sDate,sTime,var2,NextBarSdate,NextBarStime,var2);
TL_SetColor(TL2,Blue);
TL_SetExtRight(TL2,true);
Text_Delete(TX2);
TX2 = Text_New(NextBarSdate,NextBarStime,var2,NumToStr(var2,2));
Text_SetStyle(TX2,0,1);
}
Else
{
Text_SetLocation(TX2,NextBarSdate,NextBarStime,var2);
}
2025-01-02
487
글번호 186794
지표
답변완료
종목 검색 부탁드립니다.
키움 수식입나다
종목 검색식 부탁드립니다
조건=highest(C(1),9) < C && Crossup(CCI(9),0);
조건1=
A=ADX(14);
M=ma(C,20);
R=RSI(14);
대금=V*(H+O+L+C)/4;
A>20 and A>A(1) and
C>O and C>M and
대금>2000000000 and
R>0 and R>R(1) and
Crossup(CCI(20),0) and
Crossup(DIPLUS(14),DIMinus(14));
조건2=
crossup(cci(20),0)
&& crossup(diplus(14),
diminus(14))
&& V>V(1)*2;
조건 && 조건1 && 조건2
2025-01-02
490
글번호 186785
종목검색
답변완료
시스템 서식 부탁드립니다.
안녕하세요
항상 감사드립니다.
미국의 선물 거래를 위한 시스템입니다.
아래의 서식에서 추가 조건을 넣어주시면 감사하겠습니다.
한국투자증권 이글로벌 예스트레이너를 사용중입니다.
추가조건
1. 매일 미국 시간 기준 09:30분 부터 시작
2. 매일 청산 (미국 시간기준 07:00)
*선물에 따라 시간은 제가 유동적을 변경하면서 사용 예정
*5분봉 기준
input: tt(150000);
var: chkP(5), reChkP(10), stopChk(20);
var: HH(0), LL(0), BS(0), SS(0);
var: dayChk(0);
if BarIndex == 0 then ClearDebug();
if dayindex == chkP then {
HH = Highest(Max(C,O), chkP+1);
LL = Lowest(Min(C,O), chkP+1);
#if date == 20240612 then messageLog("--HH %.2f, LL: %.2f", HH, LL);
}
#if High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then messageLog("HH %.2f, High: %.2f", HH, High);
if DayIndex >= chkP
and Time < 95000
and sDate == NextBarSdate
and EntryDate(0) < Date
and EntryDate(1) < Date
Then {
Buy("B1", AtStop, HH);
Sell("S1", AtStop, LL);
}
//if dayChk == 0 and High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then {
// messageLog("HH %.2f, High: %.2f", HH, High);
// dayChk = 1;
//}
if ExitDate(1) == Date
and Time < 150000
// and LatestEntryName(1) != "B2"
// and LatestEntryName(1) != "S2"
// and LatestEntryName(0) != "B2"
// and LatestEntryName(0) != "S2"
Then {
if DayIndex < reChkP Then {
HH = Highest(Max(C,O), DayIndex+1);
LL = Lowest(Min(C,O), DayIndex+1);
}
Else {
HH = Highest(Max(C,O), reChkP);
LL = Lowest(Min(C,O), reChkP);
}
Buy("B2", AtStop, HH);
Sell("S2", AtStop, LL);
}
if (MarketPosition == 1) Then {
if DayIndex < stopChk Then {
BS = Lowest(Min(C,O), DayIndex+1);
}
Else {
BS = Lowest(Min(C,O), stopChk);
}
ExitLong("EL", AtStop, BS);
}
if (MarketPosition == -1) Then {
if DayIndex < stopChk Then {
SS = Highest(Max(C,O), DayIndex+1);
}
Else {
SS = Highest(Max(C,O), stopChk);
}
#messageLog(" SS %.2f", SS);
ExitShort("ES", AtStop, SS);
}
SetStopEndofday();
2025-01-02
542
글번호 186784
시스템