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

Valaris secures $447 million Petrobras extension for Brazil deepwater drillship

(WO) — Valaris has secured a multi-year contract extension with Petrobras for its DS-4 drillship offshore Brazil, including roughly $447 million to its backlog and reinforcing long-term demand within the deepwater market. The 1,064-day...

Iran says it has formulated a response to the US, will announce it in due time

The headline comes from Iran's international ministry spokesperson in saying that Tehran has formulated its diplomatic response to the US however will solely announce it in due time. We now have to attend...

Investcorp Credit score Administration BDC, Inc. (ICMB) Q3 2026 Earnings Name Transcript

Operator Good morning, girls and gents, and welcome to as we speak's Investcorp Credit score Administration BDC's Quarter ended December 31, 2025 Earnings Name. It's now my pleasure to show the ground...

Geekom A5 Professional mini PC evaluate

Why you possibly can belief TechRadar We spend hours testing each services or products we evaluate, so that you might be certain you are shopping for one of the best. Discover out extra about...

Ceasefire odds drop to 1% for April 7 as merchants stay skeptical

Ceasefire odds by April 7 are at 1% YES,...
spot_img

Latest articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

WP2Social Auto Publish Powered By : XYZScripts.com