無料でロボットをダウンロードする方法を見る
Facebook上で私たちを見つけてください。
私たちのファンページに参加してください
興味深いスクリプト?
それではリンクにそれを投稿してください。-
他の人にそれを評価してもらいます
記事を気に入りましたか?MetaTrader 5ターミナルの中でそれを試してみてください。
インディケータ

The optimized variant of the Kaufman's Adaptative Moving Average by wellx - MetaTrader 4のためのインディケータ

ビュー:
18015
評価:
(12)
パブリッシュ済み:
2016.04.26 16:32
このコードに基づいたロボットまたはインジケーターが必要なら、フリーランスでご注文ください フリーランスに移動

The optimized variant of the AMA indicator by wellx. The original had undergone optimization in December 2006 to allow it to be usable in Expert advisors. The unoptimized version consumed resources and allowed to perform/optimization of an EA containing calls to the AMA in a reasonable time.

Its appearance is the same as the original.

The optimized variant of the Kaufman's Adaptative Moving Average


It is possible to "feel the difference" in the testing speed using a simple expert.

//+------------------------------------------------------------------+
//|                                                      TestAMA.mq4 |
//|                                                             Rosh |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Rosh"
#property link      "http://www.metaquotes.net"
 
 
extern int AMAtype=1;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   if (AMAtype!=0) Print("Use the optimized indicator");
   else Print("Use the original version of the indicator");
   Print("Start");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   Print("Finish");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   double val;
   if (AMAtype!=0) val=iCustom(Symbol(),0,"AMA for Expert2",0,1);
   else val=iCustom(Symbol(),0,"AMA",0,1);
//----
   return(0);
  }
//+------------------------------------------------------------------+

If the external variable AMAtype=0, then use the original, if not zero, use this indicator.


MetaQuotes Ltdによってロシア語から翻訳されました。
元のコード: https://www.mql5.com/ru/code/7379

TTF TTF

The classic TTF with the T3 smoothing method and signal lines.

TSI TSI

True Strength Index (TSI) is a double-smoothed Momentum. TSI follows the bars with little or hardly noticeable delay in the main and intermediate trend reversal points.

Ticker FATL Ticker FATL

FATL (Fast Adaptive Trend Line) - the «fast» adaptive trend line is calculated using a digital low-pass filter (cream-colored line on the chart).

Ticker SATL Ticker SATL

SATL (Slow Adaptive Trend Line) - the «slow» adaptive trend line is obtained using a digital low-pass filter of a different order (light-blue line on the chart).