It is how to use NonLag as a filter. It means that you will need some signal indicator to open the ordes and NonLagMA indicator is acting as a filter only.
The other way to use Nonlag is the following:
if (diNonLagUp > 0 && diNonLagDown1 > 0){
OpenBuy();
return(0);
}
if (diNonLagDown > 0 && diNonLagUp1 > 0 ){
OpenSell();
return(0);[/CODE]
This way means that you open the order in the time when NonlagMA is changing the color.
The other way to use NonLag indicator is for closing the orders:
if ((diNonLagDown > 0 && diNonLagDown1 < 0 )){
CloseBuy();[/CODE]
if ((diNonLagUp > 0 && diNonLagUp1 < 0)){
CloseSell();[/CODE]
Just for example NonLagMA with RSIFilter indicator:
你好。
有人在另一个主题中问到了绝对强度指标的柱状图版本,所以在这里。模式3和4(和1,如果我记得的话)基本上显示了同样的东西。Mode_Histo 2有点反直觉,而且看起来不怎么样。
这不是作为一个 "最终 "的直方图产品,所以如果有人觉得喜欢,还有改进和清理代码的空间。感谢这个直方图版本,它更容易阅读!
讽刺
你好。
有人在另一个主题中问到了绝对强度指标的直方图版本,所以它就在这里。模式3和4(和1,如果我记得的话)基本上显示了同样的东西。Mode_Histo 2有点反直觉,而且看起来不怎么好。
这不是作为一个 "最终 "的直方图产品,所以如果有人觉得喜欢,还有改进和清理代码的空间。对你来说很可怕,但我也是这样想的,并把它转换成直方图。 我更进一步,绘制了牛市和熊市之间的差异,因为这两者让我感到困惑。
谁可以创建这个指标的EA?
你好。
我在AbsoluteStrength中增加了2个选项。
- ADX方法计算牛市和熊市的强度(模式=2)
- 绘制超买和超卖水平的可能性(最好用于牛市)。
伊戈尔
你好。
我在AbsoluteStrength中增加了2个选项。
- ADX方法计算牛市和熊市的强度(模式=2)
- 绘制超买和超卖水平的可能性(对牛市更好地使用)。
伊戈尔如何使用这个 "超买和超卖水平"?
是否需要输入价格或指标的水平?
尝试输入例如OverBought=70和OverSold=30。
非拉格专家?
谁能在这个系统上帮助我?
我想使用两个不同时间段的非滞后MA,并能选择收盘、开盘、高、低。 非滞后MA在第一个帖子中
谢谢。
Al
谁能帮助我解决这个系统?
我想使用两个不同时间段的非滞后MA,并能选择收盘、开盘、高点、低点。 非滞后MA在第一个帖子中
谢谢。
艾尔我创建了基于NonLagMA的非常简单的EA,但由于NonLagMA指标,它不能进行回测。它可以,但非常困难。我认为这个NonLagMA指标应该被固定在所有的条形图上,以便更好地进行回测。因为我甚至不能在没有回测的情况下发布EA。
对NonLagMa EA的帮助
嗨,Newdigital。
一如既往地感谢您在这个论坛上所做的出色工作。
你能帮助我解决一个EA问题吗? 我一直试图用NonLagMA_v5写一个EA,但我没有任何运气让我的EA识别该指标发出的值(显然我没有编码经验,我只是看了看其他人的代码,然后把我自己的部分放进去。) 我从ASCtrend的EA中复制了这个(它没有正常工作)。
int NonLagMA() {
double Trend=iCustom(NULL,0, "NonLagMA_v5",0,100,0,1,0,0.0,4,0) 。
if (Trend>0) return(1); // up
if (Trend<0) return(2); // down
if (Trend==0) return(3); // flat
}
你能告诉我正确的方法让它发挥作用吗? 我把它塞进了最简单的EA中,但它无法工作。 我已经在这个EA中尝试了其他指标,它运行良好。
再次感谢
华尔蒂尼
嗨,Newdigital。
像往常一样,感谢你在这个论坛上所做的出色工作。
你能帮助我解决一个EA问题吗? 我一直试图用NonLagMA_v5写一个EA,但我没有任何运气让我的EA识别该指标发出的数值(显然我没有编码经验,我只是看了看其他人的代码,然后把我自己的部分放进去。) 我从ASCtrend的EA中复制了这个(它没有正常工作)。
int NonLagMA() {
double Trend=iCustom(NULL,0, "NonLagMA_v5",0,100,0,1,0,0.0,4,0) 。
if (Trend>0) return(1); // up
if (Trend<0) return(2); // down
if (Trend==0) return(3); // flat
}
你能告诉我正确的方法让它发挥作用吗? 我把它塞进了最简单的EA中,但它无法工作。 我已经在这个EA中尝试了其他指标,它运行良好。
再次感谢
瓦尔蒂尼首先,你应该写下以下内容。
double d23=(0);
double diNonLagUp=iCustom(NULL,0,"NonLagMA_v5",Price,Length,Displace,Filter,Color,ColorBarBack,Deviation,1,1);
double diNonLagDown=iCustom(NULL,0,"NonLagMA_v5",Price,Length,Displace,Filter,Color,ColorBarBack,Deviation,2,1);
double d24=(0);[/CODE]
Then the following:
OpenBuy();
return(0);
}
if (diNonLagDown>0 ...){
OpenSell();
return(0);[/CODE]
It is how to use NonLag as a filter. It means that you will need some signal indicator to open the ordes and NonLagMA indicator is acting as a filter only.
The other way to use Nonlag is the following:
OpenBuy();
return(0);
}
if (diNonLagDown > 0 && diNonLagUp1 > 0 ){
OpenSell();
return(0);[/CODE]
This way means that you open the order in the time when NonlagMA is changing the color.
The other way to use NonLag indicator is for closing the orders:
CloseBuy();[/CODE]
CloseSell();[/CODE]
Just for example NonLagMA with RSIFilter indicator:
[CODE]double diRSIFilterup=iCustom(NULL,0,"RSIFilter_v1",PeriodRSI,0,1);
double diRSIFilterdown=iCustom(NULL,0,"RSIFilter_v1",PeriodRSI,1,1);
double d22=(0);OpenBuy();
return(0);[CODE]if ((diRSIFilterdown 0 && diNonLagUp1 > 0 )){
OpenSell();
return(0);How can you know what I wrote here?
Very easy.
You see that diNonLagDown > 0 (for example).
So what the diNonLagDown is? Look at the icustom function:
[CODE]double diNonLagDown=iCustom(NULL,0,"NonLagMA_v5",Price,Length,Displace,Filter,Color,ColorBarBack,Deviation,2,1);It means that diNonLagDown is
- value of NonLagMA_v5 indicator ("NonLagMA_v5"),
- for your chart currency (NULL),
- for timeframe of your chart (0),
- with the settings (Price,Length,Displace,Filter,Color,ColorBarBack,Deviation),
- line number 2 (2)
- and for the 1st bar (1) - current bar is opened and first bar was closed already).
How do you know the line number and which number?
Very easy. Open the indicator NonLagMA_v5 in MetaEditor and count the colors starting from zero (0):
[CODE]#property indicator_color1 Orange //line No. 0.
#property indicator_width1 2
#property indicator_color2 SkyBlue // line No.1.
#property indicator_width2 2
#property indicator_color3 Tomato // line number 2.
#property indicator_width3 2