답변완료
부탁 드립니다
input : 종목별기준시간(080000);
var : cnt(0);
Array : DO[20](0),DH[20](0),DL[20](0),DC[20](0);
if (sdate != sdate[1] and stime >= 종목별기준시간) or
(sdate == sdate[1] and stime >= 종목별기준시간 and stime[1] < 종목별기준시간) Then
{
DO[0] = dayopen; ##O;
DH[0] = dayhigh; ##H;
DL[0] = daylow; ##L;
DC[0] = DayClose; ##c;
for cnt = 1 to 19
{
DO[cnt] = DO[cnt-1][1];
DH[cnt] = DH[cnt-1][1];
DL[cnt] = DL[cnt-1][1];
DC[cnt] = DC[cnt-1][1];
}
}
DC[0] = DayClose[1]; ##c;
if dayhigh > DH[0] Then
DH[0] = dayhigh;
if daylow < DL[0] Then
DL[0] = daylow;
var:R1(0),R2(0),S1(0),S2(0);
value13 = (DH[1]+DL[1]+DC[1])/3;
R1 = 2*value13-DL[1];
R2 = value13+DH[1]-DL[1];
S1 = 2*value13-DH[1];
S2 = value13-DH[1]+DL[1];
이렇게 하면 value13, r1,r2,s1,s2 값이 갭보정 차트를 쓰나 안쓰나
값이 같이 나오게 해 주실수 있나요
2023-09-13
1144
글번호 172436
지표
답변완료
문의 드립니다
input : StartTime(203000),EndTime(53000);
input : 익절틱수(00),손절틱수(40);
var : Tcond(False),entry(0);
Variables: Mom(0);
Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
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 (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
{
Tcond = False;
}
if Tcond == true Then
{
if L ==lowest(L,3) and highest(H,3) >= lowest(L,3)+PriceScale*30 Then
{
Buy("b",AtStop,(highest(H,3)+lowest(L,3))/3);
}
if MarketPosition == 1 and BarsSinceEntry == 1 Then
ExitLong();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
매도 청산의 수식어로 변경을 부탁드립니다.
--------------------------------------
역망치캔들 다음 매도진입후 3캔들에 청산의 수식어를 부탁 드립니다.
2023-09-13
1073
글번호 172434
시스템
답변완료
문의드립니다!
안녕하세요!
아래수식에서 Plot1,2,3,4,5가 캔들과 만났을때 각각 세로선과 알람신호가 발생토록 부탁드립니다
* 1, 세로선의 두께와 색상은 사용자지정이 가능토록 해주시고
2, 세로선의 발생시점은 국선기준 만나기 3틱전에 발생토록 부탁드립니다
감사합니다111
-----------------------------------------------------------------------------------
input : 타주기분(30),n(10),nth(5);
var : S1(0),D1(0),TM(0),TF(0),cnt(0),OO(0),HH(0),LL(0),CC(0);
var : ii(0),i1(0),i2(0),tempmax(0),tempi(0);
Array : RR[200](0),MM[200](0),DI[50](0);
Array : tempRR[200](0),tempMM[200](0),NTHVALUE[200](0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%타주기분;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and 타주기분 > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and 타주기분 > 1 and TM >= TM[1]+타주기분) or
(Bdate == Bdate[1] and 타주기분 == 1 and TM > TM[1]) Then
{
ii = ii+1;
if Bdate != Bdate[1] Then
{
DI[0] = ii;
for cnt = 1 to 49
{
Di[cnt] = Di[cnt-1][1];
}
}
OO = O;
HH = H;
LL = L;
RR[0] = 0;
MM[0] = 0;
for cnt = 1 to 199
{
RR[cnt] = RR[cnt-1][1];
MM[cnt] = MM[cnt-1][1];
tempRR[cnt] = RR[cnt];
tempMM[cnt] = MM[cnt];
}
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
CC = C;
RR[0] = abs(OO-CC);
MM[0] = (OO+CC)/2;
tempRR[0] = RR[0];
tempMM[0] = MM[0];
if D1[n] > 0 Then
{
if Bdate != Bdate[1] Then
{
For i1 = 1 to nth
{
tempmax = -1;
For i2 = 1 to ii-DI[n]
{
if (tempRR[i2] >= tempmax ) then
{
tempmax = tempRR[i2];
tempi = i2;
}
}
NTHVALUE[i1] = tempMM[tempi];
tempRR[tempi] = -1;
}
}
Plot1(NTHVALUE[1]);
Plot2(NTHVALUE[2]);
Plot3(NTHVALUE[3]);
Plot4(NTHVALUE[4]);
Plot5(NTHVALUE[5]);
Plot6(NTHVALUE[1]);
Plot7(NTHVALUE[2]);
Plot8(NTHVALUE[3]);
Plot9(NTHVALUE[4]);
Plot10(NTHVALUE[5]);
}
}
2023-09-13
721
글번호 172417
지표
답변완료
수식문의
안녕하세요
문의) 재검색시에도 기존에 검색된 종목이 유지될 수 있도록 검토 부탁드립니다.
Input : P1(20),T1(92929),T2(93000),Mult1(1.03),Mult2(0.5),DV(100000),TV(1000000000);
Var : T(0),V1(0),V2(0),ii(0);
Var : Cnt(0),Sum(0),Mav(0),Hl(0),C1(0),BL(0);
Sum = 0;
For Cnt = 0 to P1-1
{
Sum = Sum + DayClose(Cnt);
}
Mav = Sum/P1;
if sDate != sDate[1] Then
Hl = C;
Else
{
if C > Hl Then
Hl = C;
}
if CrossUp(sTime,T1) Then
C1 = Hl[1];
if C1 > DayClose(1)*Mult1 Then
BL = C1;
if CrossUp(C,BL) and C > Open and C > DayOpen and
C >= Dayclose(1)*Mult1 and
C > Mav and
DayVolume(0) >= DV and
DayVolume(0) >= DayVolume(1)*Mult2 and
#M > TV and
Asks > Bids and
sTime >= T2 Then
Condition1 = true;
if Condition1 == true and C > O and C > Dayopen Then
Find(1);
2023-09-13
663
글번호 172416
종목검색