已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
MT4 大字报价详细设置方法MT4系统报价字体太小,很多朋友都觉得看起了不舒服。经本人多次试验,不用任何工具,看这个文档就可以轻松搞定了,非常简单J红色报价表示上涨,绿色表示下跌,符合国人习惯。自己动手丰衣足食,我们以前来设置一下吧!先看这个图,大家都熟悉吧第一步: 自定义指标上右键-创建下一步,名称输入DZ下一步,完成,自动打开编辑窗口:关键的步骤来了: 全选-删除 . 这下全部清空了,哈哈复制这篇文档最后的源代码,粘贴进去就可以了。贴好了,点一下编译。不要怀疑该做的都已经做好了,把这个窗口关了吧。再看看自定义指标下面多了个DZ吧,赶快双击,确定。惊喜来了,看到可爱的大字报价了吧J/+-+/| DZ.mq4 ver1.0 |/+-+/-MT4大字报价源码#property indicator_chart_window extern string note1 = Change font colors automatically? True = Yes; extern bool Bid_Ask_Colors = True; extern string note2 = Default Font Color; extern color FontColor = Black; extern string note3 = Font Size; extern int FontSize=32; extern string note4 = Font Type; extern string FontType=Arial; extern string note5 = Display the price in what corner?; extern string note6 = Upper left=0; Upper right=1; extern string note7 = Lower left=2; Lower right=3; extern int WhatCorner=3; double Old_Price;int init() return(0); int deinit() ObjectDelete(Market_Price_Label); return(0); int start() if (Bid_Ask_Colors = True) if (Bid Old_Price) FontColor = Red; if (Bid 0) while (counterZlevel & i=0;i-) ZigzagBufferi=0.0; LowMapBufferi=0.0; HighMapBufferi=0.0; for(shift=limit; shift=0; shift-) val=LowiLowest(NULL,0,MODE_LOW,ExtDepth,shift); if(val=lastlow) val=0.0; else lastlow=val; if(Lowshift-val)(ExtDeviation*Point) val=0.0; else for(back=1; backval) LowMapBuffershift+back=0.0; if (Lowshift=val) LowMapBuffershift=val; else LowMapBuffershift=0.0; /- high val=HighiHighest(NULL,0,MODE_HIGH,ExtDepth,shift); if(val=lasthigh) val=0.0; else lasthigh=val; if(val-Highshift)(ExtDeviation*Point) val=0.0; else for(back=1; back=ExtBackstep; back+) res=HighMapBuffershift+back; if(res!=0)&(res=0;shift-) res=0.0; switch(whatlookfor) case 0: / look for peak or lawn if (lastlow=0 & lasthigh=0) if (HighMapBuffershift!=0) lasthigh=Highshift; lasthighpos=shift; whatlookfor=-1; ZigzagBuffershift=lasthigh; res=1; if (LowMapBuffershift!=0) lastlow=Lowshift; lastlowpos=shift; whatlookfor=1; ZigzagBuffershift=lastlow; res=1; break; case 1: / look for peak if (LowMapBuffershift!=0.0 & LowMapBuffershiftlasthigh & LowMapBuffershift=0.0) ZigzagBufferlasthighpos=0.0; lasthighpos=shift; lasthigh=HighMapBuffershift; ZigzagBuffershift=lasthigh; if (LowMapBuffershift!=0.0 & HighMapBuffershift=0.0) lastlow=LowMapBuffershift; lastlowpos=shift; ZigzagBuffershift=lastlow; whatlookfor=1; break; default: return; return(0); /+-+/+-+/| Stochastic.mq4 |/| Copyright ?2004, MetaQuotes Software Corp. |/| / |/+-+#property copyright Copyright ?2004, MetaQuotes Software Corp.#property link /#property indicator_separate_window#property indicator_minimum 0#property indicator_maximum 100#property indicator_buffers 2#property indicator_color1 LightSeaGreen#property indicator_color2 Red/- input parametersextern int KPeriod=5;extern int DPeriod=3;extern int Slowing=3;/- buffersdouble MainBuffer;double SignalBuffer;double HighesBuffer;double LowesBuffer;/-int draw_begin1=0;int draw_begin2=0;/+-+/| Custom indicator initialization function |/+-+int init() string short_name;/- 2 additional buffers are used for counting. IndicatorBuffers(4); SetIndexBuffer(2, HighesBuffer); SetIndexBuffer(3, LowesBuffer);/- indicator lines SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0, MainBuffer); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1, SignalBuffer);/- name for DataWindow and indicator subwindow label short_name=Sto(+KPeriod+,+DPeriod+,+Slowing+); IndicatorShortName(short_name); SetIndexLabel(0,short_name); SetIndexLabel(1,Signal);/- draw_begin1=KPeriod+Slowing; draw_begin2=draw_begin1+DPeriod; SetIndexDrawBegin(0,draw_begin1); SetIndexDrawBegin(1,draw_begin2);/- return(0); /+-+/| Stochastic oscillator |/+-+int start() int i,k; int counted_bars=IndicatorCounted(); double price;/- if(Bars=draw_begin2) return(0);/- initial zero if(counted_bars1) for(i=1;i=draw_begin1;i+) MainBufferBars-i=0; for(i=1;iKPeriod) i=Bars-counted_bars-1; while(i=0) double min=1000000; k=i+KPeriod-1; while(k=i) price=Lowk; if(minprice) min=price; k-; LowesBufferi=min; i-; /- maximums counting i=Bars-KPeriod; if(counted_barsKPeriod) i=Bars-counted_bars-1; while(i=0) double max=-1000000; k=i+KPeriod-1; while(k=i) price=Highk; if(maxdraw_begin1) i=Bars-counted_bars-1; while(i=0) double sumlow=0.0; double sumhigh=0.0; for(k=(i+Slowing-1);k=i;k-) sumlow+=Closek-LowesBufferk; sumhigh+=HighesBufferk-LowesBufferk; if(sumhigh=0.0) MainBufferi=100.0; else MainBufferi=sumlow/sumhigh*100; i-; /- last
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025北京大学城市与环境学院招聘劳动合同制人员1人考试笔试备考题库及答案解析
- 2025云南昆明市卓衡高级中学招聘笔试考试参考题库及答案解析
- 2025年西咸新区渭城卫生院招聘考试笔试备考试题及答案解析
- 2025山东菏泽苏菏高级中学餐厅招聘6人笔试考试备考题库及答案解析
- 2025西安市东城第一中学教师招聘考试笔试备考题库及答案解析
- 2025四川成都市锦江区考核招聘教师60人笔试考试参考题库及答案解析
- 2025浙江温州市平阳县中医院招聘院前急救护士1人笔试考试备考试题及答案解析
- 2026天津市卫生健康委员会所属天津市第四中心医院招聘40人笔试考试备考题库及答案解析
- 2025年瑞安市安阳街道公开招聘社会治理协管员与禁毒社工5人考试笔试参考题库附答案解析
- 2025广东云浮市招聘教育人才19人(华南农业大学专场)笔试考试备考试题及答案解析
- 2025北京水务投资集团有限公司所属项目单位招聘9人笔试历年参考题库附带答案详解
- 个案管理课件
- 2023第十一届贵州人才博览会黔西南州农业林业科学研究院引进高层次人才和急需紧缺人才8人笔试备考题库及答案解析
- 细菌和病毒的遗传分析
- (完整word版)扣字词汇124
- 全口无牙颌解剖标志的识别
- GB/T 1348-1988球墨铸铁件
- 三相异步电机电气原理图
- 农民合作社的运营与管理
- 生物技术制药试题及重点
- 世界文明与世界宗教课件
评论
0/150
提交评论