多时间框架指标 - 页 922

 
luffy:
大家好,谁能帮帮我?

只需几分钟时间就可以查看我的代码。

请给我发一个Pm。

我将会很荣幸。

(我不能把我的蹩脚的代码贴在这里,这样会更难删除它 )

你可以随时将有关编码的问题发布在这样的主题上:https://www.mql5.com/en/forum/184889/page2 或这个https://www.mql5.com/en/forum/173219

 

我找不到这些脚本。买卖脚本只包括每笔交易0.1手和追踪止损10点。

 
beco616161:
我找不到这些脚本。买卖脚本只包括每笔0.1手的交易和10点的追踪止损,请帮助我?

你关于同样问题的帖子被移到了这里 :https://www.mql5.com/en/forum/173386

你可以查看该脚本的开始

 

heikenashi3.ex4Mladen 没有人回答我。请帮助我。 ,我建立了HEİKENASHİ3的指标。但我不能在这个指标上编码箭头。请帮助我。

附加的文件:
gbpusdm4.png  39 kb
 
beco616161:
heikenashi3.ex4Mladen 没有人回答我。请帮助我。 ,我建立了HEİKENASHİ3的指标。但我不能在这个指标上编码箭头。请帮助我。

Beco616161,将需要原始源代码MT4(不反编译),以便能够修改指标。

 

谁能把这个指标改成MTF?

谢谢你

附加的文件:
weiswave3_1.mq4  10 kb
 

MRTOOLS非常感谢您的帮助。我创建了代码。

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

//| Heiken Ashi.mq4 ||

//| Copyright 2004, MetaQuotes Software Corp.|

//|MetaTrader 5交易平台 / MetaQuotes Software Corp.|

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

//| 对于黑天鹅,我们推荐下一个图表设置(按F8或

//|选择菜单'图表'->'属性...')。 |

//| - 在 "颜色 "选项卡上为 "线形图 "选择 "黑色"。

//| - 在 "普通 "选项卡上禁用 "前景图表 "复选框,并且

//|选择 "线形图 "放射状按钮。

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

#property copyright "Copyright 2004, MetaQuotes Software Corp.

#属性链接 "http://www.metaquotes.net"

#属性 indicator_chart_window

#属性 indicator_buffers 4

#属性 indicator_color1 红色

#属性 indicator_color2 蓝色

#属性 indicator_color3 红色

#属性 indicator_color4 蓝色

//---- 缓冲区

double ExtMapBuffer1[]。

double ExtMapBuffer2[];

double ExtMapBuffer3[];

双倍ExtMapBuffer4[]。

//----

int ExtCountedBars=0;

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

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

//|------------------------------------------------------------------|

int init()

{

//---- 指标

SetIndexStyle(0,DRAW_HISTOGRAM, 0, 1, Red);

SetIndexBuffer(0, ExtMapBuffer1);

SetIndexStyle(1,DRAW_HISTOGRAM, 0, 1, Blue);

SetIndexBuffer(1, ExtMapBuffer2);

SetIndexStyle(2,DRAW_HISTOGRAM, 0, 3, Red);

SetIndexBuffer(2, ExtMapBuffer3);

SetIndexStyle(3,DRAW_HISTOGRAM, 0, 3, Blue);

SetIndexBuffer(3, ExtMapBuffer4)。

//----

SetIndexDrawBegin(0,10);

SetIndexDrawBegin(1,10);

SetIndexDrawBegin(2,10);

SetIndexDrawBegin(3,10);

//---- 指标缓冲区的映射

SetIndexBuffer(0,ExtMapBuffer1)。

SetIndexBuffer(1,ExtMapBuffer2);

SetIndexBuffer(2,ExtMapBuffer3);

SetIndexBuffer(3,ExtMapBuffer4)。

//---- 初始化完成

返回(0)。

}

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

//|Custor指示器去初始化功能|

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

int deinit()

{

//---- TODO:在这里添加你的代码

//----

return(0);

}

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

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

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

int start()

{

双重haOpen, haHigh, haLow, haClose。

if(Bars<=10) return(0);

ExtCountedBars=IndicatorCounted()。

//----,检查可能的错误

如果(ExtCountedBars<0)返回(-1)。

//----,最后计数的柱子将被重新计数。

如果(ExtCountedBars>0) ExtCountedBars--。

int pos=Bars-ExtCountedBars-1;

while(pos>=0)

{

haOpen=(ExtMapBuffer3[pos+1]+ExtMapBuffer4[pos+1])/2。

haClose=(Open[pos]+High[pos]+Low[pos]+Close[pos])/4。

haHigh=MathMax(High[pos], MathMax(haOpen, haClose))。

haLow=MathMin(Low[pos], MathMin(haOpen, haClose) )。

如果(haOpen<haClose)

{

ExtMapBuffer1[pos]=haLow。

ExtMapBuffer2[pos]=haHigh。

}

否则

{

ExtMapBuffer1[pos]=haHigh。

ExtMapBuffer2[pos]=haLow。

}

ExtMapBuffer3[pos]=haOpen;

ExtMapBuffer4[pos]=haClose。

pos--。

}

//----

return(0);

}

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

 

