답변완료
피보나치 날짜 지정
input : Per1(23.6),Per2(38.2),Per3(50.0),Per4(61.8),Per5(76.4);
var : HH(0),LL(0),D1(0),T1(0);
var : TL1(0),TL2(0),TL3(0),TL4(0),TL5(0),TL6(0),TL7(0),TL8(0);
HH = DayHigh;
LL = daylow;
var1 = 10^(LOG10(HH)-(LOG10(HH)-LOG10(LL))*(Per1/100));
var2 = 10^(LOG10(HH)-(LOG10(HH)-LOG10(LL))*(Per2/100));
var3 = 10^(LOG10(HH)-(LOG10(HH)-LOG10(LL))*(Per3/100));
var4 = 10^(LOG10(HH)-(LOG10(HH)-LOG10(LL))*(Per4/100));
var5 = 10^(LOG10(HH)-(LOG10(HH)-LOG10(LL))*(Per5/100));
if CurrentDate == sDate Then
if Bdate != Bdate[1] Then
{
D1 = sDate;
T1 = sTime;
TL1 = TL_New(D1,T1,HH,NextBarSdate,NextBarStime,HH);
TL2 = TL_New(D1,T1,var1,NextBarSdate,NextBarStime,var1);
TL3 = TL_New(D1,T1,var2,NextBarSdate,NextBarStime,var2);
TL4 = TL_New(D1,T1,var3,NextBarSdate,NextBarStime,var3);
TL5 = TL_New(D1,T1,var4,NextBarSdate,NextBarStime,var4);
TL6 = TL_New(D1,T1,var5,NextBarSdate,NextBarStime,var5);
TL7 = TL_New(D1,T1,LL,NextBarSdate,NextBarStime,LL);
TL_SetColor(TL1,Magenta);
TL_SetColor(TL2,Orange);
TL_SetColor(TL3,Magenta);
TL_SetColor(TL4,Blue);
TL_SetColor(TL5,Magenta);
TL_SetColor(TL6,Orange);
TL_SetColor(TL7,Magenta);
}
Else
{
TL_SetBegin(TL1,D1,T1,HH);
TL_SetBegin(TL2,D1,T1,var1);
TL_SetBegin(TL3,D1,T1,Var2);
TL_SetBegin(TL4,D1,T1,Var3);
TL_SetBegin(TL5,D1,T1,Var4);
TL_SetBegin(TL6,D1,T1,var5);
TL_SetBegin(TL7,D1,T1,LL);
TL_SetEnd(TL1,Sdate,Stime,HH);
TL_SetEnd(TL2,Sdate,Stime,var1);
TL_SetEnd(TL3,Sdate,Stime,Var2);
TL_SetEnd(TL4,Sdate,Stime,Var3);
TL_SetEnd(TL5,Sdate,Stime,Var4);
TL_SetEnd(TL6,Sdate,Stime,var5);
TL_SetEnd(TL7,Sdate,Stime,LL);
}
Plot1 (Var3);
당일만 계산 표시되는 피보나치선을, 분봉에서 날짜를 지정하면 (input) 그날부터 날짜 수정할 때까지 여러날을 통합 계산해서 계속 전체적으로 표시.(당일을 여러날 전체 크기로)
감사합니다.
2024-12-20
501
글번호 186434
지표