Create EA (iCustom) with MACHINE LEARNING ADAPTIVE SUPERTREND Scanner Indicator – Analytics & Forecasts – 5 February 2025


To make use of the Machine Studying Adaptive Supertrend Scanner indicator (ver.2.00 – obtain hyperlink on the finish of the article) for EA, you possibly can see the directions under:

a. The buffers within the indicator and their indexes:

b. Required enter parameters:

MT4 Model 2.00:

double getValueMLAdaptiveSuperTrend(string fSymbol,           
                                    ENUM_TIMEFRAMES Timeframe,  
                                    int Index,             
                                    int Shift                
                                   )
  {
   string indicatorCustomName = "MarketML Adaptive SuperTrend MT4";
   return iCustom(fSymbol, Timeframe, indicatorCustomName, iMaxBarsBack, "", atr_len, truth, "", training_data_period, highvol, midvol, lowvol, 0, 0, 0, 0, false, 0, "", false, false, false, false, false, false, "", "", false, "", 0, 0, "", false, 0, 0, 0, false, 0, 0, 0, 0, 0, 0, 0, 0, "", 0, "", false, 0, 0, false, 0, 0, 0,
                  Index, Shift);
  }

MT5 Model 2.00:

double getValueMLAdaptiveSuperTrend(string fSymbol,           
                              ENUM_TIMEFRAMES Timeframe,  
                              int Index,             
                              int Shift                
                             )
  {
   string indicatorCustomName = "MarketML Adaptive SuperTrend MT5";
   int deal with = iCustom(fSymbol,Timeframe,indicatorCustomName,iMaxBarsBack,"",atr_len,truth,"",training_data_period,highvol,midvol,lowvol,0,0,0,0,false,false,1,"",false,false,false,false,false,false,"","",false,"",0,0,"",false,0,0,0,false,0,0,0,0,0,0,0,0,"",0,"",false,0,0,false,0,0,0);
   if(deal with < 0)
      return(EMPTY_VALUE);
   else
     {
      double buf[];
      if(CopyBuffer(deal with, Index, Shift, 1, buf) > 0)
         return(buf[0]);
     }
   return EMPTY_VALUE;
  }

d. Use getValueMLAdaptiveSuperTrend operate for EA

You utilize the getValueMLAdaptiveSuperTrend operate to get the worth wanted to make use of for the EA.

To verify that the buffer has a price, you’ll want to examine it with EMPTY_VALUE.

Listed here are some examples to substantiate that the earlier bar buffers (shift = 1) have a price:

Hopefully this text can assist you extra simply automate alerts from the Machine Studying Adaptive Supertrend Scanner indicator into EA.



Source link

Related articles

Australia vs Fiji FREE streams: Watch Rugby League World Cup 2026

Comply with us Add us as a most well-liked supply on Google Publication Subscribe to our e-newsletter Watch Australia vs Fiji reside streams as Pool A's two unbeaten groups meet within the 2026 Rugby League World Cup...

What It Means and How you can Get Began

A dealer not too long ago requested: "Why commerce Bitcoin? What's it gonna do, 2x, 3x? As of late shares can try this. So what is the level?"It is a affordable query, nevertheless...

Vivo X500 Professional Max first impressions: Vivo got here to play, and the competitors needs to be nervous

Vivo may have performed it protected with the X500 sequence. Give the telephones a barely sooner processor, slap on a brand new coat of paint, throw round just a few AI buzzwords, and...

Technique (MSTR), Try (ASST) should stability bitcoin (BTC) purchases, most well-liked inventory dividends

“Perpetual preferreds have introduced bitcoin to earnings traders, a bunch that ETFs by no means reached,” mentioned Mark Palmer, a senior fairness analysis analyst at StoneX.Ryan Rasmussen, the top of analysis at Bitwise,...

Hormuz disaster places “vitality realism” at middle of transition debate

HOUSTON (WO) — Eight months after the Persian Gulf disruption started, oil and gasoline planners can not deal with Center East provide shocks as short-lived, panelists mentioned Thursday on the 2026 SPE Annual...
spot_img

Latest articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

WP2Social Auto Publish Powered By : XYZScripts.com