超级信号指标 - 页 37

 
sennal999:
在Build 765中没有加载这个。

它可能是受保护的

 

.他没有在765点的位置上停留 [/ QUOTE] 。

人们可以把这个指标(支持和阻力)放在EMA内,就像图像一样?

当它越过支撑线或阻力线时,打开买入或卖出。

当越过布林带 线时,用移动平均线打开销售。

附加的文件:
 

支撑和阻力

附加的文件:
 
 

乐队

//+------------------------------------------------------------------+

//| Bands.mq4 |

//| Copyright 2005-2014, MetaQuotes Software Corp.|

//|MQL4: 使用MetaTrader的自动外汇交易、策略测试器和自定义指标

//+------------------------------------------------------------------+

#property copyright "2005-2014, MetaQuotes Software Corp.

#property link "http://www.mql4.com"

#property description "Bollinger Bands" (布林线)

#property strict

#include

#属性 indicator_chart_window

#perty indicator_buffers 3

#perty indicator_color1 LightSeaGreen

#属性 indicator_color2 LightSeaGreen

#属性 indicator_color3 LightSeaGreen

//---指标参数

输入 int InpBandsPeriod=20; // Bands Period

输入 int InpBandsShift=0; // Bands Shift

输入 double InpBandsDeviations=2.0; // Bands Deviations

//--- 缓冲区

double ExtMovingBuffer[];

double ExtUpperBuffer[];

double ExtLowerBuffer[];

double ExtStdDevBuffer[];

//+------------------------------------------------------------------+

//|自定义指标初始化函数

//+------------------------------------------------------------------+

int OnInit(void)

{

//-----1个额外的缓冲区用于计数。

IndicatorBuffers(4)。

IndicatorDigits(Digits)。

//------中线

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,ExtMovingBuffer);

SetIndexShift(0,InpBandsShift);

SetIndexLabel(0, "Bands SMA")。

//-------------上波段

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1,ExtUpperBuffer);

SetIndexShift(1,InpBandsShift);

SetIndexLabel(1, "Bands Upper")。

//--------下限

SetIndexStyle(2,DRAW_LINE);

SetIndexBuffer(2,ExtLowerBuffer);

SetIndexShift(2,InpBandsShift);

SetIndexLabel(2, "Bands Lower")。

//---工作缓冲区

SetIndexBuffer(3,ExtStdDevBuffer);

//--- 检查输入参数

如果(InpBandsPeriod<=0)

{

Print("错误的输入参数 Bands Period=",InpBandsPeriod)。

返回(INIT_FAILED)。

}

//---

SetIndexDrawBegin(0,InpBandsPeriod+InpBandsShift)。

SetIndexDrawBegin(1,InpBandsPeriod+InpBandsShift);

SetIndexDrawBegin(2,InpBandsPeriod+InpBandsShift)。

//----初始化完成

返回(INIT_SUCCEEDED)。

}

//+------------------------------------------------------------------+

//| 布林线 |

//+------------------------------------------------------------------+

int OnCalculate(const int rates_total,

const int prev_calculated,

const datetime &time[],

const double &open[],

const double &high[],

const double &low[],

const double &close[],

const long &tick_volume[],

const long &volume[],

常数int &spread[])

{

int i,pos;

//---

if(rate_total<=InpBandsPeriod || InpBandsPeriod<=0)

返回(0)。

ArraySetAsSeries(ExtMovingBuffer,false)。

ArraySetAsSeries(ExtUpperBuffer,false)。

ArraySetAsSeries(ExtLowerBuffer,false);

ArraySetAsSeries(ExtStdDevBuffer,false)。

ArraySetAsSeries(close,false)。

//----初始零点

如果(prev_calculated<1)

{

for(i=0; i<InpBandsPeriod; i++)

{

ExtMovingBuffer=EMPTY_VALUE。

ExtUpperBuffer=EMPTY_VALUE。

ExtLowerBuffer=EMPTY_VALUE。

}

}

//---开始计算

if(prev_calculated>1)

pos=prev_calculated-1;

否则

pos=0。

//--- 主循环

for(i=pos; i<rates_total && !IsStopped(); i++)

{

//---- 中间线

ExtMovingBuffer=SimpleMA(i,InpBandsPeriod,close)。

//---计算并写下 StdDev

ExtStdDevBuffer=StdDev_Func(i,close,ExtMovingBuffer,InpBandsPeriod)。

//---- 上线

ExtUpperBuffer=ExtMovingBuffer+InpBandsDeviations*ExtStdDevBuffer。

//--- 下行

ExtLowerBuffer=ExtMovingBuffer-InpBandsDeviations*ExtStdDevBuffer。

//---

}

//---- OnCalculate完成。返回新的prev_calculated。

return(rate_total)。

}

//+------------------------------------------------------------------+

//| 计算标准偏差|

//+------------------------------------------------------------------+

double StdDev_Func(int position,const double &price[],const double &MAprice[],int period)

{

//--- 变量

double StdDev_dTmp=0.0;

//---- 检查位置

如果(position>=period)

{

//---计算StdDev

for(int i=0; i<period; i++)

StdDev_dTmp+=MathPow(price[position-i]-MAprice[position],2)。

StdDev_dTmp=MathSqrt(StdDev_dTmp/period)。

}

//---返回计算值

return(StdDev_dTmp)。

}

//+------------------------------------------------------------------+

 

MovingAverages.mqh是不可靠的。

 

真点信号true_point_signal.mq4

附加的文件:
 

重命名为超级信号指标(重绘相同)symphonie_market_emotion_indikator.mq4

附加的文件:
 
increase:
我使用这个指标有一段时间了,很喜欢它。

嗨,MrTools/Mladen,你能不能在十字星指标/信号线 上增加带箭头的提示?

谢谢

 

你好。

这里有另一个版本的指标--V3警报和通道指标的合并。警报也可以发送通知

也许你会发现它很有用

最好的,V.

附加的文件: