Murrey Math Line X MT4 MT5指标[MT5公式]
2013-03-03 00:28阅读:
此种指标适用于MT4和MT5平台。
Murrey Math Line X MetaTrader 指标 —
a一种枢轴线指标,可帮助交易商了解如何使用支撑、阻力和枢轴线进行交易。它在主图表上显示8种不同的线(使用附加线),可帮您找出最佳的卖、买点和离场位置。
输入参数:
P (默认 = 64) —
用以计算此线的天数或其它时段(通过MMPeriod设置)。此数字越小,更新越快,但计算的准确性越低。
MMPeriod (默认 = 1440) — 以分钟计算的一种基本时段(60 —小时枢轴点,1440
—日枢轴点,10080 —周枢轴点,43200
—月枢轴点);如果大于零,指标将使用MMPeriod分钟的总数P计算此线。如果等于零,那么指标将使用当前图表天数的总数P计算此线。
StepBack (默认 = 0) —
一种向后的偏移,用以计算此线(在当前天数或在MMPeriod(如果设置了)分钟的数值)。
其它参数 — 仅能影响此线的可视化参数。
Murrey Math Line X指标简单易用。0/8P和8/8P线是最后的阻力和支撑线 —
很难被突破。1/8P和7/8P线是较弱的支撑和阻力线,但如果价格在止于其附近,则会反转,更改方向。2/8P和6/8P线是很强的反转点。3/8P和5/8P分别是平均交易范围的底部和顶部;价格很可能会快速刺穿这一范围或仍长时间在范围内波动。4/8P是一个主要的支撑和阻力线;当价格穿过一定程度的时候可卖或买。蓝色箭头标记的是最终的计算日。
标签:MT4 MT5指标源码
MT4 指标源码
//+------------------------------------------------------------------+
//|
Murrey_Math_Line_X.mq4 |
//|
Copyright � 2004, Vladislav Goshkov (VG).|
//|
www.cxh99.com |
//|
code change by Alex.Piech.FinGeR |
//+------------------------------------------------------------------+
#property copyright "Vladislav Goshkov (VG) &&
Alex.Piech.FinGeR"
#property link "4vg@mail.ru
&& regnif@gmx.net"
#property indicator_chart_window
//
============================================================================================
// * Line 8/8 � 0/8 (Ultimate Support and Ultimate
Resistance).
// * Those lines are the most strong concerning Support and
esistance.
//
============================================================================================
//* Line 7/8 (Weak, Place to Stop and Reverse).
//* This line is weak. If suddenly the price was going too fast and
too far and stops around this line
//* it means the price will reverse down very soon. If the price
did not stop near this line this price
//* will continue the movement to the line 8/8.
//
============================================================================================
//* Line 1/8 (Weak, Place to Stop and Reverse).
//* This line is weak. If suddenly the price was going too fast and
too far and stops around this line
//* it means the price will reverse up very soon. If the price did
not stop near this line this price
//* will continue the movement down to the line 0/8.
//
============================================================================================
//* Line 2/8 and 6/8 (Pivot, Reverse)
//* Those two lines yield the line 4/8 only to the strength to
reverse the price movement.
//
============================================================================================
//* Line 5/8 (Top of Trading Range)
//* The price is spending the about 40% of the time on the movement
between the lines 5/8 and 3/8.
//* If the price is moving near line 5/8 and stopping near the line
during the 10 - 12 days so it means
//* that it is necessary to sell in this "bonus zone" (some people
are doing like this) but if the price is keeping the tendency to
stay above
//* 5/8 line, so it means that the price will be above. But if the
price is droping below 5/8 line it means that the price will
continue
//* falling to the next level of resistance.
//
============================================================================================
//* Line 3/8 (Bottom of Trading Range).
//* If the price is below this line and in uptrend it means that it
will be very difficult for the price to break this level.
//* If the price broke this line during the uptrend and staying
above during the 10 12 days it means that the price will be above
this line
//* during the 40% of its time moving between this line and 5/8
line.
//
============================================================================================
//* Line 4/8 (Major Support/Resistance Line).
//* It is the major line concerning support and resistance. This
leve is the better for the new sell or buy.
//* It is the strong level of support of the price is above 4/8. It
is the fine resistance line if the price is below this 4/8
line.
//* 耦镳铗桠脲龛.
//
============================================================================================
extern int P = 64;
extern int MMPeriod = 1440;
extern int StepBack = 0;
extern color mml_clr_m_2_8 =
White; // [-2]/8
extern color mml_clr_m_1_8 =
White; // [-1]/8
extern color mml_clr_0_8 =
Aqua; //
[0]/8
extern color mml_clr_1_8 =
Yellow; // [1]/8
extern color mml_clr_2_8 =
Red; //
[2]/8
extern color mml_clr_3_8 =
Green; // [3]/8
extern color mml_clr_4_8 =
Blue; //
[4]/8
extern color mml_clr_5_8 =
Green; // [5]/8
extern color mml_clr_6_8 =
Red; //
[6]/8
extern color mml_clr_7_8 =
Yellow; // [7]/8
extern color mml_clr_8_8 =
Aqua; //
[8]/8
extern color mml_clr_p_1_8 =
White; // [+1]/8
extern color mml_clr_p_2_8 =
White; // [+2]/8
extern int mml_wdth_m_2_8 =
2; // [-2]/8
extern int mml_wdth_m_1_8 =
1; // [-1]/8
extern int mml_wdth_0_8 =
1; // [0]/8
extern int mml_wdth_1_8 =
1; // [1]/8
extern int mml_wdth_2_8 =
1; //
[2]/8
extern int mml_wdth_3_8 =
1; // [3]/8
extern int mml_wdth_4_8 =
1; // [4]/8
extern int mml_wdth_5_8 =
1; // [5]/8
extern int mml_wdth_6_8 =
1; //
[6]/8
extern int mml_wdth_7_8 =
1; // [7]/8
extern int mml_wdth_8_8 =
1; // [8]/8
extern int mml_wdth_p_1_8 =
1; // [+1]/8
extern int mml_wdth_p_2_8 =
2; // [+2]/8
extern color MarkColor = Blue;
extern int MarkNumber = 217;
double dmml = 0,
dvtl = 0,
sum = 0,
v1 = 0,
v2 = 0,
mn = 0,
mx = 0,
x1 = 0,
x2 = 0,
x3 = 0,
x4 = 0,
x5 = 0,
x6 = 0,
y1 = 0,
y2 = 0,
y3 = 0,
y4 = 0,
y5 = 0,
y6 = 0,
octave = 0,
fractal = 0,
range =
0,
finalH = 0,
finalL = 0,
mml[13];
string
ln_txt[13],
buff_str = "";
int
bn_v1 =
0,
bn_v2 =
0,
OctLinesCnt = 13,
mml_thk = 8,
mml_clr[13],
mml_wdth[13],
mml_shft = 35,
nTime = 0,
CurPeriod = 0,
nDigits = 0,