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

PancakeSwap extends lead as month-to-month DEX quantity tops $500B

Decentralized exchanges processed over $513.5 billion in buying and selling quantity over the previous 30 days. Every day turnover averaged $15.93 billion, conserving tempo with the seven-day complete of $107 billion and indicating a...

Why Amazon May Be About to Breakout to $250

Amazon.com (NASDAQ:) has staged a powerful comeback because the darkish days of early April. The tech large is up greater than 30% in only greater than two months and, as of Tuesday night,...

Subsea7 lands EPCI contract for offshore Norway

Subsea7 has secured a considerable contract offshore Norway. Subsea7’s scope consists of engineering, procurement,...

EU vitality sanctions: division and rising dependence – Analytics & Forecasts – 19 June 2025

With out Washington's assist, it will likely be troublesome for the EU to observe the implementation of sanctions towards Russian vitality assets...

9 mundane duties ChatGPT can deal with in seconds, saving you hours

ChatGPT is quickly altering the world. The method is already occurring, and it’s solely going to speed up because the expertise improves, as extra individuals acquire entry to it, and as extra learn...
spot_img

Latest articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

WP2Social Auto Publish Powered By : XYZScripts.com