Making a quick alteration to the placing of brackets and/or braces to Nested If Statements

MQL5 Indicators Experts C# Forex

Job finished

Execution time 2 hours
Feedback from customer
Couldn't fault the Developer, speedy, efficient, professional.
Feedback from employee
Excellent. Happy to be of service.

Specification

Hello,

Due to the fact that I am getting so sick to the back teeth of MetaEdior not being able to read MQL4 code properly - despite me coding for years now - for some reason, these errors just won't go away and I'm getting extremely pissed off now. 

This is more of a placement of the brackets more than anything else, rather than the code itself but basically the rule is:

If Statement A is true, assess if Statement B or C (and ALL child statements) are true. If either statement B or C  (and ALL child statements)  are true, then proceed...

Because I have coded for a long time now, Im getting absolutely furious with this, there is no reason as to why I'm getting these unexpected tokens or empty controlled statement lines.

Completely stupidity at its finest.

if(BarTime != Time[0]){ /*Statemt A - if Statement A is true, proceed*/

      if(hammerHeadClose < hammerHeadOpen){ /*Statement B - if Statement B is true, proceed*/
      
         if(bearHammerHead >= Transform(candleBodyLength,2))
         if((bearHammerHead / bearHammerHandle) <= hammerHandlePct)
         if((bearHammerHead / bullRetracementCandle) <= hammerHeadPct);
      
      }
      
      else if(hammerHeadClose > hammerHeadOpen)) { /*Statement C...OR if Statement C is true, proceed...*/
      
         if(bearHammerHead >= Transform(candleBodyLength,2))
         if((bearHammerHead / bearHammerHandle) <= hammerHandlePct)
         if((bearHammerHead / bullRetracementCandle) <= hammerHeadPct);
      
      }

              
      if(hammerHeadClose < hammerHeadOpen)/*If Statement A is True AND EITHER Statement B OR C is true, then proceed....*/
      if(bearHammerHead >= Transform(candleBodyLength,2))
      if((bearHammerHead / bearHammerHandle) <= hammerHandlePct)
      if((bearHammerHead / bullRetracementCandle) <= hammerHeadPct)
      if((initialTrendBearCandle / bullRetracementCandle) <= retracePercentage)
      if(bullRetracementCandle >= Transform(candleBodyLength,2))
      if(iMA(NULL,0,Period_TrendFast,0, AM_TrendFast,PRICE_CLOSE,1) < iMA(NULL,0,Period_TrendSlow,0,AM_TrendSlow,PRICE_CLOSE,1))
      if(iMA(NULL,0,Period_MomentumFast,0,AM_MomentumFast,PRICE_CLOSE,1) < iMA(NULL,0,Period_MomentumSlow,0,AM_MomentumSlow,PRICE_CLOSE,1))
      if(NewBar)
      if(spread <= MaxSpread)
      if(hourOfDay >= startingHour && hourOfDay < endingHour)
      if(OrdersTotal()== 0)
      if(InitTime){

OrderSend(.......):}

f

Responded

1
Developer 1
Rating
(3)
Projects
4
0%
Arbitration
2
0% / 100%
Overdue
1
25%
Free
2
Developer 2
Rating
(139)
Projects
181
24%
Arbitration
23
22% / 39%
Overdue
13
7%
Free
3
Developer 3
Rating
(5)
Projects
11
18%
Arbitration
0
Overdue
3
27%
Free
Similar orders
Hey greetings am in need of a developer that can convert my simple tradingview indicator to MT4 I have the source code of the indicator and is also a public indicator on Tradingview site Kindly bid and let started
can you help me with Ctrader i need modification on the linkhttps://docs.google.com/document/d/1fggk49xWbnwahtfOlE-U7G6muZB1FT8eWmftGiY7R-s/edit?usp=sharing can you assist with cTrader modifications to enhance functionality and improve performance. do text me if you a professional on it i will be looking forward to your response best regards
I hope you're doing well. I am interested in learning more about your EA (Expert Advisor) trading bot. Specifically, I would like to review some performance data, particularly regarding the Profit and Loss (P&L) over recent weeks. Could you kindly provide a short video with today's date, showcasing the weekly stats from the last two months? I am looking for data covering the period from August 1st, 2024, to October
Hello great developer, im looking for a great developer on this project I have a project ready to automate operations from telegram to mt4/mt5 by taking signals from an email. Can you help me? peace be unto you
I need an expert to help me convert chopzone traingview pinescript to mt4, I need an expert to get it done for me on between 1 to 2 days i hope this will be done by then, i will attach the file and my budget is $30 as of minimum here
am looking for great developer that can help me on this project, I have an Indicator on Tradingview and want to convert that to an EA for Metatrader 4. Can you help me? peace be unto you
Need to copy the trades and orders generated by expert advisors from my MT4 platform to eToro broker. Etoro offers a trading API (). This could be used to make the connection to their propietary web platform. If the programmer considers there is more stable and faster way to do it then I'm open to suggestions
I am looking for an experienced MQL developer to create a simple Expert Advisor (EA) for MT4/MT5. The EA will be based on a combination of Exponential Moving Average (EMA) and Relative Strength Index (RSI) for trade entries and exits. Requirements : Proven experience in MQL4/MQL5 development Ability to deliver within deadlines Clear and regular communication during the project Experience with EAs involving moving
**Description:** I am looking for an experienced MQL4 programmer to develop a sophisticated Expert Advisor (EA) for MetaTrader 4 (MT4) using a **Hidden Markov Model (HMM)** to predict market trends for forex trading. The EA will be used for live trading on forex pairs like EUR/USD and should incorporate statistical modeling with advanced machine learning algorithms. ### **Requirements:** - **Strong MQL4 Expertise**
I'm planning on building/creating an mt4/5 trading indicator that use a break and retest strategy I will share a link for the idea strategy, Kindly message me to send you the link, I can't send it here

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 5 day(s)