[MT4指标]cci天使Angle指标
附图指标,cci天使Angle指标
mt4指标类型:趋势指标
是否能用在mt4手机版上:否
是否含有未来函数:无
[backcolor=rgb(245, 245, 245)]你[/backcolor]
[backcolor=rgb(245, 245, 245)]可以使用[/backcolor]
[backcolor=rgb(245, 245, 245)]这个指标[/backcolor]
[backcolor=rgb(245, 245, 245)]时,[/backcolor]
[backcolor=rgb(245, 245, 245)]LSMA[/backcolor]
[backcolor=rgb(245, 245, 245)]角度[/backcolor]
[backcolor=rgb(245, 245, 245)]来衡量[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]“[/backcolor]
[backcolor=rgb(245, 245, 245)]接近于零[/backcolor]
[backcolor=rgb(245, 245, 245)]”[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)]决定当[/backcolor]
[backcolor=rgb(245, 245, 245)]角度[/backcolor]
[backcolor=rgb(245, 245, 245)]为[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]LSMA[/backcolor]
[backcolor=rgb(245, 245, 245)]是“关于[/backcolor]
[backcolor=rgb(245, 245, 245)]零”[/backcolor]
[backcolor=rgb(245, 245, 245)]:[/backcolor]
[backcolor=rgb(245, 245, 245)]这是当[/backcolor]
[backcolor=rgb(245, 245, 245)]值[/backcolor]
[backcolor=rgb(245, 245, 245)]之间[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)][[/backcolor]
[backcolor=rgb(245, 245, 245)]-[/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)],[/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)]][/backcolor]
[backcolor=rgb(245, 245, 245)]([/backcolor]
[backcolor=rgb(245, 245, 245)]或当[/backcolor]
[backcolor=rgb(245, 245, 245)]直方图是[/backcolor]
[backcolor=rgb(245, 245, 245)]红色)[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]LSMAPeriod[/backcolor]
[backcolor=rgb(245, 245, 245)]:[/backcolor]
[backcolor=rgb(245, 245, 245)]LSMA[/backcolor]
[backcolor=rgb(245, 245, 245)]期[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)]:[/backcolor]
[backcolor=rgb(245, 245, 245)]角度值[/backcolor]
[backcolor=rgb(245, 245, 245)]是“关于[/backcolor]
[backcolor=rgb(245, 245, 245)]零”[/backcolor]
[backcolor=rgb(245, 245, 245)]时,它是[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]的值之间[/backcolor]
[backcolor=rgb(245, 245, 245)][[/backcolor]
[backcolor=rgb(245, 245, 245)]-[/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)],[/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)]][/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]StartLSMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]:起点[/backcolor]
[backcolor=rgb(245, 245, 245)]计算[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]角[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)]这是一个[/backcolor]
[backcolor=rgb(245, 245, 245)]移值[/backcolor]
[backcolor=rgb(245, 245, 245)]到左边[/backcolor]
[backcolor=rgb(245, 245, 245)]的[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]观察点[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)]应该是[/backcolor]
[backcolor=rgb(245, 245, 245)]StartEMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]>[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]EndEMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]EndLSMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]:[/backcolor]
[backcolor=rgb(245, 245, 245)]结束点[/backcolor]
[backcolor=rgb(245, 245, 245)]来计算[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]角[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)]这是一个[/backcolor]
[backcolor=rgb(245, 245, 245)]移值[/backcolor]
[backcolor=rgb(245, 245, 245)]到左边[/backcolor]
[backcolor=rgb(245, 245, 245)]的[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]观察点[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)]应该是[/backcolor]
[backcolor=rgb(245, 245, 245)]StartEMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]>[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]EndEMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
//+------------------------------------------------------------------+ //| CCI_Angle.mq4 | //| MrPip | //| | //| You can use this indicator to measure when the LSMA angle is | //| \"near zero\". AngleTreshold determines when the angle for the | //| LSMA is \"about zero\": This is when the value is between | //| [-AngleTreshold, AngleTreshold] (or when the histogram is red). | //| LSMAPeriod: LSMA period | //| AngleTreshold: The angle value is \"about zero\" when it is | //| between the values [-AngleTreshold, AngleTreshold]. | //| StartLSMAShift: The starting point to calculate the | //| angle. This is a shift value to the left from the | //| observation point. Should be StartEMAShift > EndEMAShift. | //| EndLSMAShift: The ending point to calculate the | //| angle. This is a shift value to the left from the | //| observation point. Should be StartEMAShift > EndEMAShift. | //| | //| Modified by MrPip from EMAAngle by jpkfox | | //| Red for down | //| Yellow for near zero | //| Green for up | //| | //| Modified to do CCI Angle | //+------------------------------------------------------------------+ #property copyright \"Robert L. Hill aka MrPip\" //---- indicator settings #property indicator_separate_window #property indicator_buffers 3 #property indicator_color1 LimeGreen #property indicator_color2 Yellow #property indicator_color3 FireBrick //---- indicator parameters extern int CCIPeriod=14; extern double AngleTreshold=15.0; extern int PrevShift=4; extern int CurShift=0; //---- indicator buffers double UpBuffer; double DownBuffer; double ZeroBuffer; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- 2 additional buffers are used for counting. IndicatorBuffers(3); //---- drawing settings SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2); SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,2); SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,2); IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+2); //---- 3 indicator buffers mapping if(!SetIndexBuffer(0,UpBuffer) && !SetIndexBuffer(1,DownBuffer) && !SetIndexBuffer(2,ZeroBuffer)) Print(\"cannot set indicator buffers!\"); //---- name for DataWindow and indicator subwindow label IndicatorShortName(\"CCI_Angle(\"+CCIPeriod+\",\"+AngleTreshold+\",\"+PrevShift+\",\"+CurShift+\")\"); //---- initialization done return(0); } //+------------------------------------------------------------------+ //| The angle for LSMA | //+------------------------------------------------------------------+ int start() { double fCur, fPrev; double fAngle, mFactor; int nLimit, i; int nCountedBars; double angle; int ShiftDif; if(CurShift >= PrevShift) { Print(\"Error: CurShift >= PrevShift\"); PrevShift = 6; CurShift = 0; } nCountedBars = IndicatorCounted(); //---- check for possible errors if(nCountedBars<0) return(-1); //---- last counted bar will be recounted if(nCountedBars>0) nCountedBars--; nLimit = Bars-nCountedBars; mFactor = 1.0; ShiftDif = PrevShift-CurShift; mFactor /= ShiftDif; //---- main loop for(i=0; i AngleTreshold)
UpBuffer = fAngle;
else if (fAngle < -AngleTreshold)
DownBuffer = fAngle;
else ZeroBuffer = fAngle;
}
return(0);
}
//+------------------------------------------------------------------+
[backcolor=rgb(245, 245, 245)]可以使用[/backcolor]
[backcolor=rgb(245, 245, 245)]这个指标[/backcolor]
[backcolor=rgb(245, 245, 245)]时,[/backcolor]
[backcolor=rgb(245, 245, 245)]LSMA[/backcolor]
[backcolor=rgb(245, 245, 245)]角度[/backcolor]
[backcolor=rgb(245, 245, 245)]来衡量[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]“[/backcolor]
[backcolor=rgb(245, 245, 245)]接近于零[/backcolor]
[backcolor=rgb(245, 245, 245)]”[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)]决定当[/backcolor]
[backcolor=rgb(245, 245, 245)]角度[/backcolor]
[backcolor=rgb(245, 245, 245)]为[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]LSMA[/backcolor]
[backcolor=rgb(245, 245, 245)]是“关于[/backcolor]
[backcolor=rgb(245, 245, 245)]零”[/backcolor]
[backcolor=rgb(245, 245, 245)]:[/backcolor]
[backcolor=rgb(245, 245, 245)]这是当[/backcolor]
[backcolor=rgb(245, 245, 245)]值[/backcolor]
[backcolor=rgb(245, 245, 245)]之间[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)][[/backcolor]
[backcolor=rgb(245, 245, 245)]-[/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)],[/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)]][/backcolor]
[backcolor=rgb(245, 245, 245)]([/backcolor]
[backcolor=rgb(245, 245, 245)]或当[/backcolor]
[backcolor=rgb(245, 245, 245)]直方图是[/backcolor]
[backcolor=rgb(245, 245, 245)]红色)[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]LSMAPeriod[/backcolor]
[backcolor=rgb(245, 245, 245)]:[/backcolor]
[backcolor=rgb(245, 245, 245)]LSMA[/backcolor]
[backcolor=rgb(245, 245, 245)]期[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)]:[/backcolor]
[backcolor=rgb(245, 245, 245)]角度值[/backcolor]
[backcolor=rgb(245, 245, 245)]是“关于[/backcolor]
[backcolor=rgb(245, 245, 245)]零”[/backcolor]
[backcolor=rgb(245, 245, 245)]时,它是[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]的值之间[/backcolor]
[backcolor=rgb(245, 245, 245)][[/backcolor]
[backcolor=rgb(245, 245, 245)]-[/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)],[/backcolor]
[backcolor=rgb(245, 245, 245)]AngleTreshold[/backcolor]
[backcolor=rgb(245, 245, 245)]][/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]StartLSMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]:起点[/backcolor]
[backcolor=rgb(245, 245, 245)]计算[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]角[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)]这是一个[/backcolor]
[backcolor=rgb(245, 245, 245)]移值[/backcolor]
[backcolor=rgb(245, 245, 245)]到左边[/backcolor]
[backcolor=rgb(245, 245, 245)]的[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]观察点[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)]应该是[/backcolor]
[backcolor=rgb(245, 245, 245)]StartEMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]>[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]EndEMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]EndLSMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]:[/backcolor]
[backcolor=rgb(245, 245, 245)]结束点[/backcolor]
[backcolor=rgb(245, 245, 245)]来计算[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]角[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)]这是一个[/backcolor]
[backcolor=rgb(245, 245, 245)]移值[/backcolor]
[backcolor=rgb(245, 245, 245)]到左边[/backcolor]
[backcolor=rgb(245, 245, 245)]的[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]/[/backcolor]
[backcolor=rgb(245, 245, 245)]|[/backcolor]
[backcolor=rgb(245, 245, 245)]观察点[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
[backcolor=rgb(245, 245, 245)]应该是[/backcolor]
[backcolor=rgb(245, 245, 245)]StartEMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]>[/backcolor]
[backcolor=rgb(245, 245, 245)] [/backcolor]
[backcolor=rgb(245, 245, 245)]EndEMAShift[/backcolor]
[backcolor=rgb(245, 245, 245)]。[/backcolor]
//+------------------------------------------------------------------+ //| CCI_Angle.mq4 | //| MrPip | //| | //| You can use this indicator to measure when the LSMA angle is | //| \"near zero\". AngleTreshold determines when the angle for the | //| LSMA is \"about zero\": This is when the value is between | //| [-AngleTreshold, AngleTreshold] (or when the histogram is red). | //| LSMAPeriod: LSMA period | //| AngleTreshold: The angle value is \"about zero\" when it is | //| between the values [-AngleTreshold, AngleTreshold]. | //| StartLSMAShift: The starting point to calculate the | //| angle. This is a shift value to the left from the | //| observation point. Should be StartEMAShift > EndEMAShift. | //| EndLSMAShift: The ending point to calculate the | //| angle. This is a shift value to the left from the | //| observation point. Should be StartEMAShift > EndEMAShift. | //| | //| Modified by MrPip from EMAAngle by jpkfox | | //| Red for down | //| Yellow for near zero | //| Green for up | //| | //| Modified to do CCI Angle | //+------------------------------------------------------------------+ #property copyright \"Robert L. Hill aka MrPip\" //---- indicator settings #property indicator_separate_window #property indicator_buffers 3 #property indicator_color1 LimeGreen #property indicator_color2 Yellow #property indicator_color3 FireBrick //---- indicator parameters extern int CCIPeriod=14; extern double AngleTreshold=15.0; extern int PrevShift=4; extern int CurShift=0; //---- indicator buffers double UpBuffer; double DownBuffer; double ZeroBuffer; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- 2 additional buffers are used for counting. IndicatorBuffers(3); //---- drawing settings SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2); SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,2); SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,2); IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+2); //---- 3 indicator buffers mapping if(!SetIndexBuffer(0,UpBuffer) && !SetIndexBuffer(1,DownBuffer) && !SetIndexBuffer(2,ZeroBuffer)) Print(\"cannot set indicator buffers!\"); //---- name for DataWindow and indicator subwindow label IndicatorShortName(\"CCI_Angle(\"+CCIPeriod+\",\"+AngleTreshold+\",\"+PrevShift+\",\"+CurShift+\")\"); //---- initialization done return(0); } //+------------------------------------------------------------------+ //| The angle for LSMA | //+------------------------------------------------------------------+ int start() { double fCur, fPrev; double fAngle, mFactor; int nLimit, i; int nCountedBars; double angle; int ShiftDif; if(CurShift >= PrevShift) { Print(\"Error: CurShift >= PrevShift\"); PrevShift = 6; CurShift = 0; } nCountedBars = IndicatorCounted(); //---- check for possible errors if(nCountedBars<0) return(-1); //---- last counted bar will be recounted if(nCountedBars>0) nCountedBars--; nLimit = Bars-nCountedBars; mFactor = 1.0; ShiftDif = PrevShift-CurShift; mFactor /= ShiftDif; //---- main loop for(i=0; i
发表于:2016-06-23 07:56只看该作者
2楼
指标很灵敏,指示性也很强
韬客社区www.talkfx.co
发表于:2016-06-30 03:20只看该作者
3楼
怎么弄啊
韬客社区www.talkfx.co
发表于:2017-08-09 03:42只看该作者
4楼
谢谢朋友分享
发表于:2018-02-20 14:59只看该作者
5楼
外汇交易社区
韬客社区www.talkfx.co