PDA

View Full Version : MACD略有变化



pallocawdenas7
12-17-2008 07:52, 07:52 AM
3 附件 朋友们好,

我需要对这个 MACD indi 进行 3 处更改,并带有警报,我在图片中对此进行了解释。

第一个消除 M5 警报对我来说非常重要,还添加了一个 SOUND 警报,但如果很难做到,另一个可以暂时保留。

我对编程一无所知
https://www.histoforex.com/attachments/1529196866.pnghttps://www.histoforex.com/attachments/1529196866.png

谢谢您的帮助
麦克风
https://www.histoforex.com/attachments/1529196866.png

https://www.histoforex.com/forex-brokers/147-cent-account-low-spreads-micro-lots-broker.html

https://www.histoforex.com/attachments/15291968721931374664.mq4

https://www.histoforex.com/attachments/15291968741622251171.ex4

pallocawdenas7
09-27-2022 07:03, 07:03 AM
7 月 1 日亚洲 :win 25 45 = 70 Mon NY: Loss ej and gu -15-15-15-15-15-15=-90

pallocawdenas7
09-27-2022 08:25, 08:25 AM
阅读整页
https://www.histoforex.com/crypto-trading/353-volume-weighted-macd.html

pallocawdenas7
09-27-2022 09:48, 09:48 AM
https://www.histoforex.com/forex-market-analysis/260-s-pasr-long-term-stress-free-trading.html
https://www.histoforex.com/crypto-trading/528-help-simple-atr-code.html
https://www.histoforex.com/forex-brokers/186-experiences-brokers-updating-email-address.html
https://www.histoforex.com/forex-brokers/186-experiences-brokers-updating-email-address.html

阿拉诗阿格斯蒂娜
09-27-2022 11:10, 11:10 AM
插入代码// --------------------------------- --------------------- /|自定义 MACD OsMA.mq4 |/|版权所有 © 2004,MetaQuotes Software Corp. |/| http://www.metaquotes.net/|/ ------------------------------------------------ ------------------- #property 版权所有 Copyright © 2004, MetaQuotes Software Corp. #property link http://www.metaquotes.net///---- indior 设置 #property indior_separate_window #property indior_buffers 3 #property indior_color1 Silver #property indior_color2 Red #property indior_color3 Silver/---- indior 参数 extern int FastEMA=5;外部 int SlowEMA=34;外部 int SignalSMA=9; extern bool AlertOn = true;/---- indior buffers double ind_buffer1#91;#93;;双 ind_buffer2#91;#93;;双 ind_buffer3#91;#93;;/ ------------------------------------------------ ------------------- /|自定义indior初始化函数|/ ------------------------------------------------ ------------------- int init() {/---- 绘图设置 SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1); SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,2); SetIndexDrawBegin(1,SignalSMA); IndiorDigits(MarketInfo(Symbol(),MODE_DIGITS) 1);/---- 内部缓冲区映射 if(!SetIndexBuffer(0,ind_buffer1) !SetIndexBuffer(1,ind_buffer2) !SetIndexBuffer(2,ind_buffer3)) 打印(不能设置内部缓冲区!);/---- DataWindow 和 indior 子窗口标签的名称 IndiorShortName(MACD( FastEMA , SlowEMA , SignalSMA )); SetIndexLabel(0,MACD);设置索引标签(1,信号); SetIndexLabel(2,OsMA);/---- 初始化完成 return(0); }/ --------------------------------------------- -------------------- /|移动平均线收敛/发散 |/ ------------------------------------------------ ------------------- int start() { int limit;双 OsMANow, OsMAPrevious;静态日期时间 prevtime = 0; int counted_bars=IndiorCounted();/---- 检查可能的错误 if(counted_barslt;0) return(-1);/---- 最后计数的柱将被重新计算 if(counted_barsgt;0) counted_bars--; limit=Bars-counted_bars;/---- macd 在第一个缓冲区中计数 for(int i=0; ilt;limit; i ) ind_buffer1#91;i#93;=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE, i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);/---- 在第二个缓冲区中计数的信号线 for(i=0; ilt;limit; i ) ind_buffer2#91;i#93;=iMAOnArray(ind_buffer1,Bars,SignalSMA,0,MODE_SMA,i) ; for(i=0; ilt;limit; i ) ind_buffer3#91;i#93;=iOsMA(NULL,0,FastEMA,SlowEMA,SignalSMA,PRICE_CLOSE,i);/---- 完成/======= 警报 ========= if(AlertOn) { if(prevtime == Time#91;0#93;) { return(0) ; } prevtime = 时间#91;0#93;; OsMANow = iOsMA(NULL, 0, FastEMA, SlowEMA, SignalSMA, PRICE_CLOSE, 0); OsMAPrevious = iOsMA(NULL, 0, FastEMA, SlowEMA, SignalSMA, PRICE_CLOSE, 1); if((OsMANow lt; 0) (OsMAPrevious gt; 0)) { PlaySound(alert.wav); } if((OsMANow gt; 0) (OsMAPrevious lt; 0)) { PlaySound(alert.wav);} IndiorShortName(MACD( FastEMA , SlowEMA , SignalSMA ) (警报开启)); }/======= 警报结束 ========= return(0); }

pallocawdenas7
09-27-2022 12:32, 12:32 PM
谢谢罗纳德迈克

pallocawdenas7
09-27-2022 13:54, 01:54 PM
7月2日亚洲:输-赢-25-25=-50 25 BE= 25 纽约:只赢EJ 1位 15(最多 46)GU也赢 20