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

US presents as much as 40 million barrels from the SPR

Breaking information: Oil is underneath strain because the US presents as much as 40 million barrels from teh strategic oil reserve.US SPR ranges are at 284 million barrels as of Sept 2026, marking...

Bitcoin ETFs Add $31M as 8-Day Influx Streak Hits $3B

Key TakeawaysBitcoin ETFs drew $31.07M on Monday, extending their influx streak to eight periods.Blackrock led, and ether, solana, and XRP funds additionally gained, exhibiting broad institutional demand.Markets will take a look at if...

INEOS’ U.S. shale ethane provide chain reaches 10-year milestone

(WO) — INEOS is marking 10 years because the first cargo of U.S. shale ethane arrived at its Grangemouth advanced in Scotland, establishing a provide route that has since delivered greater than 400...

The Witcher 3: Wild Hunt – Remastered provides a neat Bard’s Ballad preset designed to ‘streamline gameplay’ by providing a ton of customized choices...

The Witcher 3: Wild Hunt – Remastered's patch notes have been launchedThe replace will provide all-new animations and an improved talent systemA brand new accessibility preset referred to as Bard's Ballad additionally affords...

BitMine Nears 5% Ether Provide Goal After Topping 6M ETH

Ethereum treasury firm BitMine Immersion Applied sciences might attain its purpose of holding 5% of Ether’s provide by early November if its latest shopping for tempo continues.A Cointelegraph assessment of BitMine’s 12 weekly...
spot_img

Latest articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

WP2Social Auto Publish Powered By : XYZScripts.com