#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);
}
- [存档!]任何菜鸟问题,为了不给论坛添乱。专业人士,不要与它擦肩而过。没有你,哪里都不能去 - 2.
- 这么个简单的程序为什么画不出线呢?请教牛牛们。
- 為甚麼指標無法正常顯示,程式加上這行指令 #property strict ,就無法正常顯示
问题已解决