请将这一指标转给Mtf。谢谢你。

附加的文件:
 
beco616161:
MRTOOLS非常感谢您的帮助。我创建了代码。

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

//| Heiken Ashi.mq4 !

//| Copyright 2004, MetaQuotes Software Corp.|

//|MetaTrader 5交易平台 / MetaQuotes软件公司。|

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

//| 对于黑天鹅,我们推荐下一个图表设置(按F8或

//|选择菜单'图表'->'属性...')。 |

//| - 在 "颜色 "选项卡上为 "线形图 "选择 "黑色"。

//| - 在 "普通 "选项卡上禁用 "前景图表 "复选框,并且

//|选择 "线形图 "放射状按钮。

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

#property copyright "Copyright 2004, MetaQuotes Software Corp.

#属性链接 "http://www.metaquotes.net"

#属性 indicator_chart_window

#属性 indicator_buffers 4

#属性 indicator_color1 红色

#属性 indicator_color2 蓝色

#属性 indicator_color3 红色

#属性 indicator_color4 蓝色

//---- 缓冲区

double ExtMapBuffer1[]。

double ExtMapBuffer2[];

double ExtMapBuffer3[];

双倍ExtMapBuffer4[]。

//----

int ExtCountedBars=0;

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

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

//|------------------------------------------------------------------|

int init()

{

//---- 指标

SetIndexStyle(0,DRAW_HISTOGRAM, 0, 1, Red);

SetIndexBuffer(0, ExtMapBuffer1);

SetIndexStyle(1,DRAW_HISTOGRAM, 0, 1, Blue);

SetIndexBuffer(1, ExtMapBuffer2);

SetIndexStyle(2,DRAW_HISTOGRAM, 0, 3, Red);

SetIndexBuffer(2, ExtMapBuffer3);

SetIndexStyle(3,DRAW_HISTOGRAM, 0, 3, Blue);

SetIndexBuffer(3, ExtMapBuffer4)。

//----

SetIndexDrawBegin(0,10);

SetIndexDrawBegin(1,10);

SetIndexDrawBegin(2,10);

SetIndexDrawBegin(3,10);

//---- 指标缓冲区的映射

SetIndexBuffer(0,ExtMapBuffer1)。

SetIndexBuffer(1,ExtMapBuffer2);

SetIndexBuffer(2,ExtMapBuffer3);

SetIndexBuffer(3,ExtMapBuffer4)。

//---- 初始化完成

返回(0)。

}

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

//|Custor指示器去初始化功能|

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

int deinit()

{

//---- TODO:在这里添加你的代码

//----

return(0);

}

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

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

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

int start()

{

双重haOpen, haHigh, haLow, haClose。

if(Bars<=10) return(0);

ExtCountedBars=IndicatorCounted()。

//----,检查可能的错误

如果(ExtCountedBars<0)返回(-1)。

//----,最后计数的柱子将被重新计数。

如果(ExtCountedBars>0) ExtCountedBars--。

int pos=Bars-ExtCountedBars-1;

while(pos>=0)

{

haOpen=(ExtMapBuffer3[pos+1]+ExtMapBuffer4[pos+1])/2。

haClose=(Open[pos]+High[pos]+Low[pos]+Close[pos])/4。

haHigh=MathMax(High[pos], MathMax(haOpen, haClose))。

haLow=MathMin(Low[pos], MathMin(haOpen, haClose) )。

如果(haOpen<haClose)

{

ExtMapBuffer1[pos]=haLow。

ExtMapBuffer2[pos]=haHigh。

}

否则

{

ExtMapBuffer1[pos]=haHigh。

ExtMapBuffer2[pos]=haLow。

}

ExtMapBuffer3[pos]=haOpen;

ExtMapBuffer4[pos]=haClose。

pos--。

}

//----

return(0);

}

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

Beco616161,添加了警报和箭头。

附加的文件:
 
mrtools:
Beco616161,添加了警报和箭头。

非常非常感谢MRTOOLS,但这些heiken ashi 信号并不符合我的要求。

请检查图片。请帮助我。如何编码全栏警报箭头?请帮助我。

附加的文件:
gbpusdm4_1.png  40 kb