精英指标 :) - 页 151

 

Valeo。

祝你好运,期待着你的发现。

谢谢你的新的Fibo-Grid版本......感谢你在这个版本出来的时候想到了我。我碰巧喜欢它。

干杯,桑。

 

mladen等人。

我们能否通过观察这段代码来判断指标是否在重绘......如果是,如何解决?

谢谢,我正在学习如何编写indies(对我来说是新的,我编写EA,似乎是不同的运动)。

for(int i=Bars-counted_bars-1; i>=0; i--)

谢谢。

鄯善。

 
Snowski:
mladen等人..,

我们能否通过观察这段代码来判断指标是否在重绘......如果是的话,如何解决?

谢谢,我正在学习如何编写indies(对我来说是新的,我编写EA,似乎是不同的运动)。

for(int i=Bars-counted_bars-1; i>=0; i--)

谢谢你,并提前感谢。

桑。

我曾经把它们贴在M1的策略测试器上,然后观察,这种方式是最好的,但我相信通过查看代码也有办法。

 

统计套利

这个系统(指标)似乎很有意义。但我总是担心被骗。我在TSD上找不到这样的东西。请问比我更有经验的交易者们,你们的意见是什么?这是否可以作为一个指标而不是EA来编码?

YouTube - FX Algo Trader统计套利软件概述 (www.fxalgotrader.com)

 

鄯善

它应该可以工作

我更喜欢这种形式(只是为了确定--如果极限值不小于或等于Bars-1,一些数组函数 会返回错误)。

int start()

{

int counted_bars=IndicatorCounted();

int i,limit;

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

limit = MathMin(Bars-counted_bars,Bars-1);

//

//

//

//

//

for (i=limit; i>=0; i--)

{

...

}

return(0);

}

但你的方法应该也可以工作,因为counted_bars = IndicatorCounted()

问候

mladen

Snowski:
mladen等人..,

我们能否通过观察这段代码来判断指标是否在重绘......如果是,如何解决?

谢谢,我正在学习如何编码indies(对我来说是新的,我编码EA,似乎是不同的运动)。

for(int i=Bars-counted_bars-1; i>=0; i--)

谢谢你,提前感谢。

桑。
 

谢谢mladen,从现在开始将使用你的 "设置 "作为模板,或者修改现有的indies,如果它们是不同的。非常感谢。

顺便说一下,这是我一直在使用的代码,虽然我认为你上面发布的代码片段更优雅,但看起来很相似。

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

//| Custom indicator iteration function |

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

int start() {

int limit, i, counter;

double Range, AvgRange;

int counted_bars=IndicatorCounted();

//---- check for possible errors

if(counted_bars<0) return(-1);

//---- last counted bar will be recounted

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

for(i=Bars-counted_bars-1; i>=0; i--) {

counter=i;

Range=0;

AvgRange=0;

//---- loop for height placement of arrows

for (counter=i ;counter<=i+9;counter++){

AvgRange=AvgRange+MathAbs(High[counter]-Low[counter]);

}

Range=AvgRange/10;

//---- indicator algo starts here

.....

}

return(0);

}
 

要求将 "GMMA震荡器 "改为像 "沙夫趋势周期箭头 "那样工作

提前感谢

附加的文件:
 

你能把GMMA的Osc也贴出来吗?

干杯,桑。

 

给你。欢呼声

gmma_oscillator.mq4

Snowski:
你能把GMMA振荡器也贴出来吗? 祝贺你,桑。
附加的文件:
 

clc4x

给你(警报已添加
问候

mladen

附加的文件: