커뮤니티
주간선물OHLC
2019-10-15 09:20:13
212
글번호 132783
안녕하세요!!
지난번 cme OHLC 지표는 잘사용하고 있읍니다.
1.응용해서 주선 ohlc를 만들었는데 고가 저가 가 반응이 됐다 안됐다 합니다
2.cmeOHLC 와 주선OHLC를 함께사용하는 지표식이 됐으면 합니다.
수식검토 바랍니다.
Array : DO[10](0),DH[10](0),DL[10](0),DC[10](0);
if (sdate != sdate[1] and stime >= 90000) Or
(sdate != sdate[1] and stime >= 900000 and stime < 180000) Then{
DO[0] = O;
DH[0] = H;
DL[0] = L;
}
if stime >= 90000 and stime < 180000 then{
DC[0] = C;
if DH[0] > 0 and H > DH[0] Then
DH[0] = H;
if DL[0] > 0 and L < DL[0] Then
DL[0] = L;
}
plot1(NO[1]);
plot2(DH[0]);
plot3(DL[0]);
plot4(DC[0]);
수고하세요!!
답변 1
예스스탁 예스스탁 답변
2019-10-15 16:13:15
안녕하세요
예스스탁입니다.
var : cnt(0);
Array : DO[10](0),DH[10](0),DL[10](0),DC[10](0);
Array : NO[10](0),NH[10](0),NL[10](0),NC[10](0);
if (sdate != sdate[1] and stime >= 90000) Or
(sdate == sdate[1] and stime >= 900000 and stime[1] < 900000) Then
{
DO[0] = O;
DH[0] = H;
DL[0] = L;
for cnt = 1 to 9
{
DO[cnt] = DO[cnt-1][1];
DH[cnt] = DH[cnt-1][1];
DL[cnt] = DL[cnt-1][1];
DC[cnt] = DC[cnt-1][1];
}
}
if stime >= 90000 and stime < 180000 then
{
DC[0] = C;
if DH[0] > 0 and H > DH[0] Then
DH[0] = H;
if DL[0] > 0 and L < DL[0] Then
DL[0] = L;
}
if (sdate != sdate[1] and stime >= 90000) Or
(sdate == sdate[1] and stime >= 900000 and stime[1] < 900000) Then
{
NO[0] = O;
NH[0] = H;
NL[0] = L;
for cnt = 1 to 9
{
NO[cnt] = NO[cnt-1][1];
NH[cnt] = NH[cnt-1][1];
NL[cnt] = NL[cnt-1][1];
NC[cnt] = NC[cnt-1][1];
}
}
if stime >= 180000 or stime < 90000 then
{
NC[0] = C;
if NH[0] > 0 and H > NH[0] Then
NH[0] = H;
if NL[0] > 0 and L < NL[0] Then
NL[0] = L;
}
plot1(DO[0]);
plot2(DH[0]);
plot3(DL[0]);
plot4(DC[0]);
plot5(NO[0]);
plot6(NH[0]);
plot7(NL[0]);
plot8(NC[0]);
즐거운 하루되세요
> 불스아이 님이 쓴 글입니다.
> 제목 : 주간선물OHLC
> 안녕하세요!!
지난번 cme OHLC 지표는 잘사용하고 있읍니다.
1.응용해서 주선 ohlc를 만들었는데 고가 저가 가 반응이 됐다 안됐다 합니다
2.cmeOHLC 와 주선OHLC를 함께사용하는 지표식이 됐으면 합니다.
수식검토 바랍니다.
Array : DO[10](0),DH[10](0),DL[10](0),DC[10](0);
if (sdate != sdate[1] and stime >= 90000) Or
(sdate != sdate[1] and stime >= 900000 and stime < 180000) Then{
DO[0] = O;
DH[0] = H;
DL[0] = L;
}
if stime >= 90000 and stime < 180000 then{
DC[0] = C;
if DH[0] > 0 and H > DH[0] Then
DH[0] = H;
if DL[0] > 0 and L < DL[0] Then
DL[0] = L;
}
plot1(NO[1]);
plot2(DH[0]);
plot3(DL[0]);
plot4(DC[0]);
수고하세요!!