답변완료
수식문의드립니다
아래 수식을 타주기를 쓰지 않고 1분봉에서 10분봉 값을 나타내고 싶습니다.
/////////////////////////////////////////////////////////////////////////////
input : 기준선Period(13);
var : 평균가(0),기준선(0);
평균가 = (h+l)/2;
기준선 = 0;
if IsNaN(기준선[1]) == true Then
기준선 = ma(평균가,기준선Period);
Else
기준선 = (기준선[1]*(기준선Period-1) + 평균가)/기준선Period;
plot1(기준선,"기준선",BLUE,DEF,3);
/////////////////////////////////////////////////////////////////////////////
항상 감사드립니다
2020-02-03
419
글번호 135558
지표
답변완료
문의드립니다
input : ntime1(60),P(20);
var : S1(0),D1(0),TM(0),TF(0),cnt(0),TL1(0),TL2(0);
Array : HH[10](0),LL[10](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%ntime1;
if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then
{
TL_Delete(TL1);
TL_Delete(TL2);
HH[0] = c;
LL[0] = c;
for cnt = 1 to 9
{
Hh[cnt] = Hh[cnt-1][1]-PriceScale*2;
LL[cnt] = LL[cnt-1][1]+PriceScale*2;
}
if HH[1] > 0 and LL[1] > 0 then
{
TL1 = TL_New(sdate[1],stime[1],HH[1],sdate,stime,HH[1]);
TL2 = TL_New(sdate[1],stime[1],LL[1],sdate,stime,LL[1]);
TL_SetColor(TL1,GREEN);
TL_SetColor(TL2,YELLOW);
TL_SetSize(TL1,2);
TL_SetSize(TL2,2);
TL_SetExtRight(Tl1,true);
TL_SetExtRight(Tl2,true);
}
}
else
{
TL_SetEnd(TL1,sdate,stime,hh[1]);
TL_SetEnd(TL2,sdate,stime,LL[1]);
}
if c > HH[0] Then
HH[0] = c;
if c < LL[0] Then
LL[0] = c;
}
위수식으로 1분봉에 60분봉 전봉종가 +1틱으로 수정부탁드립니다~~미리감사드립니다
2020-02-03
365
글번호 135556
지표