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

Valeura enters Türkiye JV with Transatlantic Petroleum to advance deep fuel exploration

Valeura Power Inc. has signed a three way partnership settlement with a subsidiary of Transatlantic Petroleum LLC to discover and develop deep fuel formations within the Thrace basin of northwest Türkiye. The partnership goals...

iPhone 17 vs. iPhone 16: Which One Ought to You Purchase?

Now that Apple's iPhone 17 has arrived, you might be questioning whether or not to purchase the most recent gadget or get final yr's iPhone 16, which now prices $100 much less. To assist...

India’s Kuku snags $85M as cell content material wars intensify

Kuku, an Indian storytelling platform backed by Google, has raised $85 million in recent funding because it goals to scale its audio and video content material choices amid intensifying competitors within the South...

IG Group Exits Small Alternate in $100M Deal With Kraken

Extra Quantity, Extra Income, Higher Merchants: Crypto Derivatives with Shift Markets Extra Quantity, Extra Income, Higher Merchants: Crypto Derivatives...

Professional Says A Pi Community Stablecoin PiUSD May Be A Sport-Changer for the Ecosystem

If Pi Community desires to cater to the following progress enviornment in synthetic intelligence (AI) and tokenization, having a PiUSD stablecoin might be game-changing. Dr. Altcoin, a preferred Pi group member, made...
spot_img

Latest articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

WP2Social Auto Publish Powered By : XYZScripts.com