多时间框架指标 - 页 1022

 
stonehome:
嗨,mntiwana。

希望有另一个MA;不是LWMA而是MA Hull(HMA)。

如果那会去,那真的很好

石家庄

你好,石家庄

作为一个替代的解决方案,这里是船体丝带,很多调整你可以玩,但如果只有你的指标是必要的,那么老板可以更好地指导你,谢谢。

船体色带变化MTF nmc.mq4

附加的文件:
 

不,不,不,这不是解决方案

我想在HMA版本中使用t_ma。

请帮助我

谢谢石家庄

 
stonehome:
这里的代码。

//+------------------------------------------------------------------+

//| t_ma.mq4 ||

//| |

//| |

//+------------------------------------------------------------------+

#财产版权""

#property link ""

#属性 indicator_chart_window

#属性 indicator_buffers 7

#属性 indicator_color1 中蓝

#属性 indicator_color2 蓝色

#属性 indicator_color3 DodgerBlue

#属性指示器_color4 DeepSkyBlue

#属性指示器_color5 天蓝

#属性指示器_color6 水蓝

#属性指示器_color7 海蓝

#属性指示器宽度1 1

#属性指示器宽度2 1

#属性指示器_width3 1

#属性指示器_width4 1

#财产指示器宽度5 1

#属性指示器宽度6 1

#perty indicator_width7 1//---- buffers

double ExtMapBuffer1[]。

double ExtMapBuffer2[];double ExtMapBuffer3[]。

double ExtMapBuffer4[];double ExtMapBuffer5[]。

双倍ExtMapBuffer6[];双倍ExtMapBuffer7[]。

extern int MA_Period=100;

extern int ad1 = 2;

extern int ad2 = 4;

extern int ad3 = 6;

extern int ad4 = 8;

extern int ad5 = 10;

//+------------------------------------------------------------------+

//|自定义指标初始化函数

//+------------------------------------------------------------------+

int init()

{

//---- 指标

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1,ExtMapBuffer2);

SetIndexStyle(2,DRAW_LINE);

SetIndexBuffer(2,ExtMapBuffer3);

SetIndexStyle(3,DRAW_LINE);

SetIndexBuffer(3,ExtMapBuffer4);

SetIndexStyle(4,DRAW_LINE);

SetIndexBuffer(4,ExtMapBuffer5);

SetIndexStyle(5,DRAW_LINE);

SetIndexBuffer(5,ExtMapBuffer6);

SetIndexStyle(6,DRAW_LINE);

SetIndexBuffer(6,ExtMapBuffer7)。

//----

return(0);

}

//+------------------------------------------------------------------+

//|自定义指标去初始化函数|

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//|自定义指标迭代函数|

//+------------------------------------------------------------------+

int start()

{

int counted_bars=IndicatorCounted()。

if(counted_bars<0) return(-1);

如果(counted_bars>0) counted_bars--。

int limit = MathMin(Bars-counted_bars,Bars-1);

如果(ad1<0) limit=MathMax(limit,-ad1);

如果(ad2<0)limit=MathMax(limit,-ad2);

如果(ad3<0)limit=MathMax(limit,-ad3);

如果(ad4<0)limit=MathMax(limit,-ad4);

if (ad5<0) limit=MathMax(limit,-ad5);

for(int i=limit;i>=0;i--)

{

ExtMapBuffer1=iMA(NULL,0,MA_Period,0,MODE_LWMA,PRICE_OPEN,i)。

ExtMapBuffer2=(ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1)/6.0。

}

for( i=limit;i>=0;i--)

{

ExtMapBuffer3= ExtMapBuffer2; if (ExtMapBuffer3==0) ExtMapBuffer3=EMPTY_VALUE;

ExtMapBuffer4= ExtMapBuffer2; 如果(ExtMapBuffer4==0) ExtMapBuffer4=EMPTY_VALUE;

ExtMapBuffer5= ExtMapBuffer2; 如果(ExtMapBuffer5==0) ExtMapBuffer5=EMPTY_VALUE;

ExtMapBuffer6= ExtMapBuffer2; if (ExtMapBuffer6==0) ExtMapBuffer6=EMPTY_VALUE;

ExtMapBuffer7= ExtMapBuffer2; if (ExtMapBuffer7==0) ExtMapBuffer7=EMPTY_VALUE;

}

//----

return(0);

}

//+------------------------------------------------------------------+

石家庄

这不是船体的平均值。这是一些平滑的lwma,上面做了一些移位。

 

Mladen,这是确定的。

但我只是想写,如果你能给我改变这个指标(t_ma)!!!!!

在一个HMA(赫尔移动平均线) - 版本

它或将不做

谢谢你的努力

石家庄

 

能否将其做成多时间框架?

附加的文件:
 

更新的超级趋势volty like :SuperTrend volty like 2 nmc.mq4

