Fibo And ZigZag

此指标组合了三根MA(5,26,180)移动平均线,倒计时显示,趋势线,和在ZigZag基础上的修改版的斐波那契扩展线,使得画面一个指标展现多重技术画线。你可以根据三根移动均线判断阻力支撑和价格运动空间,利用趋势线判断价格运动方向,利用fibo线预测未来可能的目标,如果再结合多周期分析,你就能精准分析预测市场走向。是一款绝对好用的技术指标。

//+------------------------------------------------------------------+
//|                                                  Z字新指标_均线版.mq5
//|                                            Converted from MQL4 to MQL5
//+------------------------------------------------------------------+
#property copyright "汇股资讯·投资李哥"
#property link "https://one.exness-track.com/a/4a5u2ul7f0"
#property version "1.00"
#property indicator_chart_window

// 缓冲区总数(含计算缓冲区)
#property indicator_buffers 19
// 可视化图形数量
#property indicator_plots  17

//--- Plot 0: Zigzag
#property indicator_label1  "Zigzag"
#property indicator_type1   DRAW_NONE
#property indicator_color1  clrGreen

//--- Plot 1: 极限上
#property indicator_label2  "极限上"
#property indicator_type2   DRAW_NONE
#property indicator_color2  clrGreen

//--- Plot 2: 目标上
#property indicator_label3  "目标上"
#property indicator_type3   DRAW_NONE
#property indicator_color3  clrGreen

//--- Plot 3: 空单止损
#property indicator_label4  "空单止损"
#property indicator_type4   DRAW_NONE
#property indicator_color4  clrGreen

//--- Plot 4: 前高
#property indicator_label5  "前高"
#property indicator_type5   DRAW_NONE
#property indicator_color5  clrGreen

//--- Plot 5: 下破进空
#property indicator_label6  "下破进空"
#property indicator_type6   DRAW_NONE
#property indicator_color6  clrGreen

//--- Plot 6: 下破平多
#property indicator_label7  "下破平多"
#property indicator_type7   DRAW_NONE
#property indicator_color7  clrGreen

//--- Plot 7: 分界
#property indicator_label8  "分界"
#property indicator_type8   DRAW_NONE
#property indicator_color8  clrGreen

//--- Plot 8: 上破平空
#property indicator_label9  "上破平空"
#property indicator_type9   DRAW_NONE
#property indicator_color9  clrGreen

//--- Plot 9: 上破做多
#property indicator_label10 "上破做多"
#property indicator_type10  DRAW_NONE
#property indicator_color10 clrGreen

//--- Plot 10: 前底
#property indicator_label11 "前底"
#property indicator_type11  DRAW_NONE
#property indicator_color11 clrGreen

//--- Plot 11: 多单止损
#property indicator_label12 "多单止损"
#property indicator_type12  DRAW_NONE
#property indicator_color12 clrGreen

//--- Plot 12: 目标下
#property indicator_label13 "目标下"
#property indicator_type13  DRAW_NONE
#property indicator_color13 clrGreen

//--- Plot 13: 极限下
#property indicator_label14 "极限下"
#property indicator_type14  DRAW_NONE
#property indicator_color14 clrGreen

//--- Plot 14: MA5
#property indicator_label15 "MA5"
#property indicator_type15  DRAW_LINE
#property indicator_style15 STYLE_SOLID
#property indicator_width15 2
#property indicator_color15 clrRed

//--- Plot 15: MA26
#property indicator_label16 "MA26"
#property indicator_type16  DRAW_LINE
#property indicator_style16 STYLE_SOLID
#property indicator_width16 2
#property indicator_color16 clrCyan

//--- Plot 16: MA180
#property indicator_label17 "MA180"
#property indicator_type17  DRAW_LINE
#property indicator_style17 STYLE_SOLID
#property indicator_width17 2
#property indicator_color17 clrOrange

//--- 参数
input int InpDepth = 12;
input int InpDeviation = 5;
input int InpBackstep = 3;
input int RequiredWaveHeight=40;//波浪高度
input int MA_value1=5;
input int MA_value2=26;
input int MA_value3=180;
input int MA_Width=2;

input color Resistance_Color=clrGray;
input ENUM_LINE_STYLE Resistance_Style=STYLE_DASHDOT;
input int Resistance_Width=1;
input color Support_Color=clrGray;
input ENUM_LINE_STYLE Support_Style=STYLE_DASHDOT;
input int Support_Width=1;
input ENUM_TIMEFRAMES ZigFT=PERIOD_CURRENT;
input color Countdown_Color=clrWhite;

//--- 指标缓冲区(可视化)
double ExtZigzagBuffer[];
double buffer1[],buffer2[],buffer3[],buffer4[],buffer5[],buffer6[],buffer7[];
double buffer8[],buffer9[],buffer10[],buffer11[],buffer12[],buffer13[];
double MA5_Buffer[];
double MA26_Buffer[];
double MA180_Buffer[];

//--- 计算缓冲区(不可见)
double ExtHighBuffer[];
double ExtLowBuffer[];

//--- 普通数组
double LowerPrice_1_m15[];
double LowerPrice_2_m15[];
double UpperPrice_1_m15[];
double UpperPrice_2_m15[];
int Lower_1_m15[];
int Lower_2_m15[];
int Upper_1_m15[];
int Upper_2_m15[];
int ExtLevel=3;
bool downloadhistory = false;

enum DisplayPosition
  {
   CommentDisplay = 0, // 显示在评论栏
   ChartCorner = 1,    // 显示在图表角落
   NearPrice = 2,      // 显示在价格附近
  };
input DisplayPosition InpTimerPosition = NearPrice;      // 显示位置
input color InpTextColor = clrWhite;                     // 文字颜色
input int InpFontSize = 12;                              // 字号
input ENUM_ANCHOR_POINT InpAnchorPoint = ANCHOR_LEFT_LOWER; // 锚点
input ENUM_BASE_CORNER InpCornerPosition = CORNER_LEFT_LOWER; // 角落位置(仅ChartCorner模式)
input int OffsetKlines = 3;                             // 右移K线根数(NearPrice模式)
input int OffsetPoints = 30; 
string countdownLabel = "倒计时";  
//--- MA 和 ZigZag 指标句柄
int ma5_handle = INVALID_HANDLE;
int ma26_handle = INVALID_HANDLE;
int ma180_handle = INVALID_HANDLE;
int zigzag_handle = INVALID_HANDLE;

Filtro:
Sem comentários
Responder ao comentário