下载MetaTrader 5
要添加评论,请登录注册
手边没有电脑?用移动电话与好友沟通吧!
caochong
9
caochong 2013.05.04 10:43 
#property copyright "Copyright 2013, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Yellow #property indicator_color2 Yellow double UpperBuffer[]; double LowerBuffer[]; int init() { SetIndexStyle(0,DRAW_LINE); SetIndexDrawBegin(0,3); SetIndexBuffer(0,UpperBuffer); SetIndexStyle(1,DRAW_LINE); SetIndexDrawBegin(1,3); SetIndexBuffer(1,LowerBuffer); return(0); } int deinit() { return(0); } int start() { for(int i= Bars -3; i>=0; i--) { UpperBuffer[i]=1.03*(Low[i] + Low[i+1] + Low[i+2])/3; LowerBuffer[i]=0.97*(High[i] + High[i+1] + High[i+2])/3; } return(0); }
caochong
9
caochong 2013.05.04 13:50  
问题已解决
/
要添加评论,请登录注册