답변완료
세로선 긋기에 대해 재질문드립니다
안녕하세요.
항상 수고가 많으십니다.
-----------------------------------------------------------
1분봉에서
현재가로 부터 12봉 이전 지점에 가로선을 긋고 싶습니다.
답변 :
input : N(12);
var : TL(0);
TL_Delete(TL);
TL_New(sDate[n],sTime[n],0,sDate[n],sTime[n],999999);
--------------------------------------------------------------------
작성하여 주신 수식대로 하였더니, 첨부 파일과 같이 그려집니다.
혹시, 세로선을 1개만 그릴 수는 없는지요.
항상 하시는 일에 좋은 결실 거두시기를 기원합니다.
2021-01-27
992
글번호 145844
지표
답변완료
수식변경 문의합니다.
아래 수식은 10봉(특정일) 전의 상한가 종목검색입니다.
10봉까지의 상한가 종목검색식으로 변경부탁합니다~~ 감사합니다^^
input : N(10);
var : 상한가(0), UpLimit(0);
var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0);
if date >= 19981207 then {
if date < 20050328 && CodeCategory() == 2 then
UpLimit = (BP[0] * 1.12);
Else if date >= 20050328 and date < 20150615 Then
UpLimit = (BP[0] * 1.15);
Else
UpLimit = (BP[0] * 1.30);
if CodeCategory() == 2 then
{
if date >= 20030721 then
{
up1 = int(UpLimit/100+0.00001)*100;
up2 = int(UpLimit/100+0.00001)*100;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/5+0.00001)*5;
up7 = int(UpLimit/1+0.00001)*1;
}
else
{
up1 = int(UpLimit/1000+0.00001)*1000;
up2 = int(UpLimit/500+0.00001)*500;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/10+0.00001)*10;
up7 = int(UpLimit/1+0.00001)*1;
}
}
Else
{
up1 = int(UpLimit/1000+0.00001)*1000;
up2 = int(UpLimit/500+0.00001)*500;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/5+0.00001)*5;
up7 = int(UpLimit/1+0.00001)*1;
}
if CodeCategory() == 1 || CodeCategory() == 2 then
{
if sdate < 20101004 Then
{
If BP >= 500000 Then
상한가 = up1;
Else If BP >= 100000 Then
상한가 = iff(up2>=500000, up1, up2);
Else If BP >= 50000 Then
상한가 = iff(up3>=100000, up2, up3);
Else If BP >= 10000 Then
상한가 = iff(up4>=50000, up3, up4);
Else If BP >= 5000 Then
상한가 = iff(up5>=10000, up4, up5);
Else If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up6);
}
Else
{
If BP >= 500000 Then
상한가 = up1;
Else If BP >= 100000 Then
상한가 = iff(up2>=500000, up1, up2);
Else If BP >= 50000 Then
상한가 = iff(up3>=100000, up2, up3);
Else If BP >= 10000 Then
상한가 = iff(up4>=50000, up3, up4);
Else If BP >= 5000 Then
상한가 = iff(up5>=10000, up4, up5);
Else If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up7);
}
}
else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF
상한가 = up6;
}
}
if H >= 상한가 Then
{
var1 = Index;
Var2 = Max (O,C);
}
if var1 > 0 and
Index == var1+n and
crossup(C,Var2) Then
Find(1);
2021-01-27
923
글번호 145832
종목검색
답변완료
부탁드립니다
#,안녕하세요. 아래수식 점검부탁드립니다.
수식검증에는 이상이 없는데 plot7,plot8 선이 출력이 안되고 있습니다, 어디가
잘못 되었는지 도움부탁드립니다.(원하는식은 중심과 고점의2등분선 과 중심과
저점의 2등분선 입니다)
var : Ov(0),Hv(0),Lv(0),MM(0);
if (stime == 80000 or (stime > 80000 and stime[1] < 80000)) or
(stime == 080000 or (stime > 080000 and stime[1] < 080000)) or
(stime == 170000 or (stime > 170000 and stime[1] < 170000)) or
(stime == 233000 or (stime > 233000 and stime[1] < 233000)) or
(stime == 070000 or (stime > 070000 and stime[1] < 070000)) Then{
Ov = O;
Hv = H;
Lv = L;
}
if H > Hv Then
Hv = H;
if L < Lv Then
Lv = L;
MM = (hv)+(lv)/2;
plot1(Ov,"o");
plot2(Hv,"h");
plot3(Lv,"l");
plot4(DayHigh,"D고");
plot5(DayLow,"D저");
plot6(((hv)+(lv))/2,"중심");
plot7(hv-(hv-MM)/2,"고반");
plot8(lv-(lv-MM)/2,"저반");
###,고맙습니다.
2021-01-27
717
글번호 145830
지표