Fix Function so that it Returns the Same Values as Indicator Provided

MQL5 指标 专家

工作已完成

执行时间16 小时
客户反馈
Great developer, will definitely reach out for other jobs
员工反馈
Detailed oriented, fast communication. Looking forward to working with you again. Thanks.

指定

Should be a quick function to deliver.

NOTE: All the inputs in Index__Buffer are required


Fix the following function:

double Index__Buffer(              //if there are several indicators with different input parameters such as: sym, PERIOD, Period_Indicator, shift_Indicator, deviation, APPLIED_PRICE
                     string sym,                         //indicator symbol
                     ENUM_TIMEFRAMES PERIOD,             //timeframe of the indicator
                     int Period_Indicator,               //indicator period
                     int shift_Indicator,                //shift
                     double deviation,                   //deviation
                      //------------------------------------------------------------------------------------------
                     int index_buffer,                   //Buffer numbers: 0 - BASE_LINE, 1 - UPPER_BAND, 2 - LOWER_BAND
                     int index_Bar                       //indeh from which candle to take the data
                  )
{                  
     
double state = 0;     
     
static double SmoothPrice[];
static double SmoothRange[];     
     
//-------------------------------------------------------------------------------------------------------------------------------------
      
SmoothPrice[index_Bar] = (SmoothPrice[index_Bar+1]*(Period_Indicator-1)+ iClose(sym,PERIOD,index_Bar))/Period_Indicator;
SmoothRange[index_Bar] = (SmoothRange[index_Bar+1]*(Period_Indicator-1)+iHigh(sym,PERIOD,index_Bar)-iLow(sym,PERIOD,index_Bar))/Period_Indicator;
         
      
if(index_buffer==0)
{
state = SmoothPrice[index_Bar];
}
if(index_buffer==1)
{
state = SmoothPrice[index_Bar]+SmoothRange[index_Bar]*deviation;
}
if(index_buffer==2)
{
state = SmoothPrice[index_Bar]+SmoothRange[index_Bar]*deviation;
}
 
 return(state);
 
}

So that the inputs in the comments return the same as the indicator output

1) See it working with INDEX_IBANDS

WORKING


2) Need it working with INDEX__BUFFER

Assistance



反馈

1
开发者 1
等级
(280)
项目
351
29%
仲裁
37
27% / 65%
逾期
10
3%
已载入
2
开发者 2
等级
项目
0
0%
仲裁
2
0% / 100%
逾期
0
空闲
3
开发者 3
等级
项目
1
0%
仲裁
0
逾期
0
空闲
相似订单
Need Grid + Martingale Type Averaging EA ( Directional Buy or Sell entry then uses grid/martingale for Recovery if need ) * Must Work Buy + Sell Both Side ( Do not Open Buy or Sell at Once Let the Previous Order Close ) * Min Lot size 0.01 * Max Lot Size 1 ( Can be Edited to maximum ) * Auto TP Shift * Auto Averaging Position also Auto Shift TP as per Averaging * After Averaging Close the Trade in Maximum Profit (
C'est un Expert Advisor (EA) MQL5 pour MetaTrader 5, conçu pour l' XAUUSD , combinant un filtre de tendance et une grille adaptative avec gestion de panier ("basket") et protections contre le drawdown. Version 1.00. Logique de trading Filtre de tendance (H4 par défaut) • EMA rapide (50) vs EMA lente (200) pour déterminer la direction (UP/DOWN) • Filtre ADX (période 14, seuil 18) pour éviter de trader en
I have 2 trading view indicators by GainzAlgo that I want code to mt5 , could u advise? I need you to give me response if you can convert This
Looking for an MT4/MT5 independent risk-management service or system that can monitor and automatically close trades opened and managed by another trader’s EA. The existing EA continuously removes/overrides manually added Stop Losses and may also override SLs placed by another EA. I need a solution that does not rely on modifying the existing trade or placing a Stop Loss. Instead, it should independently monitor each
I currently sell a white-label XAUUSD EA, but the existing supplier owns the source code. I now need a new, independently developed EA and licensing system that my company fully owns and controls. I am not requesting decompilation or copying of proprietary code. Existing settings, presets and trading examples will be provided as reference. The developer must first identify any missing strategy rules before
I am looking for an experienced trader, preferably a manual trader, with a minimum 12-month verifiable live trading track record. Requirements: - Target: Up to 10% monthly return - Maximum risk/drawdown tolerance: 20% - Maximum trade duration: 5 hours - No Martingale - No Hedging - No grid or other high-risk strategies - Minimum 12 months continuous track record - Track record must be independently verifiable through
Hello! I'm looking for an experienced programmer to help me fix bugs in NEOLOGICA, PROFIT. The code is written, without errors or warnings, but not everything works correctly. Please help me. I'm looking for a programmer for a long-term collaboration, so that this project can open doors to other interesting projects. :) You need to have access to this platform, but I think that's obvious
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I need this MT5 EA to work according to the following exact logic: SYMBOL: Primarily optimized for XAUUSD/Gold. All important values such as lot size, SL, TP, spread and MA periods must remain adjustable from Inputs
I am looking to acquire an EXISTING and PROVEN MetaTrader 5 Expert Advisor. I am NOT looking for someone to develop a random new strategy from scratch. The objective is to find a robust EA with an existing track record, verify its performance and robustness, and purchase the MQL5 source code together with clearly defined commercial rights. MAIN REQUIREMENTS The EA should meet most or all of the following

项目信息

预算
40+ USD
截止日期
 1 天