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

MQL5 Indikatoren Experten

Auftrag beendet

Ausführungszeit 16 Stunden
Bewertung des Kunden
Great developer, will definitely reach out for other jobs
Bewertung des Entwicklers
Detailed oriented, fast communication. Looking forward to working with you again. Thanks.

Spezifikation

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



Bewerbungen

1
Entwickler 1
Bewertung
(280)
Projekte
351
29%
Schlichtung
37
27% / 65%
Frist nicht eingehalten
10
3%
Beschäftigt
2
Entwickler 2
Bewertung
Projekte
0
0%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
0
Frei
3
Entwickler 3
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
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
My EA is semi Auto EA..with Master and slave concept Using Heiken Ashi +Heiken Smooth and Moving Average What to do?1. Remove some previous feature 2.Change some rules of 4 slave to pending Order 3. Check the coding is clean. 4. create panel dialog box
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

Projektdetails

Budget
40+ USD
Ausführungsfristen
bis 1 Tag(e)