论坛全局菜单下方 - exness285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - TICKMILL 285X70
  • 1
  • 2
前往
页
共 29 条
帖子
作者
回复/查看
最后发表
2007-06-09 08:00
59
14198
2018-02-11 16:18
2007-06-19 04:13
283
57950
2017-11-30 00:52
2007-06-19 04:38
2007-05-09 04:34
45
12350
2019-10-10 17:32
韬客社区
MACD 双线三色 #property indicator_separate_window #property indicator_buffers 5 #property indicator_color1 MidnightBlue #property indicator_color2 Red #property indicator_color3 Green #property indicator_color4 Yellow #property indicator_width1 1 extern int FastEMA=12; extern int SlowEMA=26; extern int SignalSMA=9; double MacdBuffer0; double MacdBuffer1; double MacdBuffer2; double SignalBuffer; double MacdBuffer; int init() { SetIndexStyle(0,DRAW_HISTOGRAM); SetIndexStyle(1,DRAW_HISTOGRAM); SetIndexStyle(2,DRAW_HISTOGRAM); SetIndexStyle(3,DRAW_LINE); SetIndexStyle(4,DRAW_NONE); SetIndexDrawBegin(3,SignalSMA); IndicatorDigits(Digits+1); SetIndexBuffer(0,MacdBuffer0); SetIndexBuffer(1,MacdBuffer1); SetIndexBuffer(2,MacdBuffer2); SetIndexBuffer(3,SignalBuffer); SetIndexBuffer(4,MacdBuffer); IndicatorShortName("MACD("+FastEMA+","+SlowEMA+","+SignalSMA+")"); SetIndexLabel(0,"MACD"); SetIndexLabel(1,"MACD"); SetIndexLabel(2,"MACD"); SetIndexLabel(3,"Signal"); // SetIndexLabel(4,"MACD"); return(0); } int start() { int limit; int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i=0 && MacdBuffer>=SignalBuffer) {MacdBuffer1=MacdBuffer; MacdBuffer2=0;MacdBuffer0=0;} if(MacdBuffer<=0 && MacdBuffer<=SignalBuffer) {MacdBuffer2=MacdBuffer; MacdBuffer1=0;MacdBuffer0=0;} if((MacdBuffer>=0 && MacdBufferSignalBuffer)) {MacdBuffer0=MacdBuffer; MacdBuffer1=0;MacdBuffer2=0;} } return(0); } [ 本帖最后由 爆爆熊 于 2007-5-9 19:05 编辑 ]
韬客社区
2007-05-09 10:12
2007-04-12 02:58
16
2081
2007-04-13 05:51
2005-05-30 02:11
73
24323
2016-12-07 11:27
2007-02-04 11:53
  • 1
  • 2
前往
页
共 29 条
版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]