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

Bitcoin Derivatives Shopping for Stress Continues To Rise — Is $80K Inevitable?

Trusted Editorial content material, reviewed by main business specialists and seasoned editors. Advert Disclosure The worth of Bitcoin has been having fun with vital bullish momentum over the previous few weeks, with final week...

Columbia Commodity Technique Fund Q1 2026 Commentary

Columbia Threadneedle Investments is a number one international asset administration group that gives a broad vary of actively managed funding methods and options for particular person, institutional and company purchasers all over the...

To purchase this Bay Space house, you’ll want Anthropic fairness

Somebody’s providing an uncommon deal for a 13-acre property in Mill Valley, simply north of South Francisco. Home-owner and funding banker Storm Duncan has created a LinkedIn web page for the house, which he...

Africa targets regional power hubs to unlock oil and fuel funding

(WO) - The African Petroleum Producers Group is advancing plans to develop regional power hubs aimed toward bettering infrastructure connectivity and scaling oil and fuel funding throughout Africa. The technique focuses on linking pipelines,...

Newsquawk Week in Focus: Fed, BoJ, BoE, ECB, BoC, US PCE, GDP and ISM mfg. PMI

Mon: German GfK Shopper Confidence (Might), US Dallas Fed Manufacturing Index (Apr)Tue: BoJ Coverage Announcement (Apr), Spanish/Italian Retail Gross sales (Mar), Italian PPI (Mar), US ADP Weekly Employment Change, US Home Worth Index...
spot_img

Latest articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

WP2Social Auto Publish Powered By : XYZScripts.com