论坛全局菜单下方 - exness285X70 - 韬客社区论坛全局菜单下方 - 荔枝返现285X70 - 韬客社区论坛全局菜单下方 - ThinkMarkets285X70 - 韬客社区论坛全局菜单下方 - TICKMILL 285X70 - 韬客社区
查看:939回复:2
zsh226韬客社区韬客社区
注册时间2005-07-13
[MT4指标]求高手帮忙编个指标
韬客社区
楼主发表于:2006-04-07 17:16只看该作者倒序浏览
1楼 电梯直达
电梯直达
三条线 第一条 30天平均线 第二条 30天平均线 +300点 第三条 30天平均线 -300点
TK29帖子1楼右侧xm竖版广告90-240
个性签名

韬客社区www.talkfx.co

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
hawkie韬客社区韬客社区
注册时间2004-06-21
韬客社区
发表于:2006-04-28 10:15只看该作者
2楼
不知道这位兄弟还来不来了?公式可以自动适应GBP和JPY不一样基点,不会加错小数点 //+------------------------------------------------------------------+ //| zsh226 .mq4 | //| Copyright ?2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright ?2004, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Orange #property indicator_color2 Orange #property indicator_color3 Orange //---- input parameters extern int N=30; extern int M=300; //---- buffers double ExtMapBuffer1; double ExtMapBuffer2; double ExtMapBuffer3; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer1); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,ExtMapBuffer2); SetIndexStyle(2,DRAW_LINE); SetIndexBuffer(2,ExtMapBuffer3); IndicatorShortName("zsh226("+N+","+M+")"); SetIndexLabel(0,"L1"); SetIndexLabel(1,"L2"); SetIndexLabel(2,"L3"); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit; int counted_bars=IndicatorCounted(); //---- check for possible errors if(counted_bars<0) return(-1); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i
版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]