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

The Pebble Spherical 2 is right here, and it fixes the unique’s largest flaws

TL;DR The Pebble Spherical 2 has been introduced as a non secular successor to the 2015 Pebble Time Spherical. It has a bigger 1.3-inch show with slimmer bezels, as much as 14 days of battery...

SGT Markets Appoints Peter Kristensen as Chief Government Officer

SGT Markets, an offshore on-line buying and selling platform coping with overseas alternate, fairness index CFDs, and crypto CFDs, named Peter Kristensen because the Chief Government Officer. Kristensen has been with the corporate because the...

QLC: FlexShares’ High quality, Worth, And Momentum ETF Deserves Some Consideration

This text was written byObserveThe Sunday Investor is concentrated solely on U.S. Fairness ETFs. He has a powerful analytical background, has acquired a Certificates of Superior Funding Recommendation from the Canadian Securities Institute,...

Petkit’s automated moist meals feeder tracks how a lot your pet eats

Petkit has introduced two new automated machines at CES 2026 designed to feed and care to your pets utilizing AI-powered cameras that monitor their habits and supply well being insights that will in...
spot_img

Latest articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

WP2Social Auto Publish Powered By : XYZScripts.com