超级信号指标 - 页 37 1...30313233343536373839 新评论 name 2015.03.22 11:49 #361 sennal999: 在Build 765中没有加载这个。 它可能是受保护的 investidor2015 2015.03.26 01:08 #362 .他没有在765点的位置上停留 [/ QUOTE] 。 人们可以把这个指标(支持和阻力)放在EMA内,就像图像一样? 当它越过支撑线或阻力线时,打开买入或卖出。 当越过布林带 线时,用移动平均线打开销售。 附加的文件: bands_bolleger.png 136 kb investidor2015 2015.03.26 01:10 #363 支撑和阻力 附加的文件: suporte_e_resistencia.jpg 373 kb investidor2015 2015.03.26 01:15 #364 这些是指标 https://www.mql5.com/en/forum/general investidor2015 2015.03.26 01:17 #365 乐队 //+------------------------------------------------------------------+ //| 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)。 } //+------------------------------------------------------------------+ Super Signals Indicator Bands with ichimoku!!! Could 新人对MQL4和MQL5的任何问题,对算法和代码的帮助和讨论 morro 2015.03.26 22:34 #366 MovingAverages.mqh是不可靠的。 Joakin 2015.04.05 12:34 #367 真点信号true_point_signal.mq4 附加的文件: tps.gif 25 kb true_point_signal.mq4 4 kb Joakin 2015.04.30 09:43 #368 重命名为超级信号指标(重绘相同)symphonie_market_emotion_indikator.mq4 附加的文件: symphonie_market_emotion_indikator.mq4 3 kb Jozy K 2015.05.04 11:51 #369 increase: 我使用这个指标有一段时间了,很喜欢它。 嗨,MrTools/Mladen,你能不能在十字星指标/信号线 上增加带箭头的提示? 谢谢 verified 2015.05.07 06:07 #370 你好。 这里有另一个版本的指标--V3警报和通道指标的合并。警报也可以发送通知。 也许你会发现它很有用 最好的,V. 附加的文件: sschannel3_v1.01.mq4 7 kb 1...30313233343536373839 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
在Build 765中没有加载这个。
它可能是受保护的
.他没有在765点的位置上停留 [/ QUOTE] 。
人们可以把这个指标(支持和阻力)放在EMA内,就像图像一样?
当它越过支撑线或阻力线时,打开买入或卖出。
当越过布林带 线时,用移动平均线打开销售。
支撑和阻力
这些是指标
https://www.mql5.com/en/forum/general
乐队
//+------------------------------------------------------------------+
//| 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
我使用这个指标有一段时间了,很喜欢它。
嗨,MrTools/Mladen,你能不能在十字星指标/信号线 上增加带箭头的提示?
谢谢
你好。
这里有另一个版本的指标--V3警报和通道指标的合并。警报也可以发送通知。
也许你会发现它很有用
最好的,V.