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

仕事が完了した

実行時間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
評価
(267)
プロジェクト
335
29%
仲裁
36
28% / 64%
期限切れ
10
3%
仕事中
2
開発者 2
評価
プロジェクト
0
0%
仲裁
2
0% / 100%
期限切れ
0
3
開発者 3
評価
プロジェクト
1
0%
仲裁
0
期限切れ
0
類似した注文
Only programmers with experience with orderflow please, it's not the easiest project, I don't want to have arbitration etc. I am not expert in orderflow yet, if you have suggestion about strategy it would be very nice. Source of code required, I am searching a programmer for a longer co-operation
Please create an simple EA in mql5 based on RSI indicator with e-mail, sounds and push notification alerts, of course can't be any bugs, errors, but I think it's obvious. I am searching a programmer for longer co-operation. Thank you for your attention, Have a nice day
Hi, I am looking for an already made profitable EA. It can be an indicator but then it must be possible to make an EA from the indicator. Will need to test before payment (this can be in demo or limited time test). I will pay up to $6000. Do not apply if you want an upfront payment. I need to test for a few times first. Mostly only pips matters. I look much the risk safety, money management, risk reward, and overall
Привіт. Шукаю когось, хто б застосував мій код як бота . Я торгую індексом Aus_200 SFE (не XJO). Бот базується на MACD входу/виходу, RSI, стохастиці та vwap. Як тільки роботу приймуть, мені потрібно внести кілька коректив; однак, нічого суттєвого. Дякую
SMC Martingale Pro is an advanced MetaTrader 5 Expert Advisor designed for high-volatility markets like XAU/USD. It combines institutional Smart Money Concepts with a dynamic risk recovery system. Key Features Dual FVG Engine: Automatically identifies and renders both bullish and bearish Fair Value Gaps in real time. Multi-Timeframe Flexibility: Operates independently of the active chart timeframe to target
I am looking for an experienced Sierra Chart ACSIL (C++) developer to create a custom indicator that measures the average Prior Day High-Low range over a configurable number of trading days (default: 7 days) using a 23-hour trading session
I have a technical specification ready for a custom alert indicator in NinjaTrader 8 (NinjaScript / C#). Important clarification: it is NOT an automatic trading bot, it is solely a visual indicator (arrows/lines on the chart) and sound alerts (notifications) based on EMA crossovers and range breakouts (ORB 15m) on lower timeframes for futures (MES). I already have the exact rules written out unambiguously
Custom MT5 EA for buy stop and sell stop breakout strategy.’ ‘Requirements, develop a custom Expert Advisor for MetaTrader 5 that places buy-stop and sell-stop pending orders based on defined breakout rules.’ ‘All important values adjustable via inputs.’ ‘Includes stop loss, take profit, trailing stop, and configurable risk management.’ ‘One trade at a time, works on demo before live.’ Provide source code and
I have an automated trading strategy in NinjaTrader 8 (C# / NinjaScript) that is currently under development. Before diving into technical details, I’d like to ask a quick question from someone who's interested. Do you work on existing / in-progress codebases to debug, refactor, or add new features, or do you strictly build projects from scratch? NOTE : Only professional Developer should apply for this project
السلام عليكم ورحمة الله وبركاته، ​أبحث عن مبرمج MQL5 خبير ومتمكن جداً لتطوير روبوت تداول (Expert Advisor) محترف لمنصة MetaTrader 5 يعمل باستراتيجية هيدج محددة بصفقة واحدة فقط في كل اتجاه (1 Buy & 1 Sell Max) مع إدارة مخاطر صارمة. ​المواصفات والاستراتيجية المطلوبة: ​1. آلية الهيدج المحدود (Single Position Hedging Limit): ​الحد الأقصى للصفقات: يُسمح للروبوت بفتح صفقة شراء واحدة (1 Buy) وصفقة بيع واحدة (1 Sell) فقط كحد

プロジェクト情報

予算
40+ USD
締め切り
最高 1 日