帖子
作者
回复/查看
最后发表
2008-06-10 11:02
2008-06-10 10:59
2008-06-10 10:52
不是tick的那个交易量啊大佬
那次在您启发下,我看到均线的速度,那么由前面另一位lhch仁兄的顺势EA复盘过程中
我感觉价格的运动,特别是大周期,例如月价格的运动,真的与低速参照系下的运动方式好相似
今天在大巴上看了一路E/U的月图,有很多地方,似乎可以看出主力的方向与位置,通过价格运动加速度的简化模拟
我是超级菜鸟,所以有此一问,最关键的问题是,价格的惯性,如何产生的呢?难道是主力建仓后引导突破与顺势系统产生?
而每一次反转背后,加速度似乎都能说明一些问题,特别是当速度与加速度都为0的时候,或者加速度方向配合K线本身形状以及位置的时候,您把下面这个指标看下代码,用EU月线复下盘,给点启示好不好?劳驾:)
//+------------------------------------------------------------------+
//| MaSpeed.mq4 |
//| Copyright ?2006, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2006, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
#property indicator_separate_window
#property indicator_buffers 8
#property indicator_color1 MidnightBlue
#property indicator_width1 2
#property indicator_color2 DarkTurquoise
#property indicator_color3 Green
#property indicator_color4 Red
#property indicator_color5 White
#property indicator_color6 Red
#property indicator_color7 White
#property indicator_color8 Yellow
#property indicator_width8 1
#property indicator_level1 0
/*
#property indicator_level2 15
#property indicator_level3 30
#property indicator_level4 45
#property indicator_level5 60
#property indicator_level6 -15
#property indicator_level7 -30
#property indicator_level8 -45
*/
//---- input parameters
extern int SPeriod = 10;
extern int MPeriod = 3;
//---- buffers
double ExtMapBuffer0;
double ExtMapBuffer1;
double UpStrenth;
double DownStrenth;
double SumStrenth;
double UpMa;
double DownMa;
double DisMa;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(8);
SetIndexStyle(0,DRAW_HISTOGRAM,EMPTY,2);
SetIndexDrawBegin(0,1);
SetIndexBuffer(0,ExtMapBuffer0);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,119);
SetIndexDrawBegin(1,2);
SetIndexBuffer(1,ExtMapBuffer1);
SetIndexStyle(2,DRAW_NONE);
SetIndexDrawBegin(2,SPeriod+1);
SetIndexBuffer(2,UpStrenth);
SetIndexStyle(3,DRAW_NONE);
SetIndexDrawBegin(3,SPeriod+1);
SetIndexBuffer(3,DownStrenth);
SetIndexStyle(4,DRAW_NONE);
SetIndexArrow(1,119);
SetIndexDrawBegin(4,SPeriod+1);
SetIndexBuffer(4,SumStrenth);
SetIndexStyle(5,DRAW_LINE);
SetIndexDrawBegin(5,SPeriod+1+MPeriod);
SetIndexBuffer(5,UpMa);
SetIndexLabel(5,"UpMa");
SetIndexStyle(6,DRAW_LINE);
SetIndexDrawBegin(6,SPeriod+1+MPeriod);
SetIndexBuffer(6,DownMa);
SetIndexLabel(6,"DownMa");
SetIndexStyle(7,DRAW_NONE);
SetIndexDrawBegin(7,SPeriod+1+MPeriod);
SetIndexBuffer(7,DisMa);
SetIndexLabel(7,"DownMa");
IndicatorDigits(Digits+1);
IndicatorShortName("PriceSpeed");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit,k;
double up,down;
int counted_bars=IndicatorCounted();
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(int i=0; i0)
up += ExtMapBuffer1[k];
else
down += ExtMapBuffer1[k];
}
UpStrenth = up/SPeriod;
DownStrenth = -down/SPeriod;
SumStrenth = UpStrenth - DownStrenth;
}
for(i=0;i
2008-06-10 10:01
期待兄,请查收修改后的MaSpeed
参数:
P_MA: 均线周期
KPeriod: 步长,即取几个时间单位作为分母,这里时间是不分周期的
DPeriod:速度的再次SMA平均,做慢线
//+------------------------------------------------------------------+
//| MaSpeed.mq4 |
//| Copyright ?2006, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "SnowMan"
#property link "http://www.metaquotes.net"
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 DarkTurquoise
#property indicator_level1 0
/*
#property indicator_level2 15
#property indicator_level3 30
#property indicator_level4 45
#property indicator_level5 60
#property indicator_level6 -15
#property indicator_level7 -30
#property indicator_level8 -45
*/
//---- input parameters
extern int P_MA = 20;
extern int KPeriod = 2;
extern int DPeriod = 3;
//---- buffers
double ExtMapBuffer0;
double ExtMapBuffer1;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexDrawBegin(0,P_MA+KPeriod);
SetIndexBuffer(0,ExtMapBuffer0);
SetIndexStyle(1,DRAW_LINE);
SetIndexDrawBegin(1,P_MA+KPeriod+DPeriod);
SetIndexBuffer(1,ExtMapBuffer1);
IndicatorDigits(Digits+1);
IndicatorShortName("MaSpeed("+P_MA+","+KPeriod+","+DPeriod+")");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(int i=0; i
2008-06-07 13:37
2008-06-06 02:46
2008-06-03 09:14
以上都是在日图复盘,G/U
长期通道144,169,短期通道10,20四周上下都是20
速度指标有3个分别是(155,5,3)(20,2,3)(1,10,3)
stoch有2个,这个只起参考作用(10,3,3)(5,3,3)
通道参数都没有专门优化,其实用在周图好像效果更好呵呵
如果哪位大哥愿意使用模拟实时测试,请注意速度指标的颜色变化必须等这个bar走完根据高低才判断出来的,如果一定要提前知道,请去小点的周期参考,注意周期变化后参数设置的变化,这个俺也没仔细搞
忘了传市场时段的过滤器指标了,注意自己服务器的GMT,其实使用交易量看的更准
[ 本帖最后由 雪天 于 2008-5-30 16:37 编辑 ]TalkIndBlock.mq4
2008-05-30 08:03