[MT4指标]再次麻烦秃鹫老师编个方向转折指标
2楼 
预估转折价之计算:
设明天收盘为R,则明天3-6DMA欲转折必须和今天之3-6DMA相等
以此原理可以列式子解得未来三天转折价R‧R1‧R2 分述如下
(c+c1+c2)/3-(c+c1+c2+c3+c4+c5)/6=(R+c+c1)/3-(R+c+c1+c2+c3+c4)/6 R=2xC[3]-C[6] (即2x前三日收盘价-前六日收盘价)
-----------------> R1=2xC[2]-C[5] (即2x前二日收盘价-前五日收盘价) R2=2xC[1]-C[4] (即2x前一日收盘价-前四日收盘价) 万分感谢秃鹫老师帮忙........:handshake :handshake :handshake
设明天收盘为R,则明天3-6DMA欲转折必须和今天之3-6DMA相等
以此原理可以列式子解得未来三天转折价R‧R1‧R2 分述如下
(c+c1+c2)/3-(c+c1+c2+c3+c4+c5)/6=(R+c+c1)/3-(R+c+c1+c2+c3+c4)/6 R=2xC[3]-C[6] (即2x前三日收盘价-前六日收盘价)
-----------------> R1=2xC[2]-C[5] (即2x前二日收盘价-前五日收盘价) R2=2xC[1]-C[4] (即2x前一日收盘价-前四日收盘价) 万分感谢秃鹫老师帮忙........:handshake :handshake :handshake
韬客社区www.talkfx.co
发表于:2008-10-01 09:47只看该作者
3楼 
#property  indicator_separate_window
#property  indicator_buffers 1
#property  indicator_color1  Yellow
double     Buffer;
void init()  {
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,Buffer);
  }
void start()  {
   int limit;
   int counted_bars=IndicatorCounted();
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   for(int i=0; i
顺势
4楼 
秃鹫老师您好:
一.本指标要跟k线叠加比较好研判。
二.R,R1,R2数值是放置在明日,后日,大后日,即未来三根k线之位置。如图红色线R,R1,R2之部份。
麻烦秃鹫老师修改一下。谢谢!
韬客社区www.talkfx.co
5楼 

韬客社区www.talkfx.co
6楼 

韬客社区www.talkfx.co
发表于:2008-10-02 02:53只看该作者
7楼 
 #property indicator_chart_window
extern color  Color   = Red;
void init() {
   for(int t=1;t<=3;t++)  {
      ObjectCreate("dannis"+t,OBJ_TREND,0,0,0,0,0);
      ObjectSet("dannis"+t,OBJPROP_RAY,0);
   }
}
void deinit() {
   for(int t=1;t<=3;t++)  ObjectDelete("dannis"+t);
} 
void start()  {
   datetime val_time[4];
   double   val_price[4];
   for(int t=0;t<=3;t++)   {
      val_time[t]=Time[0]+60*Period()*t;
      val_price[t]=2*Close[4-t]-Close[7-t];
   }
   for(t=1;t<=3;t++)   {
      ObjectSet("dannis"+t,OBJPROP_COLOR,Color);
      ObjectSet("dannis"+t,OBJPROP_TIME1,val_time[t-1]);
      ObjectSet("dannis"+t,OBJPROP_PRICE1,val_price[t-1]);
      ObjectSet("dannis"+t,OBJPROP_TIME2,val_time[t]);
      ObjectSet("dannis"+t,OBJPROP_PRICE2,val_price[t]);
   }
}
#property indicator_chart_window
extern color  Color   = Red;
void init() {
   for(int t=1;t<=3;t++)  {
      ObjectCreate("dannis"+t,OBJ_TREND,0,0,0,0,0);
      ObjectSet("dannis"+t,OBJPROP_RAY,0);
   }
}
void deinit() {
   for(int t=1;t<=3;t++)  ObjectDelete("dannis"+t);
} 
void start()  {
   datetime val_time[4];
   double   val_price[4];
   for(int t=0;t<=3;t++)   {
      val_time[t]=Time[0]+60*Period()*t;
      val_price[t]=2*Close[4-t]-Close[7-t];
   }
   for(t=1;t<=3;t++)   {
      ObjectSet("dannis"+t,OBJPROP_COLOR,Color);
      ObjectSet("dannis"+t,OBJPROP_TIME1,val_time[t-1]);
      ObjectSet("dannis"+t,OBJPROP_PRICE1,val_price[t-1]);
      ObjectSet("dannis"+t,OBJPROP_TIME2,val_time[t]);
      ObjectSet("dannis"+t,OBJPROP_PRICE2,val_price[t]);
   }
}
8楼 
秃鹫老师您好:
谢谢您的修改。可否让此指标更具完整性。如同均线一样般呈现,只多出衡量未来三根k线预判买卖环境。〈如图〉
用法:一.当处于低档向上,明日k线呈向上攻击即可买进,设好止损。
      二.当处于高档向下,明日k线呈向下攻击即可卖出,设好止损。属于短线指标。
再次麻烦秃鹫老师。不胜感激!

韬客社区www.talkfx.co
发表于:2008-10-02 12:19只看该作者
9楼 
把3楼、7楼两个合并起来就可以了
#property indicator_chart_window
#property  indicator_buffers 1
#property  indicator_color1  Yellow
extern color  Color   = Red;
double     Buffer;
void init() {
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,Buffer);
   for(int t=1;t<=4;t++)  {
      ObjectCreate("dannis"+t,OBJ_TREND,0,0,0,0,0);
      ObjectSet("dannis"+t,OBJPROP_RAY,0);
   }
}
void deinit() {
   for(int t=1;t<=4;t++)  ObjectDelete("dannis"+t);
} 
void start()  {
   int limit;
   int counted_bars=IndicatorCounted();
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   for(int t=0; t
发表于:2008-10-02 12:24只看该作者
10楼 
哇塞,好高深,完全看不懂:L
世界真可笑,分析错的比操作对的水平高,基本的言行一致都做不到的也谈知行一致
发表于:2008-10-02 15:03只看该作者
12楼 
乍看和顾比很象:052:
我的爱 像天使守护你.
发表于:2016-12-07 14:29只看该作者
14楼 
感谢分享
韬客社区www.talkfx.co

























 真诚的感谢秃鹫老师帮忙
 真诚的感谢秃鹫老师帮忙 
 



