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

Bloomberg Analyst Predicts This ‘Underdog’ Will Flip Bitcoin And Ethereum

Bitcoin and Ethereum’s dominance is being instantly challenged in a brand new outlook from Bloomberg Intelligence strategist Mike McGlone, who believes that an sudden contender is positioning itself to overhaul each. Tether USDT’s market...

OpenClaw is Useless. Lengthy Reside OpenClaw.

I didn’t get up final Saturday morning planning to rethink my OpenClaw infrastructure and price mannequin. Then I received an electronic mail from Anthropic. It was brief, well mannered, and to the purpose: third‑celebration...

USDJPY trades to new highs and checks the converged 100/200 hour MAs

The USDJPY is pushing larger, supported by a modest rebound in yields. The ten-year yield is up about 2 foundation factors—nothing dramatic, however a shift from earlier declines that's serving to underpin the...

A Sturdy Promote Nonetheless: Tesla’s Decline Seems Far From Over (NASDAQ:TSLA)

This text was written byObserveDaniel is an avid and lively skilled investor. He runs Crude Worth Insights, a value-oriented publication aimed toward analyzing the money flows and assessing the worth of corporations within...

The one that thanks the waiter each single time the glass will get refilled is not attempting to appear gracious – they by no...

I used to be at a diner final week, grabbing breakfast earlier than visiting my brother. Watched this man on the subsequent desk thank the waitress each single time she topped off his...
spot_img

Latest articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

WP2Social Auto Publish Powered By : XYZScripts.com