AutoFibAutoTrend 지표는 수평 피보나치 레벨의 색상과 값을 변경할 수 있는 기능을 제공합니다.
지표 입력 파라미터
//+------------------------------------------------+ //| 지표 입력 파라미터 | //+------------------------------------------------+ //---- ZigZag 입력 파라미터 input ENUM_TIMEFRAMES Timeframe=PERIOD_H6; // ZigZag 지표 계산을 위한 시간 프레임 input int ExtDepth=12; input int ExtDeviation=5; input int ExtBackstep=3; //---- 지표 표시 설정 input string Sirname="AutoFibAutoTrend"; // 지표 레이블의 이름 input bool ShowFib=true; input color FiboColor=clrGray; // 피보나치 색상 //---- input double FiboLevel1 = 0.0; // 피보나치 레벨 1의 값 input color Color_Level1 = clrRed; // 피보나치 레벨 1의 색상 input double FiboLevel2 = 0.236; // 피보나치 레벨 2의 값 input color Color_Level2 = clrDarkViolet; // 피보나치 레벨 2의 색상 input double FiboLevel3 = 0.382; // 피보나치 레벨 3의 값 input color Color_Level3 = clrOrange; // 피보나치 레벨 3의 색상 input double FiboLevel4 = 0.500; // 피보나치 레벨 4의 값 input color Color_Level4 = clrMagenta; // 피보나치 레벨 4의 색상 input double FiboLevel5 = 0.618; // 피보나치 레벨 5의 값 input color Color_Level5 = clrBlue; // 피보나치 레벨 5의 색상 input double FiboLevel6 = 1.000; // 피보나치 레벨 6의 값 input color Color_Level6 = clrRed; // 피보나치 레벨 6의 색상 input double FiboLevel7 = 1.236; // 피보나치 레벨 7의 값 input color Color_Level7 = clrDarkViolet // 피보나치 레벨 7의 색상 input double FiboLevel8 = 1.382 // 피보나치 레벨 8의 값 input color Color_Level8 = clrOrange // 피보나치 레벨 8의 색상 input double FiboLevel9 = 1.500 // 피보나치 레벨 9의 값 input color Color_Level9 = clrMagenta // 피보나치 레벨 9의 색상 input double FiboLevel10 = 1.618 // 피보나치 레벨 10의 값 input color Color_Level10 = clrBlue // 피보나치 레벨 10의 색상 input double FiboLevel11 = 2.000 // 피보나치 레벨 11의 값 input color Color_Level11 = clrRed // 피보나치 레벨 11의 색상 //---- input bool ShowFibFan=true; input color FibFanColor=clrMediumSeaGreen; input uint FibFanSize=1; //---- input bool ShowTrend=true; input color TrendColor=clrBlue; input uint TrendSize=5;
지표를 작동시키기 위해서는 <terminal_data_folder>\MQL5\Indicators에 컴파일된 지표 파일 ZigZag_NK_Color.ex5를 추가하세요.

Fig.1. ColorAutoFibAutoTrend 지표