最初它被张贴在这里 :https://www.mql5.com/en/forum/173574/page333

附加的文件:
 
stonehome:
这里的代码。

//+------------------------------------------------------------------+

//| t_ma.mq4 ||

//| |

//| |

//+------------------------------------------------------------------+

#财产版权""

#property link ""

#属性 indicator_chart_window

#属性 indicator_buffers 7

#属性 indicator_color1 中蓝

#属性 indicator_color2 蓝色

#属性 indicator_color3 DodgerBlue

#属性指示器_color4 DeepSkyBlue

#属性指示器_color5 天蓝

#属性指示器_color6 水蓝

#属性指示器_color7 海蓝

#属性指示器宽度1 1

#属性指示器宽度2 1

#属性指示器_width3 1

#属性指示器_width4 1

#财产指示器宽度5 1

#属性指示器宽度6 1

#perty indicator_width7 1//---- buffers

double ExtMapBuffer1[]。

double ExtMapBuffer2[];double ExtMapBuffer3[]。

double ExtMapBuffer4[];double ExtMapBuffer5[]。

双倍ExtMapBuffer6[];双倍ExtMapBuffer7[]。

extern int MA_Period=100;

extern int ad1 = 2;

extern int ad2 = 4;

extern int ad3 = 6;

extern int ad4 = 8;

extern int ad5 = 10;

//+------------------------------------------------------------------+

//|自定义指标初始化函数

//+------------------------------------------------------------------+

int init()

{

//---- 指标

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1,ExtMapBuffer2);

SetIndexStyle(2,DRAW_LINE);

SetIndexBuffer(2,ExtMapBuffer3);

SetIndexStyle(3,DRAW_LINE);

SetIndexBuffer(3,ExtMapBuffer4);

SetIndexStyle(4,DRAW_LINE);

SetIndexBuffer(4,ExtMapBuffer5);

SetIndexStyle(5,DRAW_LINE);

SetIndexBuffer(5,ExtMapBuffer6);

SetIndexStyle(6,DRAW_LINE);

SetIndexBuffer(6,ExtMapBuffer7)。

//----

return(0);

}

//+------------------------------------------------------------------+

//|自定义指标去初始化函数|

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//|自定义指标迭代函数|

//+------------------------------------------------------------------+

int start()

{

int counted_bars=IndicatorCounted()。

if(counted_bars<0) return(-1);

如果(counted_bars>0) counted_bars--。

int limit = MathMin(Bars-counted_bars,Bars-1);

如果(ad1<0) limit=MathMax(limit,-ad1);

如果(ad2<0)limit=MathMax(limit,-ad2);

如果(ad3<0)limit=MathMax(limit,-ad3);

如果(ad4<0)limit=MathMax(limit,-ad4);

if (ad5<0) limit=MathMax(limit,-ad5);

for(int i=limit;i>=0;i--)

{

ExtMapBuffer1=iMA(NULL,0,MA_Period,0,MODE_LWMA,PRICE_OPEN,i)。

ExtMapBuffer2=(ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1)/6.0。

}

for( i=limit;i>=0;i--)

{

ExtMapBuffer3= ExtMapBuffer2; if (ExtMapBuffer3==0) ExtMapBuffer3=EMPTY_VALUE;

ExtMapBuffer4= ExtMapBuffer2; 如果(ExtMapBuffer4==0) ExtMapBuffer4=EMPTY_VALUE;

ExtMapBuffer5= ExtMapBuffer2; 如果(ExtMapBuffer5==0) ExtMapBuffer5=EMPTY_VALUE;

ExtMapBuffer6= ExtMapBuffer2; if (ExtMapBuffer6==0) ExtMapBuffer6=EMPTY_VALUE;

ExtMapBuffer7= ExtMapBuffer2; if (ExtMapBuffer7==0) ExtMapBuffer7=EMPTY_VALUE;

}

//----

return(0);

}

//+------------------------------------------------------------------+

石家庄,做了一个Hma版本。

t_hma.mq4

附加的文件:
t_hma.mq4  4 kb
t_hma.png  73 kb
 

精彩

非常感谢Mr.mrtools

杰克

 
mwambaFX:
嗨,Mladen ...请检查这个指标...MTF功能不工作...谢谢你

rk-kcv8-wmtf-txt-zo-trend_arrows.mq4

PS.我想我的帖子已经被删除了。

嗨,Mrtools和Mladen能帮我解决这个问题吗?MTF功能是如此的错误。非常感谢

附加的文件:
 
mwambaFX:
嗨,Mladen ...请检查这个指标...MTF功能不工作...谢谢你

rk-kcv8-wmtf-txt-zo-trend_arrows.mq4

PS.我想我的帖子已经被删除了。

MwambaFX,做了这个版本,mtf是工作的,对于文本,它的位置是由valueLoc控制。

keltner_channels_alerts__text_mtf.mq4

附加的文件: